org.wamblee.security.authorization
Class IsaOperationCondition

java.lang.Object
  extended by org.wamblee.persistence.AbstractPersistent
      extended by org.wamblee.security.authorization.IsaOperationCondition
All Implemented Interfaces:
Persistent, OperationCondition

public class IsaOperationCondition
extends AbstractPersistent
implements OperationCondition

Determiens if an operation is a subclass of a specified operation.


Constructor Summary
IsaOperationCondition()
          For OR mapping.
IsaOperationCondition(java.lang.Class<? extends Operation> aOperation)
          Constructs the condition.
 
Method Summary
protected  java.lang.String getOperationString()
          Gets the operation as a string.
 boolean matches(Operation aOperation)
          Determines if the operation matches.
protected  void setOperationString(java.lang.String aOperation)
          Sets the operation as a string.
 java.lang.String toString()
           
 
Methods inherited from class org.wamblee.persistence.AbstractPersistent
getPersistedVersion, getPrimaryKey, setPersistedVersion, setPrimaryKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wamblee.persistence.Persistent
getPersistedVersion, getPrimaryKey, setPersistedVersion, setPrimaryKey
 

Constructor Detail

IsaOperationCondition

public IsaOperationCondition(java.lang.Class<? extends Operation> aOperation)
Constructs the condition.

Parameters:
aOperation - Operation that an operation must be an instance of.

IsaOperationCondition

public IsaOperationCondition()
For OR mapping.

Method Detail

matches

public boolean matches(Operation aOperation)
Description copied from interface: OperationCondition
Determines if the operation matches.

Specified by:
matches in interface OperationCondition
Parameters:
aOperation - Operation.
Returns:
True iff the operation matches.

getOperationString

protected java.lang.String getOperationString()
Gets the operation as a string. For OR mapping only.

Returns:
Operation string.

setOperationString

protected void setOperationString(java.lang.String aOperation)
Sets the operation as a string. For OR mapping only.

Parameters:
aOperation - Operation string.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.