@Service @Singleton public class RoleMapperFactory extends Object implements SecurityRoleMapperFactory
| Constructor and Description |
|---|
RoleMapperFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppNameForContext(String contextId)
Returns the appname for this particular context id.
|
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 securityRoleMapper)
Set a RoleMapper for the application
|
public SecurityRoleMapper getRoleMapper(String appName)
getRoleMapper in interface SecurityRoleMapperFactoryThe - Application Name of this RoleMapper.public String getAppNameForContext(String contextId)
SecurityRoleMapperFactorygetAppNameForContext in interface SecurityRoleMapperFactorypublic 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 securityRoleMapper)
setRoleMapper in interface SecurityRoleMapperFactoryappName - Application or module namesecurityRoleMapper - SecurityRoleMapper for the application or the modulepublic void removeRoleMapper(String appName)
SecurityRoleMapperFactoryremoveRoleMapper in interface SecurityRoleMapperFactoryappName - Application/module name.Copyright © 2019. All rights reserved.