Class CategoryBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.users.CategoryBean
All Implemented Interfaces:
OjbImplementedBean, WebCategory, ecmwf.web.model.ModelBean, ecmwf.web.model.users.Category

public class CategoryBean extends ecmwf.web.dao.ModelBeanBase implements WebCategory, OjbImplementedBean
The Class CategoryBean.
  • Constructor Details

    • CategoryBean

      public CategoryBean(Category category)
      Instantiates a new category bean.
      Parameters:
      category - the category
  • Method Details

    • getBeanInterfaceName

      public String getBeanInterfaceName()
      Gets the bean interface name.
      Specified by:
      getBeanInterfaceName in interface ecmwf.web.model.ModelBean
      Specified by:
      getBeanInterfaceName in class ecmwf.web.dao.ModelBeanBase
    • getOjbImplementation

      public DataBaseObject getOjbImplementation()
      Gets the ojb implementation. Gets the ojb implementation.
      Specified by:
      getOjbImplementation in interface OjbImplementedBean
      Returns:
      the ojb implementation
    • getId

      public String getId()
      Gets the id.
      Specified by:
      getId in interface ecmwf.web.model.ModelBean
      Overrides:
      getId in class ecmwf.web.dao.ModelBeanBase
    • getIntId

      public int getIntId()
      Gets the int id.
      Specified by:
      getIntId in interface ecmwf.web.model.ModelBean
      Overrides:
      getIntId in class ecmwf.web.dao.ModelBeanBase
    • setId

      public void setId(String id)
      Sets the id.
      Specified by:
      setId in interface ecmwf.web.model.ModelBean
      Overrides:
      setId in class ecmwf.web.dao.ModelBeanBase
    • getName

      public String getName()
      Gets the name.
      Specified by:
      getName in interface ecmwf.web.model.users.Category
    • getDescription

      public String getDescription()
      Gets the description.
      Specified by:
      getDescription in interface ecmwf.web.model.users.Category
    • setDescription

      public void setDescription(String d)
      Sets the description.
      Specified by:
      setDescription in interface ecmwf.web.model.users.Category
    • setName

      public void setName(String v)
      Sets the name.
      Specified by:
      setName in interface ecmwf.web.model.users.Category
    • getRealm

      public String getRealm()
      Gets the realm.
      Returns:
      the realm
    • hasAccess

      public boolean hasAccess(ecmwf.web.model.users.Resource r)
      Checks for access.
      Specified by:
      hasAccess in interface ecmwf.web.model.users.Category
    • getUsersWithProfile

      public Collection<WebUser> getUsersWithProfile() throws ecmwf.web.model.users.UserException
      Gets the users with profile.
      Specified by:
      getUsersWithProfile in interface ecmwf.web.model.users.Category
      Throws:
      ecmwf.web.model.users.UserException
    • getAccessibleResources

      public Collection<WebResource> getAccessibleResources() throws ecmwf.web.model.users.UserException
      Gets the accessible resources.
      Specified by:
      getAccessibleResources in interface ecmwf.web.model.users.Category
      Throws:
      ecmwf.web.model.users.UserException
    • equals

      public boolean equals(Object o)
      Equals.
      Overrides:
      equals in class Object
    • equals

      public boolean equals(ecmwf.web.model.users.Category c)
      Equals.
      Specified by:
      equals in interface ecmwf.web.model.users.Category
    • hashCode

      public int hashCode()
      Hash code.
      Overrides:
      hashCode in class Object
    • dump

      public String dump(String format)
      Dump.
      Specified by:
      dump in interface ecmwf.web.model.users.Category
    • deleteResource

      public void deleteResource(ecmwf.web.model.users.Resource cat)
      Delete resource. Delete resource.
      Specified by:
      deleteResource in interface WebCategory
      Parameters:
      cat - the r
    • addResource

      public void addResource(ecmwf.web.model.users.Resource res)
      Adds the resource. Adds the resource.
      Specified by:
      addResource in interface WebCategory
      Parameters:
      res - the r
    • getActive

      public boolean getActive()
      Gets the active. Gets the active.
      Specified by:
      getActive in interface WebCategory
      Returns:
      the active
    • setActive

      public void setActive(boolean b)
      Sets the active. Sets the active.
      Specified by:
      setActive in interface WebCategory
      Parameters:
      b - the new active
    • getAddedResources

      protected Collection<ecmwf.web.model.users.Resource> getAddedResources()
      Gets the added resources.
      Returns:
      the added resources
    • getDeletedResources

      protected Collection<ecmwf.web.model.users.Resource> getDeletedResources()
      Gets the deleted resources.
      Returns:
      the deleted resources
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object