org.openpermis.editor.policy.command
Class RenameRoleCommand
java.lang.Object
org.openpermis.editor.policy.command.AbstractCommand
org.openpermis.editor.policy.command.AbstractRoleCommand
org.openpermis.editor.policy.command.RenameRoleCommand
- All Implemented Interfaces:
- Command
public class RenameRoleCommand
- extends AbstractRoleCommand
Renames a role.
- Since:
- 0.3.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newName
private final String newName
- Since:
- 0.3.0
RenameRoleCommand
public RenameRoleCommand(String name,
String roleName,
String newName,
org.openpermis.policy.bean.RoleHierarchyBean roleHierarchyBean)
- Creates a
RenameRoleCommand
.
- Since:
- 0.3.0
execute
public void execute(org.openpermis.policy.bean.PolicyBean policy)
throws Exception
- Description copied from interface:
Command
- Executes the command and stores necessary information to undo any changes.
- Specified by:
execute
in interface Command
- Specified by:
execute
in class AbstractCommand
- Parameters:
policy
- the policy to execute the command on.
- Throws:
Exception
- Since:
- 0.3.0
undo
public void undo(org.openpermis.policy.bean.PolicyBean policy)
throws Exception
- Description copied from interface:
Command
- Reverts any changes performed in
Command.execute(org.openpermis.policy.bean.PolicyBean)
.
- Specified by:
undo
in interface Command
- Specified by:
undo
in class AbstractCommand
- Parameters:
policy
- the policy to revert.
- Throws:
Exception
- Since:
- 0.3.0
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG