Package com.sun.enterprise.security.acl
Class RoleMapperFactory
- java.lang.Object
-
- com.sun.enterprise.security.acl.RoleMapperFactory
-
- All Implemented Interfaces:
SecurityRoleMapperFactory
@Service @Singleton public class RoleMapperFactory extends Object implements SecurityRoleMapperFactory
- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description RoleMapperFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppNameForContext(String contextId)Returns the appname for this particular context id.SecurityRoleMappergetRoleMapper(String appName)Returns a RoleMapper corresponding to the AppName.RoleMappergetRoleMapper(String appName, SecurityRoleMapperFactory fact)Returns a RoleMapper corresponding to the AppName.voidremoveAppNameForContext(String contextId)removes the link between contextId and the appnamevoidremoveRoleMapper(String appName)remove the RoleMapping associated with this applicationvoidsetAppNameForContext(String appName, String contextId)stores the appname for this particular context id.voidsetRoleMapper(String appName, SecurityRoleMapper securityRoleMapper)Set a RoleMapper for the application
-
-
-
Method Detail
-
getRoleMapper
public SecurityRoleMapper getRoleMapper(String appName)
Returns a RoleMapper corresponding to the AppName.- Specified by:
getRoleMapperin interfaceSecurityRoleMapperFactory- Parameters:
The- Application Name of this RoleMapper.
-
getAppNameForContext
public String getAppNameForContext(String contextId)
Description copied from interface:SecurityRoleMapperFactoryReturns the appname for this particular context id. Used in context of a web application- Specified by:
getAppNameForContextin interfaceSecurityRoleMapperFactory
-
setAppNameForContext
public void setAppNameForContext(String appName, String contextId)
Description copied from interface:SecurityRoleMapperFactorystores the appname for this particular context id. Used in the context of a web application- Specified by:
setAppNameForContextin interfaceSecurityRoleMapperFactory
-
removeAppNameForContext
public void removeAppNameForContext(String contextId)
Description copied from interface:SecurityRoleMapperFactoryremoves the link between contextId and the appname- Specified by:
removeAppNameForContextin interfaceSecurityRoleMapperFactory
-
getRoleMapper
public RoleMapper getRoleMapper(String appName, SecurityRoleMapperFactory fact)
Returns a RoleMapper corresponding to the AppName.- Parameters:
appName- Application Name of this RoleMapper.- Returns:
- SecurityRoleMapper for the application
-
setRoleMapper
public void setRoleMapper(String appName, SecurityRoleMapper securityRoleMapper)
Set a RoleMapper for the application- Specified by:
setRoleMapperin interfaceSecurityRoleMapperFactory- Parameters:
appName- Application or module namesecurityRoleMapper- SecurityRoleMapper for the application or the module
-
removeRoleMapper
public void removeRoleMapper(String appName)
Description copied from interface:SecurityRoleMapperFactoryremove the RoleMapping associated with this application- Specified by:
removeRoleMapperin interfaceSecurityRoleMapperFactory- Parameters:
appName- Application/module name.
-
-