© 2005 BEA Systems, Inc.

com.bea.p13n.security.management.rolemapper
Class RoleManagerProxy

java.lang.Object
  extended bycom.bea.p13n.security.management.rolemapper.RoleManagerProxy

public class RoleManagerProxy
extends Object

This class provides access to Role management functions as defined by the WLS Security Service Provider Interface (SSPI). This class acts as a proxy for a single, configured Role Mapper Provider plug-in by proxying calls to the RoleProvider class.

This class should not contain any layered product dependencies.

Since it is possible that a Role Mapper Provider may not implement all optional management interfaces, an OperationNotSupportedException may be thrown.

This class is constructed using the RoleProviderDescription.

See Also:
RoleSecurityMgmtHelper

Constructor Summary
RoleManagerProxy(RoleProviderDescription aProviderDescription)
           
RoleManagerProxy(RoleProviderDescription aProviderDescription, boolean cacheAdminMBean)
           
 
Method Summary
 String getUniqueName()
          Get the unique name for this RoleManagerProxy.
 String[] listRolesForResource(String resourceId)
          Lists all role names for this provider associated with the given resource id.
 boolean roleExists(String resourceId, String roleName)
          Determines if a role exists for this provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleManagerProxy

public RoleManagerProxy(RoleProviderDescription aProviderDescription)

RoleManagerProxy

public RoleManagerProxy(RoleProviderDescription aProviderDescription,
                        boolean cacheAdminMBean)
Method Detail

getUniqueName

public String getUniqueName()
Get the unique name for this RoleManagerProxy. It's the concatenation of the display name with the version.


listRolesForResource

public String[] listRolesForResource(String resourceId)
Lists all role names for this provider associated with the given resource id.

Parameters:
resourceId - the resource the role is scoped to
Returns:
String array of role names

roleExists

public boolean roleExists(String resourceId,
                          String roleName)
Determines if a role exists for this provider.

Parameters:
resourceId - the resource the role is scoped to
roleName - the role name to check
Returns:
true if the role exists, false otherwise

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved