XGTRBAC
Class SSDRoleSet

java.lang.Object
  extended by XGTRBAC.SSDRoleSet

public class SSDRoleSet
extends java.lang.Object

This class contains methods and members for maintaining SSD role sets. It is instantiated in XRS_DTDScanner class (addSSDRoleSet method).


Field Summary
private  int cardinality
           
private  Policy policy
           
private  java.util.LinkedList SSDRoleNames
           
private  java.lang.String SSDRoleSetId
           
 
Constructor Summary
SSDRoleSet(java.lang.String id)
          Creates a new instance of SSDRoleSet
 
Method Summary
 int addSSDRole(java.lang.String role_name)
          Adds a new SSD role to the SSDRoleNames list
 Policy getPolicy()
          Returns the policy object containing this DSDRoleSet
 int getSSDCardinality()
          Returns the cardinality of a role set
 int getSSDRoleCount()
          Returns the number of roles in the set
 java.lang.String getSSDRoleName(int index)
          Returns the name of the SSD role
 java.lang.String getSSDRoleSetId()
          Returns the id of a role set
 void setPolicy(Policy policy)
          Sets the policy object containing this DSDRoleSet
 void setSSDCardinality(int cardinality)
          Sets the cardinality of a role set
 void setSSDRoleName(java.lang.String role_name, int index)
          Sets the name of the SSD role
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSDRoleSetId

private java.lang.String SSDRoleSetId

SSDRoleNames

private java.util.LinkedList SSDRoleNames

cardinality

private int cardinality

policy

private Policy policy
Constructor Detail

SSDRoleSet

public SSDRoleSet(java.lang.String id)
Creates a new instance of SSDRoleSet

Method Detail

getSSDRoleSetId

public java.lang.String getSSDRoleSetId()
Returns the id of a role set

Returns:
The role set id as String

getSSDCardinality

public int getSSDCardinality()
Returns the cardinality of a role set

Returns:
The role set cardinality as int

setSSDCardinality

public void setSSDCardinality(int cardinality)
Sets the cardinality of a role set

Parameters:
cardinality - The role set cardinality supplied as int

getSSDRoleCount

public int getSSDRoleCount()
Returns the number of roles in the set

Returns:
The role count as int

setSSDRoleName

public void setSSDRoleName(java.lang.String role_name,
                           int index)
Sets the name of the SSD role

Parameters:
role_name - The name of the role supplied as String
index - The integer index of the role in the RoleNames list

getSSDRoleName

public java.lang.String getSSDRoleName(int index)
Returns the name of the SSD role

Parameters:
index - The integer index of the role in the RoleNames list
Returns:
The role name

addSSDRole

public int addSSDRole(java.lang.String role_name)
Adds a new SSD role to the SSDRoleNames list

Parameters:
role_name - Name of the SSD role supllied as String
Returns:
Integer representing state of the operation

getPolicy

public Policy getPolicy()
Returns the policy object containing this DSDRoleSet

Returns:
The policy object as Policy

setPolicy

public void setPolicy(Policy policy)
Sets the policy object containing this DSDRoleSet

Parameters:
policy - The policy object supplied as Policy