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 Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected static final char
    The Constant USE_INSTEAD_OF_SLASHES.

    Fields inherited from interface ecmwf.web.model.users.Resource Link icon

    HOST_PATH_SEPARATOR, ORIGINAL_URL_REQUEST_KEY
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    Instantiates a new resource bean.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    addCategory(ecmwf.web.model.users.Category cat)
    Adds the category.
    void
    deleteCategory(ecmwf.web.model.users.Category cat)
    Delete category.
    boolean
    equals(ecmwf.web.model.users.Resource r)
    Equals.
    boolean
    Equals.
    protected Collection<ecmwf.web.model.users.Category>
    Gets the added categories.
    Gets the bean interface name.
    Collection<ecmwf.web.model.users.Category>
    Gets the categories.
    protected Collection<ecmwf.web.model.users.Category>
    Gets the deleted categories.
    Gets the host.
    Gets the id.
    Gets the ojb implementation.
    Gets the path.
    ecmwf.web.model.users.ACL
    Gets the read ACL.
    ecmwf.web.model.users.ACL
    Gets the write ACL.
    int
    Hash code.
    void
    Sets the host.
    void
    Sets the path.
    void
    setReadACL(ecmwf.web.model.users.ACL acl)
    Sets the read ACL.

    Methods inherited from class ecmwf.web.dao.ModelBeanBase Link icon

    delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ecmwf.web.model.ModelBean Link icon

    delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
  • Field Details Link icon

    • USE_INSTEAD_OF_SLASHES Link icon

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

    • ResourceBean Link icon

      protected ResourceBean(Url url)
      Instantiates a new resource bean.
      Parameters:
      url - the url
  • Method Details Link icon

    • getBeanInterfaceName Link icon

      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 Link icon

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

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

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

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

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

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

      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 Link icon

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

      public boolean equals(ecmwf.web.model.users.Resource r)
      Equals.
      Parameters:
      r - the r
      Returns:
      true, if successful
    • hashCode Link icon

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

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

      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 Link icon

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

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

      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 Link icon

      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 Link icon

      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