Compoze Software, Inc.

com.compoze.ejb
Class PolicyManager.Role


java.lang.Object

  |

  +--com.compoze.ejb.PolicyManager.Role

All Implemented Interfaces:
java.io.Serializable
Enclosing class:
PolicyManager

public class PolicyManager.Role
extends java.lang.Object
implements java.io.Serializable

Represents a role for a user and has the targets that the role has access to.

See Also:
Serialized Form

Constructor Summary
PolicyManager.Role(int iRoleNumber, int[] iAccessibleTargets, java.lang.String sRoleName)
          Constructor.
 
Method Summary
 java.lang.String getRoleName()
          Gets the role name.
 int getRoleNumber()
          Gets the number of a role (0-31).
 boolean hasTarget(int iTarget)
          Tests if the role is allowed access to the given target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyManager.Role


public PolicyManager.Role(int iRoleNumber,
                          int[] iAccessibleTargets,
                          java.lang.String sRoleName)
Constructor.
Parameters:
iRoleNumber - the role number
iAccessibleTargets - the targets this role can access
sRoleName - the role name
Method Detail

getRoleNumber


public int getRoleNumber()
Gets the number of a role (0-31).
Returns:
the role number

getRoleName


public java.lang.String getRoleName()
Gets the role name.
Returns:
the role name

hasTarget


public boolean hasTarget(int iTarget)
Tests if the role is allowed access to the given target.
Parameters:
iTarget - the target number
Returns:
true if the role can access the given target

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.