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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(ecmwf.web.model.users.Resource res) Adds the resource.void
deleteResource
(ecmwf.web.model.users.Resource cat) Delete resource.Dump.boolean
equals
(ecmwf.web.model.users.Category c) Equals.boolean
Equals.Gets the accessible resources.boolean
Gets the active.protected Collection
<ecmwf.web.model.users.Resource> Gets the added resources.Gets the bean interface name.protected Collection
<ecmwf.web.model.users.Resource> Gets the deleted resources.Gets the description.getId()
Gets the id.int
getIntId()
Gets the int id.getName()
Gets the name.Gets the ojb implementation.getRealm()
Gets the realm.Gets the users with profile.boolean
hasAccess
(ecmwf.web.model.users.Resource r) Checks for access.int
hashCode()
Hash code.void
setActive
(boolean b) Sets the active.void
Sets the description.void
Sets the id.void
Sets the name.toString()
To string.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, insert, insert, isNew, save, save
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ecmwf.web.model.ModelBean
delete, delete, getAttributeValue, insert, insert, isNew, save, save
-
Constructor Details
-
CategoryBean
Instantiates a new category bean.- Parameters:
category
- the category
-
-
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
-
getIntId
public int getIntId()Gets the int id.- Specified by:
getIntId
in interfaceecmwf.web.model.ModelBean
- Overrides:
getIntId
in classecmwf.web.dao.ModelBeanBase
-
setId
Sets the id.- Specified by:
setId
in interfaceecmwf.web.model.ModelBean
- Overrides:
setId
in classecmwf.web.dao.ModelBeanBase
-
getName
Gets the name.- Specified by:
getName
in interfaceecmwf.web.model.users.Category
-
getDescription
Gets the description.- Specified by:
getDescription
in interfaceecmwf.web.model.users.Category
-
setDescription
Sets the description.- Specified by:
setDescription
in interfaceecmwf.web.model.users.Category
-
setName
Sets the name.- Specified by:
setName
in interfaceecmwf.web.model.users.Category
-
getRealm
-
hasAccess
public boolean hasAccess(ecmwf.web.model.users.Resource r) Checks for access.- Specified by:
hasAccess
in interfaceecmwf.web.model.users.Category
-
getUsersWithProfile
Gets the users with profile.- Specified by:
getUsersWithProfile
in interfaceecmwf.web.model.users.Category
- Throws:
ecmwf.web.model.users.UserException
-
getAccessibleResources
Gets the accessible resources.- Specified by:
getAccessibleResources
in interfaceecmwf.web.model.users.Category
- Throws:
ecmwf.web.model.users.UserException
-
equals
-
equals
public boolean equals(ecmwf.web.model.users.Category c) Equals.- Specified by:
equals
in interfaceecmwf.web.model.users.Category
-
hashCode
-
dump
-
deleteResource
public void deleteResource(ecmwf.web.model.users.Resource cat) Delete resource. Delete resource.- Specified by:
deleteResource
in interfaceWebCategory
- Parameters:
cat
- the r
-
addResource
public void addResource(ecmwf.web.model.users.Resource res) Adds the resource. Adds the resource.- Specified by:
addResource
in interfaceWebCategory
- Parameters:
res
- the r
-
getActive
public boolean getActive()Gets the active. Gets the active.- Specified by:
getActive
in interfaceWebCategory
- Returns:
- the active
-
setActive
public void setActive(boolean b) Sets the active. Sets the active.- Specified by:
setActive
in interfaceWebCategory
- Parameters:
b
- the new active
-
getAddedResources
Gets the added resources.- Returns:
- the added resources
-
getDeletedResources
Gets the deleted resources.- Returns:
- the deleted resources
-
toString
-