|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.redback.role.model.ModelRole
public class ModelRole
model roles specify a role and its corresponding permissions, child roles and parent roles to link to
| Constructor Summary | |
|---|---|
ModelRole()
|
|
| Method Summary | |
|---|---|
void |
addChildRole(java.lang.String string)
Method addChildRole |
void |
addParentRole(java.lang.String string)
Method addParentRole |
void |
addPermission(ModelPermission modelPermission)
Method addPermission |
boolean |
equals(java.lang.Object other)
Method equals |
java.util.List |
getChildRoles()
Method getChildRoles |
java.lang.String |
getDescription()
Get description of this role |
java.lang.String |
getId()
Get null |
java.lang.String |
getModelEncoding()
|
java.lang.String |
getName()
Get either a normal name, or 'name - ${resource}' |
java.util.List |
getParentRoles()
Method getParentRoles |
java.util.List |
getPermissions()
Method getPermissions |
int |
hashCode()
Method hashCode |
boolean |
isAssignable()
Get boolean specifying if a given role can assigned |
boolean |
isPermanent()
Get boolean specifying if a given role can be removed once created |
void |
removeChildRole(java.lang.String string)
Method removeChildRole |
void |
removeParentRole(java.lang.String string)
Method removeParentRole |
void |
removePermission(ModelPermission modelPermission)
Method removePermission |
void |
setAssignable(boolean assignable)
Set boolean specifying if a given role can assigned |
void |
setChildRoles(java.util.List childRoles)
Set the id of other role profiles to assign as children to this role, can accept 'foo - ${resource}' |
void |
setDescription(java.lang.String description)
Set description of this role |
void |
setId(java.lang.String id)
Set null |
void |
setModelEncoding(java.lang.String modelEncoding)
|
void |
setName(java.lang.String name)
Set either a normal name, or 'name - ${resource}' |
void |
setParentRoles(java.util.List parentRoles)
Set the id of other role profiles to have create a child relationship to this role, can accept 'foo - ${resource}' |
void |
setPermanent(boolean permanent)
Set boolean specifying if a given role can be removed once created |
void |
setPermissions(java.util.List permissions)
Set null |
java.lang.String |
toString()
Method toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModelRole()
| Method Detail |
|---|
public void addChildRole(java.lang.String string)
string - public void addParentRole(java.lang.String string)
string - public void addPermission(ModelPermission modelPermission)
modelPermission - public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - public java.util.List getChildRoles()
public java.lang.String getDescription()
public java.lang.String getId()
public java.lang.String getName()
public java.util.List getParentRoles()
public java.util.List getPermissions()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isAssignable()
public boolean isPermanent()
public void removeChildRole(java.lang.String string)
string - public void removeParentRole(java.lang.String string)
string - public void removePermission(ModelPermission modelPermission)
modelPermission - public void setAssignable(boolean assignable)
assignable - public void setChildRoles(java.util.List childRoles)
childRoles - public void setDescription(java.lang.String description)
description - public void setId(java.lang.String id)
id - public void setName(java.lang.String name)
name - public void setParentRoles(java.util.List parentRoles)
parentRoles - public void setPermanent(boolean permanent)
permanent - public void setPermissions(java.util.List permissions)
permissions - public java.lang.String toString()
toString in class java.lang.Objectpublic void setModelEncoding(java.lang.String modelEncoding)
public java.lang.String getModelEncoding()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||