org.openpermis.editor.policy.command
Interface Command

All Known Implementing Classes:
AbstractCommand, AbstractRoleCommand, ActionRemoveCommand, AddRoleCommand, AuthorityRemoveCommand, CollectionAddCommand, CollectionChangeCommand, CollectionRemoveCommand, CompositeCommand, DetachRoleCommand, EditPartCommand, IncludeRoleCommand, ObligationRemoveCommand, PartRemoveCommand, PoolChangeCommand, PoolRemoveCommand, PropertyChangeCommand, RemoveRoleCommand, RenameRoleCommand, ResourceDomainRemoveCommand, SubjectDomainRemoveCommand, TargetRemoveCommand

public interface Command

Abstraction of commands that operate on domain objects.

Since:
0.1.0

Method Summary
 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.
 void undo(org.openpermis.policy.bean.PolicyBean policy)
          Reverts any changes performed in execute(org.openpermis.policy.bean.PolicyBean).
 

Method Detail

getName

String getName()
Returns the name of the command suitable for display in the user interface.

Returns:
the name of the command suitable for display in the user interface.
Since:
0.1.0

execute

void execute(org.openpermis.policy.bean.PolicyBean policy)
             throws Exception
Executes the command and stores necessary information to undo any changes.

Parameters:
policy - the policy to execute the command on.
Throws:
Exception
Since:
0.1.0

undo

void undo(org.openpermis.policy.bean.PolicyBean policy)
          throws Exception
Reverts any changes performed in execute(org.openpermis.policy.bean.PolicyBean).

Parameters:
policy - the policy to revert.
Throws:
Exception
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