org.codehaus.plexus.redback.role.model
Class ModelTemplate

java.lang.Object
  extended by org.codehaus.plexus.redback.role.model.ModelTemplate
All Implemented Interfaces:
java.io.Serializable

public class ModelTemplate
extends java.lang.Object
implements java.io.Serializable

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

Version:
$Revision$ $Date$
See Also:
Serialized Form

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

ModelTemplate

public ModelTemplate()
Method Detail

addChildRole

public void addChildRole(java.lang.String string)
Method addChildRole

Parameters:
string -

addChildTemplate

public void addChildTemplate(java.lang.String string)
Method addChildTemplate

Parameters:
string -

addParentRole

public void addParentRole(java.lang.String string)
Method addParentRole

Parameters:
string -

addParentTemplate

public void addParentTemplate(java.lang.String string)
Method addParentTemplate

Parameters:
string -

addPermission

public void addPermission(ModelPermission modelPermission)
Method addPermission

Parameters:
modelPermission -

equals

public boolean equals(java.lang.Object other)
Method equals

Overrides:
equals in class java.lang.Object
Parameters:
other -

getChildRoles

public java.util.List getChildRoles()
Method getChildRoles


getChildTemplates

public java.util.List getChildTemplates()
Method getChildTemplates


getDelimiter

public java.lang.String getDelimiter()
Get


getDescription

public java.lang.String getDescription()
Get description of this role


getId

public java.lang.String getId()
Get null


getNamePrefix

public java.lang.String getNamePrefix()
Get


getParentRoles

public java.util.List getParentRoles()
Method getParentRoles


getParentTemplates

public java.util.List getParentTemplates()
Method getParentTemplates


getPermissions

public java.util.List getPermissions()
Method getPermissions


hashCode

public int hashCode()
Method hashCode

Overrides:
hashCode in class java.lang.Object

isAssignable

public boolean isAssignable()
Get boolean specifying if a given role can assigned


isPermanent

public boolean isPermanent()
Get boolean specifying if a given role can be removed once created


isPermanentResource

public boolean isPermanentResource()
Get boolean specifying if the resource generated with this template can be removed once created


removeChildRole

public void removeChildRole(java.lang.String string)
Method removeChildRole

Parameters:
string -

removeChildTemplate

public void removeChildTemplate(java.lang.String string)
Method removeChildTemplate

Parameters:
string -

removeParentRole

public void removeParentRole(java.lang.String string)
Method removeParentRole

Parameters:
string -

removeParentTemplate

public void removeParentTemplate(java.lang.String string)
Method removeParentTemplate

Parameters:
string -

removePermission

public void removePermission(ModelPermission modelPermission)
Method removePermission

Parameters:
modelPermission -

setAssignable

public void setAssignable(boolean assignable)
Set boolean specifying if a given role can assigned

Parameters:
assignable -

setChildRoles

public void setChildRoles(java.util.List childRoles)
Set the id of other role profiles to assign as children to this role, can accept 'foo - ${resource}'

Parameters:
childRoles -

setChildTemplates

public void setChildTemplates(java.util.List childTemplates)
Set the id of other templates to assign as children to this role, can accept 'foo - ${resource}'

Parameters:
childTemplates -

setDelimiter

public void setDelimiter(java.lang.String delimiter)
Set

Parameters:
delimiter -

setDescription

public void setDescription(java.lang.String description)
Set description of this role

Parameters:
description -

setId

public void setId(java.lang.String id)
Set null

Parameters:
id -

setNamePrefix

public void setNamePrefix(java.lang.String namePrefix)
Set

Parameters:
namePrefix -

setParentRoles

public 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}'

Parameters:
parentRoles -

setParentTemplates

public 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}'

Parameters:
parentTemplates -

setPermanent

public void setPermanent(boolean permanent)
Set boolean specifying if a given role can be removed once created

Parameters:
permanent -

setPermanentResource

public void setPermanentResource(boolean permanentResource)
Set boolean specifying if the resource generated with this template can be removed once created

Parameters:
permanentResource -

setPermissions

public void setPermissions(java.util.List permissions)
Set null

Parameters:
permissions -

toString

public java.lang.String toString()
Method toString

Overrides:
toString in class java.lang.Object

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


Copyright © 2006-2008 Codehaus. All Rights Reserved.