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

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

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

model roles specify a role and its corresponding permissions, child roles and parent roles to link to

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

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

ModelRole

public ModelRole()
Method Detail

addChildRole

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

Parameters:
string -

addParentRole

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

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


getDescription

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


getId

public java.lang.String getId()
Get null


getName

public java.lang.String getName()
Get either a normal name, or 'name - ${resource}'


getParentRoles

public java.util.List getParentRoles()
Method getParentRoles


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


removeChildRole

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

Parameters:
string -

removeParentRole

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

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 -

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 -

setName

public void setName(java.lang.String name)
Set either a normal name, or 'name - ${resource}'

Parameters:
name -

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 -

setPermanent

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

Parameters:
permanent -

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.