Package org.marketcetera.admin.impl
Class SimpleRole
- java.lang.Object
-
- org.marketcetera.persist.EntityBase
-
- org.marketcetera.persist.NDEntityBase
-
- org.marketcetera.admin.impl.SimpleRole
-
- All Implemented Interfaces:
Serializable,MutableRole,Role,SummaryEntityBase,SummaryNDEntityBase
public class SimpleRole extends NDEntityBase implements MutableRole
Provides a simpleRoleimplementation.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Set<Permission>permissionspermission valuesprivate static longserialVersionUIDprivate Set<User>subjectssubject values-
Fields inherited from class org.marketcetera.persist.NDEntityBase
namePattern
-
Fields inherited from class org.marketcetera.persist.EntityBase
UNINITIALIZED
-
-
Constructor Summary
Constructors Constructor Description SimpleRole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Permission>getPermissions()Gets the permissions assigned to this role.Set<User>getSubjects()Gets the subjects assigned to this role.voidsetPermissions(Set<Permission> inPermissions)Sets the permissions value.voidsetSubjects(Set<User> inSubjects)Sets the subjects value.-
Methods inherited from class org.marketcetera.persist.NDEntityBase
getDescription, getName, setDescription, setName, toString, validate
-
Methods inherited from class org.marketcetera.persist.EntityBase
getId, getLastUpdated, getUpdateCount, setId, setLastUpdated, setUpdateCount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.marketcetera.admin.MutableRole
setDescription, setName
-
Methods inherited from interface org.marketcetera.persist.SummaryEntityBase
getId, getLastUpdated, getUpdateCount
-
Methods inherited from interface org.marketcetera.persist.SummaryNDEntityBase
getDescription, getName
-
-
-
-
Field Detail
-
permissions
private Set<Permission> permissions
permission values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPermissions
public Set<Permission> getPermissions()
Description copied from interface:RoleGets the permissions assigned to this role.- Specified by:
getPermissionsin interfaceRole- Returns:
- a
Set<Permission>value
-
getSubjects
public Set<User> getSubjects()
Description copied from interface:RoleGets the subjects assigned to this role.- Specified by:
getSubjectsin interfaceRole- Returns:
- a
Set<User>value
-
setPermissions
public void setPermissions(Set<Permission> inPermissions)
Sets the permissions value.- Parameters:
inPermissions- aSet<Permission>value
-
-