|
![]() |
||||||||
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.command.PartRemoveCommand<P>
P
- part typepublic abstract class PartRemoveCommand<P extends org.openpermis.policy.bean.PartBean>
Command that deletes a target allover the model.
Field Summary | |
---|---|
private P |
part
The bean to operate. |
Constructor Summary | |
---|---|
PartRemoveCommand(P part)
Creates a command. |
Method Summary | |
---|---|
void |
execute(org.openpermis.policy.bean.PolicyBean policyBean)
Executes the command and stores necessary information to undo any changes. |
P |
getPart()
|
(package private) abstract void |
removePart(org.openpermis.policy.bean.PolicyBean policyBean,
boolean doExec)
|
void |
undo(org.openpermis.policy.bean.PolicyBean policyBean)
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 |
Field Detail |
---|
private final P extends org.openpermis.policy.bean.PartBean part
Constructor Detail |
---|
public PartRemoveCommand(P part)
part
- the part to modify, must not be null
.Method Detail |
---|
public P getPart()
abstract void removePart(org.openpermis.policy.bean.PolicyBean policyBean, boolean doExec)
public void execute(org.openpermis.policy.bean.PolicyBean policyBean)
Command
execute
in interface Command
execute
in class AbstractCommand
policyBean
- the policy to execute the command on.public void undo(org.openpermis.policy.bean.PolicyBean policyBean)
Command
Command.execute(org.openpermis.policy.bean.PolicyBean)
.
undo
in interface Command
undo
in class AbstractCommand
policyBean
- 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.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG