Class RoleBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.administrator.RoleBean
- All Implemented Interfaces:
Role,BusinessObject,Serializable
Object representing a role within the system.
RoleBean is the
default implementation of the Role interface for the
application.
The database stores roles in the sscRole table, and this class
can be used to represent a single row of that table. The Hibernate
configuration file RoleBean.hbm.xml maps that table's columns
to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collectionprivate Stringprivate String(package private) static org.apache.commons.logging.Logprivate Stringprivate intprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getName()intvoidsetAdministratorRoles(Collection administratorRoles) voidvoidsetDescription(String description) voidvoidsetRoleID(int roleID) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
roleID
private int roleID -
code
-
name
-
description
-
administratorRoles
-
-
Constructor Details
-
RoleBean
public RoleBean()
-
-
Method Details
-
getRoleID
public int getRoleID() -
setRoleID
public void setRoleID(int roleID) -
getCode
-
setCode
-
getName
-
setName
-
getDescription
- Specified by:
getDescriptionin interfaceRole
-
setDescription
- Specified by:
setDescriptionin interfaceRole
-
getAdministratorRoles
- Specified by:
getAdministratorRolesin interfaceRole
-
setAdministratorRoles
- Specified by:
setAdministratorRolesin interfaceRole
-