Package org.glassfish.deployment.common
Interface SecurityRoleMapperFactory
-
- All Known Implementing Classes:
RoleMapperFactory
@Contract public interface SecurityRoleMapperFactory
- Author:
- dochez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 appnamevoid
removeRoleMapper(String appName)
remove the RoleMapping associated with this applicationvoid
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 namethe
- 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
-
-