|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.command.AbstractCommand
org.openpermis.editor.policy.view.EditPartCommand<M>
M
- the part type.public class EditPartCommand<M extends org.openpermis.policy.bean.PartBean>
Command to edit a part.
Constructor Summary | |
---|---|
EditPartCommand(ViewContext viewContext)
Creates a new edit part command. |
Method Summary | |
---|---|
void |
execute(org.openpermis.policy.bean.PolicyBean policy)
Executes the command and stores necessary information to undo any changes. |
void |
setPart(M partInstance)
Sets the part and its type to edit. |
void |
undo(org.openpermis.policy.bean.PolicyBean policy)
Reverts any changes performed in Command.execute(org.openpermis.policy.bean.PolicyBean) . |
Methods inherited from class org.openpermis.editor.policy.command.AbstractCommand |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditPartCommand(ViewContext viewContext)
viewContext
- the view context to use.Method Detail |
---|
public void setPart(M partInstance)
partInstance
- the part to edit.public void execute(org.openpermis.policy.bean.PolicyBean policy)
Command
execute
in interface Command
execute
in class AbstractCommand
policy
- the policy to execute the command on.public void undo(org.openpermis.policy.bean.PolicyBean policy)
Command
Command.execute(org.openpermis.policy.bean.PolicyBean)
.
undo
in interface Command
undo
in class AbstractCommand
policy
- the policy to revert.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG