|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.figure8.join.core.EntityObject org.figure8.join.core.SortableEntityObject org.figure8.join.businessobjects.security.Role
public class Role
This is an entity representing a security role into Join system. Role can also be seen a permission type handler.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ADMIN_ROLE
Default role name for Join administation |
static java.lang.String |
DEFAULT_ARCHITECT_ROLE
Default role name for software project architect |
static java.lang.String |
DEFAULT_JOINER_ROLE
Default role name for integration team members |
static java.lang.String |
DEFAULT_SUPPLIER_ROLE
Default role name for deliverables supplier |
Constructor Summary | |
---|---|
Role()
Creates a new instance of Role |
|
Role(java.lang.String name,
java.lang.String description)
Creates a new instance of Role with mandatory fields |
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
PermissionResourceResolver |
getPermissionResourceResolver()
Get the PermissionResourceResolver asssociated to this role (if any). |
java.lang.String |
getPermissionResourceResolverClass()
|
java.lang.String |
getStringForComparison()
Get the comparison criterion as a string. |
protected void |
instantiateResourceResolver()
Try to instantiate the PermissionResourceResolver
associated with this role (if any ...) |
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
void |
setPermissionResourceResolverClass(java.lang.String permissionResourceResolverClass)
Give a resource resolver to this role. ie : an helper object that allows to retrieve resources to whom should apply security permission within this role. |
Methods inherited from class org.figure8.join.core.SortableEntityObject |
---|
compareTo |
Methods inherited from class org.figure8.join.core.EntityObject |
---|
clone, equals, getId, hashCode, isTransient |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_ADMIN_ROLE
public static final java.lang.String DEFAULT_JOINER_ROLE
public static final java.lang.String DEFAULT_ARCHITECT_ROLE
public static final java.lang.String DEFAULT_SUPPLIER_ROLE
Constructor Detail |
---|
public Role()
public Role(java.lang.String name, java.lang.String description)
name
- Name of this new role (must be unique)description
- Description of this new roleMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of this rolepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- Description of this role (tips: use a key for localization)public java.lang.String getPermissionResourceResolverClass()
public void setPermissionResourceResolverClass(java.lang.String permissionResourceResolverClass) throws InvalidParameterException
org.figure8.join.services.security.PermissionResourceResolver
permissionResourceResolverClass
- FQN of Java class
InvalidParameterException
- if the permissionResourceResolverClass is not validpublic PermissionResourceResolver getPermissionResourceResolver() throws InvalidParameterException
PermissionResourceResolver
asssociated to this role (if any).
InvalidParameterException
- if the permissionResourceResolverClass inner field is not validprotected void instantiateResourceResolver() throws InvalidParameterException
PermissionResourceResolver
associated with this role (if any ...)
InvalidParameterException
- if the permissionResourceResolverClass inner field is not validpublic java.lang.String getStringForComparison()
getStringForComparison
in class SortableEntityObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |