org.wamblee.security.authorization
Class IsaOperationCondition

java.lang.Object
  extended by org.wamblee.security.authorization.AbstractOperationCondition
      extended by org.wamblee.security.authorization.IsaOperationCondition
All Implemented Interfaces:
OperationCondition

@Entity
public class IsaOperationCondition
extends AbstractOperationCondition

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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

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 © 2022. All Rights Reserved.