Class ResourceBean

java.lang.Object
ecmwf.web.dao.ModelBeanBase
ecmwf.ecpds.master.plugin.http.dao.users.ResourceBean
All Implemented Interfaces:
OjbImplementedBean, WebResource, ecmwf.web.model.ModelBean, ecmwf.web.model.users.Resource

public class ResourceBean extends ecmwf.web.dao.ModelBeanBase implements WebResource, OjbImplementedBean
The Class ResourceBean.
  • Field Details

    • USE_INSTEAD_OF_SLASHES

      protected static final char USE_INSTEAD_OF_SLASHES
      The Constant USE_INSTEAD_OF_SLASHES.
      See Also:
  • Constructor Details

    • ResourceBean

      protected ResourceBean(Url url)
      Instantiates a new resource bean.
      Parameters:
      url - the url
  • 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
    • getHost

      public String getHost()
      Gets the host.
      Specified by:
      getHost in interface ecmwf.web.model.users.Resource
    • setHost

      public void setHost(String v)
      Sets the host.
      Specified by:
      setHost in interface ecmwf.web.model.users.Resource
    • getPath

      public String getPath()
      Gets the path.
      Specified by:
      getPath in interface ecmwf.web.model.users.Resource
    • setPath

      public void setPath(String v)
      Sets the path.
      Specified by:
      setPath in interface ecmwf.web.model.users.Resource
    • getCategories

      public Collection<ecmwf.web.model.users.Category> getCategories() throws ecmwf.web.model.users.UserException
      Gets the categories.
      Specified by:
      getCategories in interface ecmwf.web.model.users.Resource
      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.Resource r)
      Equals.
      Parameters:
      r - the r
      Returns:
      true, if successful
    • hashCode

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

      public void deleteCategory(ecmwf.web.model.users.Category cat)
      Delete category. Delete category.
      Specified by:
      deleteCategory in interface WebResource
      Parameters:
      cat - the c
    • addCategory

      public void addCategory(ecmwf.web.model.users.Category cat)
      Adds the category. Adds the category.
      Specified by:
      addCategory in interface WebResource
      Parameters:
      cat - the c
    • getAddedCategories

      protected Collection<ecmwf.web.model.users.Category> getAddedCategories()
      Gets the added categories.
      Returns:
      the added categories
    • getDeletedCategories

      protected Collection<ecmwf.web.model.users.Category> getDeletedCategories()
      Gets the deleted categories.
      Returns:
      the deleted categories
    • getReadACL

      public ecmwf.web.model.users.ACL getReadACL() throws ecmwf.web.model.users.UserException
      Gets the read ACL.
      Specified by:
      getReadACL in interface ecmwf.web.model.users.Resource
      Throws:
      ecmwf.web.model.users.UserException
    • getWriteACL

      public ecmwf.web.model.users.ACL getWriteACL() throws ecmwf.web.model.users.UserException
      Gets the write ACL.
      Specified by:
      getWriteACL in interface ecmwf.web.model.users.Resource
      Throws:
      ecmwf.web.model.users.UserException
    • setReadACL

      public void setReadACL(ecmwf.web.model.users.ACL acl) throws IllegalAccessException
      Sets the read ACL.
      Specified by:
      setReadACL in interface ecmwf.web.model.users.Resource
      Throws:
      IllegalAccessException