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
FieldsModifier and TypeFieldDescriptionprotected static final charThe Constant USE_INSTEAD_OF_SLASHES.Fields inherited from interface ecmwf.web.model.users.Resource
HOST_PATH_SEPARATOR, ORIGINAL_URL_REQUEST_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(ecmwf.web.model.users.Category cat) Adds the category.voiddeleteCategory(ecmwf.web.model.users.Category cat) Delete category.booleanequals(ecmwf.web.model.users.Resource r) Equals.booleanEquals.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.getHost()Gets the host.getId()Gets the id.Gets the ojb implementation.getPath()Gets the path.ecmwf.web.model.users.ACLGets the read ACL.ecmwf.web.model.users.ACLGets the write ACL.inthashCode()Hash code.voidSets the host.voidSets the path.voidsetReadACL(ecmwf.web.model.users.ACL acl) Sets the read ACL.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ecmwf.web.model.ModelBean
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
-
Field Details
-
USE_INSTEAD_OF_SLASHES
protected static final char USE_INSTEAD_OF_SLASHESThe Constant USE_INSTEAD_OF_SLASHES.- See Also:
-
-
Constructor Details
-
ResourceBean
-
-
Method Details
-
getBeanInterfaceName
Gets the bean interface name.- Specified by:
getBeanInterfaceNamein interfaceecmwf.web.model.ModelBean- Specified by:
getBeanInterfaceNamein classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementationin interfaceOjbImplementedBean- Returns:
- the ojb implementation
-
getId
Gets the id.- Specified by:
getIdin interfaceecmwf.web.model.ModelBean- Overrides:
getIdin classecmwf.web.dao.ModelBeanBase
-
getHost
Gets the host.- Specified by:
getHostin interfaceecmwf.web.model.users.Resource
-
setHost
Sets the host.- Specified by:
setHostin interfaceecmwf.web.model.users.Resource
-
getPath
Gets the path.- Specified by:
getPathin interfaceecmwf.web.model.users.Resource
-
setPath
Sets the path.- Specified by:
setPathin interfaceecmwf.web.model.users.Resource
-
getCategories
public Collection<ecmwf.web.model.users.Category> getCategories() throws ecmwf.web.model.users.UserExceptionGets the categories.- Specified by:
getCategoriesin interfaceecmwf.web.model.users.Resource- Throws:
ecmwf.web.model.users.UserException
-
equals
-
equals
public boolean equals(ecmwf.web.model.users.Resource r) Equals.- Parameters:
r- the r- Returns:
- true, if successful
-
hashCode
-
deleteCategory
public void deleteCategory(ecmwf.web.model.users.Category cat) Delete category. Delete category.- Specified by:
deleteCategoryin interfaceWebResource- Parameters:
cat- the c
-
addCategory
public void addCategory(ecmwf.web.model.users.Category cat) Adds the category. Adds the category.- Specified by:
addCategoryin interfaceWebResource- Parameters:
cat- the c
-
getAddedCategories
Gets the added categories.- Returns:
- the added categories
-
getDeletedCategories
Gets the deleted categories.- Returns:
- the deleted categories
-
getReadACL
public ecmwf.web.model.users.ACL getReadACL() throws ecmwf.web.model.users.UserExceptionGets the read ACL.- Specified by:
getReadACLin interfaceecmwf.web.model.users.Resource- Throws:
ecmwf.web.model.users.UserException
-
getWriteACL
public ecmwf.web.model.users.ACL getWriteACL() throws ecmwf.web.model.users.UserExceptionGets the write ACL.- Specified by:
getWriteACLin interfaceecmwf.web.model.users.Resource- Throws:
ecmwf.web.model.users.UserException
-
setReadACL
Sets the read ACL.- Specified by:
setReadACLin interfaceecmwf.web.model.users.Resource- Throws:
IllegalAccessException
-