org.openpermis.editor.policy.command
Class AbstractRoleCommand

java.lang.Object
  extended by org.openpermis.editor.policy.command.AbstractCommand
      extended by org.openpermis.editor.policy.command.AbstractRoleCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
AddRoleCommand, DetachRoleCommand, IncludeRoleCommand, RemoveRoleCommand, RenameRoleCommand

public abstract class AbstractRoleCommand
extends AbstractCommand

Keeps the information needed for the different role hierarchy commands.

Since:
0.3.0

Constructor Summary
AbstractRoleCommand(String name, String roleName, org.openpermis.policy.bean.RoleHierarchyBean roleHierarchyBean)
          Creates an AbstractRoleCommand.
 
Method Summary
protected  org.openpermis.policy.bean.RoleHierarchyBean getRoleHierarchyBean()
          Returns the hierarchy object.
protected  String getRoleName()
          Returns the role name.
 
Methods inherited from class org.openpermis.editor.policy.command.AbstractCommand
execute, getName, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRoleCommand

public AbstractRoleCommand(String name,
                           String roleName,
                           org.openpermis.policy.bean.RoleHierarchyBean roleHierarchyBean)
Creates an AbstractRoleCommand.

Parameters:
name - the command name.
roleName - the role name.
roleHierarchyBean - the hierarchy object.
Since:
0.3.0
Method Detail

getRoleName

protected String getRoleName()
Returns the role name.

Returns:
the role name.
Since:
0.3.0

getRoleHierarchyBean

protected org.openpermis.policy.bean.RoleHierarchyBean getRoleHierarchyBean()
Returns the hierarchy object.

Returns:
the hierarchy object.
Since:
0.3.0


PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG