@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 SecurityRoleMapperFactory
The
- Application Name of this RoleMapper.public String getAppNameForContext(String contextId)
SecurityRoleMapperFactory
getAppNameForContext
in interface SecurityRoleMapperFactory
public void setAppNameForContext(String appName, String contextId)
SecurityRoleMapperFactory
setAppNameForContext
in interface SecurityRoleMapperFactory
public void removeAppNameForContext(String contextId)
SecurityRoleMapperFactory
removeAppNameForContext
in interface SecurityRoleMapperFactory
public RoleMapper getRoleMapper(String appName, SecurityRoleMapperFactory fact)
appName
- Application Name of this RoleMapper.public void setRoleMapper(String appName, SecurityRoleMapper securityRoleMapper)
setRoleMapper
in interface SecurityRoleMapperFactory
appName
- Application or module namesecurityRoleMapper
- SecurityRoleMapper for the application or the modulepublic void removeRoleMapper(String appName)
SecurityRoleMapperFactory
removeRoleMapper
in interface SecurityRoleMapperFactory
appName
- Application/module name.Copyright © 2020. All rights reserved.