org.openpermis.editor.policy.command
Class ActionRemoveCommand

java.lang.Object
  extended by org.openpermis.editor.policy.command.AbstractCommand
      extended by org.openpermis.editor.policy.command.PartRemoveCommand<org.openpermis.policy.bean.ActionBean>
          extended by org.openpermis.editor.policy.command.ActionRemoveCommand
All Implemented Interfaces:
Command

public class ActionRemoveCommand
extends PartRemoveCommand<org.openpermis.policy.bean.ActionBean>

Command that deletes a action allover the model.

Since:
0.1.0

Constructor Summary
ActionRemoveCommand(org.openpermis.policy.bean.ActionBean action)
          Creates a command.
 
Method Summary
 void removePart(org.openpermis.policy.bean.PolicyBean policyBean, boolean doExec)
           
private  void removeTargetAction(org.openpermis.policy.bean.TargetBean target, org.openpermis.policy.bean.ActionBean action)
          Remove the specified child action from the given target.
 
Methods inherited from class org.openpermis.editor.policy.command.PartRemoveCommand
execute, getPart, undo
 
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

ActionRemoveCommand

public ActionRemoveCommand(org.openpermis.policy.bean.ActionBean action)
Creates a command.

Parameters:
action - the action to modify, must not be null.
Since:
0.1.0
Method Detail

removeTargetAction

private void removeTargetAction(org.openpermis.policy.bean.TargetBean target,
                                org.openpermis.policy.bean.ActionBean action)
Remove the specified child action from the given target.

Parameters:
target - the target on which to remove the child.
action - the child action to remove.
Since:
0.3.0

removePart

public void removePart(org.openpermis.policy.bean.PolicyBean policyBean,
                       boolean doExec)
Specified by:
removePart in class PartRemoveCommand<org.openpermis.policy.bean.ActionBean>
Since:
0.1.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG