Interface SecurityRoleMapperFactory

  • All Known Implementing Classes:
    RoleMapperFactory

    @Contract
    public interface SecurityRoleMapperFactory
    Author:
    dochez
    • 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 name
        the - 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