@Service @Singleton public class RoleMapperFactory extends Object implements SecurityRoleMapperFactory
| Constructor and Description |
|---|
RoleMapperFactory()
Creates a new instance of RoleMapperFactory
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAppNameForContext(String contextId)
Sets a new RoleMapper for a particular Application
|
SecurityRoleMapper |
getRoleMapper(String appName)
Returns a RoleMapper corresponding to the AppName.
|
RoleMapper |
getRoleMapper(String appName,
SecurityRoleMapperFactory fact)
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)
Set a RoleMapper for the application
|
public RoleMapperFactory()
public SecurityRoleMapper getRoleMapper(String appName)
getRoleMapper in interface SecurityRoleMapperFactoryThe - Application Name of this RoleMapper.public String getAppNameForContext(String contextId)
getAppNameForContext in interface SecurityRoleMapperFactorythe - application namethe - new role mapper
public void setRoleMapper(String appName, SecurityRoleMapper rmap) {
RoleMapper.setRoleMapper(appName, rmap);
}public void setAppNameForContext(String appName, String contextId)
SecurityRoleMapperFactorysetAppNameForContext in interface SecurityRoleMapperFactorypublic void removeAppNameForContext(String contextId)
SecurityRoleMapperFactoryremoveAppNameForContext in interface SecurityRoleMapperFactorypublic RoleMapper getRoleMapper(String appName, SecurityRoleMapperFactory fact)
appName - Application Name of this RoleMapper.public void setRoleMapper(String appName, SecurityRoleMapper rmap)
setRoleMapper in interface SecurityRoleMapperFactoryappName - Application or module namermap - SecurityRoleMapper for the application or the modulepublic void removeRoleMapper(String appName)
SecurityRoleMapperFactoryremoveRoleMapper in interface SecurityRoleMapperFactoryappName - Application/module name.Copyright © 2017. All rights reserved.