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 TypeMethodDescriptionvoidaddResource(ecmwf.web.model.users.Resource res) Adds the resource.voiddeleteResource(ecmwf.web.model.users.Resource cat) Delete resource.Dump.booleanequals(ecmwf.web.model.users.Category c) Equals.booleanEquals.Gets the accessible resources.booleanGets 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.intgetIntId()Gets the int id.getName()Gets the name.Gets the ojb implementation.getRealm()Gets the realm.Gets the users with profile.booleanhasAccess(ecmwf.web.model.users.Resource r) Checks for access.inthashCode()Hash code.voidsetActive(boolean b) Sets the active.voidSets the description.voidSets the id.voidSets the name.toString()To string.Methods inherited from class ecmwf.web.dao.ModelBeanBase
delete, delete, getAttributeValue, insert, insert, isNew, save, saveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
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
-
getIntId
public int getIntId()Gets the int id.- Specified by:
getIntIdin interfaceecmwf.web.model.ModelBean- Overrides:
getIntIdin classecmwf.web.dao.ModelBeanBase
-
setId
Sets the id.- Specified by:
setIdin interfaceecmwf.web.model.ModelBean- Overrides:
setIdin classecmwf.web.dao.ModelBeanBase
-
getName
Gets the name.- Specified by:
getNamein interfaceecmwf.web.model.users.Category
-
getDescription
Gets the description.- Specified by:
getDescriptionin interfaceecmwf.web.model.users.Category
-
setDescription
Sets the description.- Specified by:
setDescriptionin interfaceecmwf.web.model.users.Category
-
setName
Sets the name.- Specified by:
setNamein interfaceecmwf.web.model.users.Category
-
getRealm
-
hasAccess
public boolean hasAccess(ecmwf.web.model.users.Resource r) Checks for access.- Specified by:
hasAccessin interfaceecmwf.web.model.users.Category
-
getUsersWithProfile
Gets the users with profile.- Specified by:
getUsersWithProfilein interfaceecmwf.web.model.users.Category- Throws:
ecmwf.web.model.users.UserException
-
getAccessibleResources
Gets the accessible resources.- Specified by:
getAccessibleResourcesin 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:
equalsin interfaceecmwf.web.model.users.Category
-
hashCode
-
dump
-
deleteResource
public void deleteResource(ecmwf.web.model.users.Resource cat) Delete resource. Delete resource.- Specified by:
deleteResourcein interfaceWebCategory- Parameters:
cat- the r
-
addResource
public void addResource(ecmwf.web.model.users.Resource res) Adds the resource. Adds the resource.- Specified by:
addResourcein interfaceWebCategory- Parameters:
res- the r
-
getActive
public boolean getActive()Gets the active. Gets the active.- Specified by:
getActivein interfaceWebCategory- Returns:
- the active
-
setActive
public void setActive(boolean b) Sets the active. Sets the active.- Specified by:
setActivein 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
-