XGTRBAC
Class UserRoleAssign.AssignConstraint

java.lang.Object
  extended by XGTRBAC.UserRoleAssign.AssignConstraint
Enclosing class:
UserRoleAssign

public class UserRoleAssign.AssignConstraint
extends java.lang.Object

An inner "AssignConstraint" class *


Field Summary
private  java.util.LinkedList AssignConditionList
           
private  java.lang.String DExprId
           
private  java.lang.String opcode
           
 
Constructor Summary
UserRoleAssign.AssignConstraint()
          Creates a new instance of AssignConstraint
 
Method Summary
 int addAssignCondition(java.lang.String cred_type)
          Adds a new assign condition to the AssignConditionList
 UserRoleAssign.AssignCondition getAssignCondition(java.lang.String cred_type)
          Returns the assign condition for the URAssign
 int getAssignConditionCount()
          Returns the number of assign conditions for the role
 java.lang.String getAssignConditionType(int index)
          Returns the credential type of the assign condition
 java.lang.String getDExprId()
          Returns the duration expression id reference for the assign constraint
 DurationExpr getDurationExpr(Policy policy, boolean[] status)
          Returns the effective duration expression of an assign constraint
 java.lang.String getOpcode()
          Returns the opcode
 boolean getResult(boolean[] status)
          Returns the result for an assign constraint evaluation
 void setDExprId(java.lang.String d_expr_id)
          Sets the duration expression id reference for the assign constraint
 void setOpcode(java.lang.String op)
          Sets the opcode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

opcode

private java.lang.String opcode

DExprId

private java.lang.String DExprId

AssignConditionList

private java.util.LinkedList AssignConditionList
Constructor Detail

UserRoleAssign.AssignConstraint

public UserRoleAssign.AssignConstraint()
Creates a new instance of AssignConstraint

Method Detail

getOpcode

public java.lang.String getOpcode()
Returns the opcode

Returns:
The opcode as String

setOpcode

public void setOpcode(java.lang.String op)
Sets the opcode

Parameters:
op - The opcode supplied as String

setDExprId

public void setDExprId(java.lang.String d_expr_id)
Sets the duration expression id reference for the assign constraint

Parameters:
d_expr_id - The duration expression id reference supplied as String

getDExprId

public java.lang.String getDExprId()
Returns the duration expression id reference for the assign constraint

Returns:
The duration expression id reference as String

getAssignConditionCount

public int getAssignConditionCount()
Returns the number of assign conditions for the role

Returns:
The assign condition count as int

getAssignConditionType

public java.lang.String getAssignConditionType(int index)
Returns the credential type of the assign condition

Parameters:
index - The integer index of the assign condition in the AssignConditionList
Returns:
The cred_type as String

addAssignCondition

public int addAssignCondition(java.lang.String cred_type)
Adds a new assign condition to the AssignConditionList

Parameters:
cred_type - The cred_type of the assign condition supplied as String
Returns:
Integer representing state of the operation

getAssignCondition

public UserRoleAssign.AssignCondition getAssignCondition(java.lang.String cred_type)
Returns the assign condition for the URAssign

Parameters:
cred_type - The credential type of the AssignCondition supplied as String
Returns:
The assign condition as AssignCondition, null if none found

getResult

public boolean getResult(boolean[] status)
Returns the result for an assign constraint evaluation

Parameters:
status - An array with stored results of all assign conditions supplied as boolean[]
Returns:
The result as boolean

getDurationExpr

public DurationExpr getDurationExpr(Policy policy,
                                    boolean[] status)
Returns the effective duration expression of an assign constraint

Parameters:
policy - The reference to policy object supplied as Policy
status - An array with stored results of all assign conditions supplied as boolean[]
Returns:
The effective duration expression as DurationExpr