Contents
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 char
The Constant USE_INSTEAD_OF_SLASHES. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getHost()
Gets the host.getId()
Gets the id.Gets the ojb implementation.getPath()
Gets the path.ecmwf.web.model.users.ACL
Gets the read ACL.ecmwf.web.model.users.ACL
Gets the write ACL.int
hashCode()
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
delete, delete, getAttributeValue, getIntId, insert, insert, isNew, save, save, setId
-
Field Details
-
Constructor Details
-
Method Details
-
getBeanInterfaceName
Gets the bean interface name.- Specified by:
getBeanInterfaceName
in interfaceecmwf.web.model.ModelBean
- Specified by:
getBeanInterfaceName
in classecmwf.web.dao.ModelBeanBase
-
getOjbImplementation
Gets the ojb implementation. Gets the ojb implementation.- Specified by:
getOjbImplementation
in interfaceOjbImplementedBean
- Returns:
- the ojb implementation
-
getId
Gets the id.- Specified by:
getId
in interfaceecmwf.web.model.ModelBean
- Overrides:
getId
in classecmwf.web.dao.ModelBeanBase
-
getHost
Gets the host.- Specified by:
getHost
in interfaceecmwf.web.model.users.Resource
-
setHost
Sets the host.- Specified by:
setHost
in interfaceecmwf.web.model.users.Resource
-
getPath
Gets the path.- Specified by:
getPath
in interfaceecmwf.web.model.users.Resource
-
setPath
Sets the path.- Specified by:
setPath
in interfaceecmwf.web.model.users.Resource
-
getCategories
public Collection<ecmwf.web.model.users.Category> getCategories() throws ecmwf.web.model.users.UserExceptionGets the categories.- Specified by:
getCategories
in 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:
deleteCategory
in interfaceWebResource
- Parameters:
cat
- the c
-
addCategory
public void addCategory(ecmwf.web.model.users.Category cat) Adds the category. Adds the category.- Specified by:
addCategory
in 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:
getReadACL
in 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:
getWriteACL
in interfaceecmwf.web.model.users.Resource
- Throws:
ecmwf.web.model.users.UserException
-
setReadACL
Sets the read ACL.- Specified by:
setReadACL
in interfaceecmwf.web.model.users.Resource
- Throws:
IllegalAccessException
-