|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.command.AbstractCommand
public abstract class AbstractCommand
Abstract command implementation.
Constructor Summary | |
---|---|
protected |
AbstractCommand(String name)
Creates an abstract command with the specified name. |
Method Summary | |
---|---|
abstract void |
execute(org.openpermis.policy.bean.PolicyBean policy)
Executes the command and stores necessary information to undo any changes. |
String |
getName()
Returns the name of the command suitable for display in the user interface. |
abstract void |
undo(org.openpermis.policy.bean.PolicyBean policy)
Reverts any changes performed in Command.execute(org.openpermis.policy.bean.PolicyBean) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractCommand(String name)
name
- the name of this command.Method Detail |
---|
public final String getName()
Command
getName
in interface Command
public abstract void execute(org.openpermis.policy.bean.PolicyBean policy) throws Exception
Command
execute
in interface Command
policy
- the policy to execute the command on.
Exception
public abstract void undo(org.openpermis.policy.bean.PolicyBean policy) throws Exception
Command
Command.execute(org.openpermis.policy.bean.PolicyBean)
.
undo
in interface Command
policy
- the policy to revert.
Exception
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG