org.glassfish.deployment.common
Interface SecurityRoleMapperFactory


@Contract
public interface SecurityRoleMapperFactory

Author:
dochez

Method Summary
 String getAppNameForContext(String contextId)
          Returns the appname for this particular context id.
 SecurityRoleMapper getRoleMapper(String appName)
          Returns a RoleMapper corresponding to the AppName.
 void removeAppNameForContext(String contextId)
          removes the link between contextId and the appname
 void removeRoleMapper(String appName)
          remove the RoleMapping associated with this application
 void setAppNameForContext(String appName, String contextId)
          stores the appname for this particular context id.
 void setRoleMapper(String appName, SecurityRoleMapper rmap)
          Sets a new RoleMapper for a particular Application
 

Method Detail

getRoleMapper

SecurityRoleMapper getRoleMapper(String appName)
Returns a RoleMapper corresponding to the AppName.

Parameters:
The - Application Name of this RoleMapper.

removeRoleMapper

void removeRoleMapper(String appName)
remove the RoleMapping associated with this application

Parameters:
the - application name for this RoleMapper

setRoleMapper

void setRoleMapper(String appName,
                   SecurityRoleMapper rmap)
Sets a new RoleMapper for a particular Application

Parameters:
the - application name
the - new role mapper

getAppNameForContext

String getAppNameForContext(String contextId)
Returns the appname for this particular context id. Used in context of a web application


setAppNameForContext

void setAppNameForContext(String appName,
                          String contextId)
stores the appname for this particular context id. Used in the context of a web application


removeAppNameForContext

void removeAppNameForContext(String contextId)
removes the link between contextId and the appname



Copyright © 2012. All Rights Reserved.