|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.redback.role.model.ModelTemplate
public class ModelTemplate
model templates specify a role and its corresponding permissions, child roles and parent roles to link to, however they are generated at runtime with additional input
| Constructor Summary | |
|---|---|
ModelTemplate()
|
|
| Method Summary | |
|---|---|
void |
addChildRole(java.lang.String string)
Method addChildRole |
void |
addChildTemplate(java.lang.String string)
Method addChildTemplate |
void |
addParentRole(java.lang.String string)
Method addParentRole |
void |
addParentTemplate(java.lang.String string)
Method addParentTemplate |
void |
addPermission(ModelPermission modelPermission)
Method addPermission |
boolean |
equals(java.lang.Object other)
Method equals |
java.util.List |
getChildRoles()
Method getChildRoles |
java.util.List |
getChildTemplates()
Method getChildTemplates |
java.lang.String |
getDelimiter()
Get |
java.lang.String |
getDescription()
Get description of this role |
java.lang.String |
getId()
Get null |
java.lang.String |
getModelEncoding()
|
java.lang.String |
getNamePrefix()
Get |
java.util.List |
getParentRoles()
Method getParentRoles |
java.util.List |
getParentTemplates()
Method getParentTemplates |
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 |
boolean |
isPermanentResource()
Get boolean specifying if the resource generated with this template can be removed once created |
void |
removeChildRole(java.lang.String string)
Method removeChildRole |
void |
removeChildTemplate(java.lang.String string)
Method removeChildTemplate |
void |
removeParentRole(java.lang.String string)
Method removeParentRole |
void |
removeParentTemplate(java.lang.String string)
Method removeParentTemplate |
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 |
setChildTemplates(java.util.List childTemplates)
Set the id of other templates to assign as children to this role, can accept 'foo - ${resource}' |
void |
setDelimiter(java.lang.String delimiter)
Set |
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 |
setNamePrefix(java.lang.String namePrefix)
Set |
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 |
setParentTemplates(java.util.List parentTemplates)
Set the id of other templates 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 |
setPermanentResource(boolean permanentResource)
Set boolean specifying if the resource generated with this template 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 ModelTemplate()
| Method Detail |
|---|
public void addChildRole(java.lang.String string)
string - public void addChildTemplate(java.lang.String string)
string - public void addParentRole(java.lang.String string)
string - public void addParentTemplate(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.util.List getChildTemplates()
public java.lang.String getDelimiter()
public java.lang.String getDescription()
public java.lang.String getId()
public java.lang.String getNamePrefix()
public java.util.List getParentRoles()
public java.util.List getParentTemplates()
public java.util.List getPermissions()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isAssignable()
public boolean isPermanent()
public boolean isPermanentResource()
public void removeChildRole(java.lang.String string)
string - public void removeChildTemplate(java.lang.String string)
string - public void removeParentRole(java.lang.String string)
string - public void removeParentTemplate(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 setChildTemplates(java.util.List childTemplates)
childTemplates - public void setDelimiter(java.lang.String delimiter)
delimiter - public void setDescription(java.lang.String description)
description - public void setId(java.lang.String id)
id - public void setNamePrefix(java.lang.String namePrefix)
namePrefix - public void setParentRoles(java.util.List parentRoles)
parentRoles - public void setParentTemplates(java.util.List parentTemplates)
parentTemplates - public void setPermanent(boolean permanent)
permanent - public void setPermanentResource(boolean permanentResource)
permanentResource - 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 | |||||||||