XGTRBAC
Class Role.RoleConstraint

java.lang.Object
  extended by XGTRBAC.Role.RoleConstraint
Enclosing class:
Role

public class Role.RoleConstraint
extends java.lang.Object

An inner "RoleConstraint" class *


Field Summary
private  java.lang.String DExprId
           
private  java.lang.String opcode
           
private  java.util.LinkedList RoleConditionList
           
 
Constructor Summary
Role.RoleConstraint()
          Creates a new instance of RoleConstraint
 
Method Summary
 Role.RoleCondition addRoleCondition()
          Adds a new role condition to the RoleConditionList
 java.lang.String getDExprId()
          Returns the duration expression id reference for the role constraint
 DurationExpr getDurationExpr(Policy policy, boolean[] status)
          Returns the effective duration expression of a role constraint
 java.lang.String getOpcode()
          Returns the opcode
 boolean getResult(boolean[] status)
          Returns the result for a role constraint evaluation
 Role.RoleCondition getRoleCondition(int index)
          Returns the role condition
 int getRoleConditionCount()
          Returns the number of role conditions for the role
 void setDExprId(java.lang.String d_expr_id)
          Sets the duration expression id reference for the role 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

RoleConditionList

private java.util.LinkedList RoleConditionList
Constructor Detail

Role.RoleConstraint

public Role.RoleConstraint()
Creates a new instance of RoleConstraint

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 role 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 role constraint

Returns:
The duration expression id reference as String

getRoleConditionCount

public int getRoleConditionCount()
Returns the number of role conditions for the role

Returns:
The role condition count as int

getRoleCondition

public Role.RoleCondition getRoleCondition(int index)
Returns the role condition

Parameters:
index - The integer index of the role condition in the RoleConditionList
Returns:
The role condition as RoleCondition

addRoleCondition

public Role.RoleCondition addRoleCondition()
Adds a new role condition to the RoleConditionList

Returns:
The reference to the role condition as RoleCondition

getResult

public boolean getResult(boolean[] status)
Returns the result for a role constraint evaluation

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

getDurationExpr

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

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