org.openejb.alt.assembler.classic
Class AssemblerTool.RoleMapping

java.lang.Object
  extended by org.openejb.alt.assembler.classic.AssemblerTool.RoleMapping
Enclosing class:
AssemblerTool

public static class AssemblerTool.RoleMapping
extends java.lang.Object

This class encapsulates a mapping between a collection of logical roles and each of those roles equivalent physical security roles in the target environment.

Instance of this class are constructed from a RoleMappingInfo configuration class. This class is used in the applySecurityRoleReferences( ) and applyMethodPermissions( ) Assembler methods.


Constructor Summary
AssemblerTool.RoleMapping(RoleMappingInfo[] roleMappingInfos)
          Constructs an instance from a RoleMappingInfo configuration object.
 
Method Summary
 java.lang.String[] getPhysicalRoles(java.lang.String logicalRole)
          Returns a collection of physical roles that are mapped to the logical role.
 java.lang.String[] logicalRoles()
          Returns all the logical roles in this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblerTool.RoleMapping

public AssemblerTool.RoleMapping(RoleMappingInfo[] roleMappingInfos)
Constructs an instance from a RoleMappingInfo configuration object.

Parameters:
roleMappingInfos - configuration object holds collections of logical and physical roles
See Also:
RoleMappingInfo
Method Detail

logicalRoles

public java.lang.String[] logicalRoles()
Returns all the logical roles in this mapping. The logical roles act as keys to collections of equivalent physical roles

Returns:
a collection of logical roles

getPhysicalRoles

public java.lang.String[] getPhysicalRoles(java.lang.String logicalRole)
Returns a collection of physical roles that are mapped to the logical role.

Parameters:
logicalRole - a logical role that is mapped to physical roles
Returns:
a collection of physical roles; null if no roles are mapped.


Copyright © 1999-2011 OpenEJB. All Rights Reserved.