com.softslate.commerce.businessobjects.administrator
Class RoleBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.administrator.RoleBean
All Implemented Interfaces:
Role, BusinessObject, java.io.Serializable

public class RoleBean
extends BaseBusinessObject
implements Role, java.io.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:
Serialized Form

Field Summary
private  java.util.Collection administratorRoles
           
private  java.lang.String code
           
private  java.lang.String description
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String name
           
private  int roleID
           
private static long serialVersionUID
           
 
Constructor Summary
RoleBean()
           
 
Method Summary
 java.util.Collection getAdministratorRoles()
           
 java.lang.String getCode()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 int getRoleID()
           
 void setAdministratorRoles(java.util.Collection administratorRoles)
           
 void setCode(java.lang.String code)
           
 void setDescription(java.lang.String description)
           
 void setName(java.lang.String name)
           
 void setRoleID(int roleID)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

roleID

private int roleID

code

private java.lang.String code

name

private java.lang.String name

description

private java.lang.String description

administratorRoles

private java.util.Collection administratorRoles
Constructor Detail

RoleBean

public RoleBean()
Method Detail

getRoleID

public int getRoleID()
Specified by:
getRoleID in interface Role

setRoleID

public void setRoleID(int roleID)
Specified by:
setRoleID in interface Role

getCode

public java.lang.String getCode()
Specified by:
getCode in interface Role

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface Role

getName

public java.lang.String getName()
Specified by:
getName in interface Role

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Role

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface Role

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface Role

getAdministratorRoles

public java.util.Collection getAdministratorRoles()
Specified by:
getAdministratorRoles in interface Role

setAdministratorRoles

public void setAdministratorRoles(java.util.Collection administratorRoles)
Specified by:
setAdministratorRoles in interface Role


Copyright © SoftSlate, LLC 2003–2005