Interface RoleManager

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractRoleManager

public interface RoleManager
extends Serializable
A RoleManager performs Role objects related tasks on behalf of the BaseSecurityService. The responsibilities of this class include loading data of a role from the storage and putting them into the Role objects, saving those data to the permanent storage.
Version:
$Id: RoleManager.java 1884710 2020-12-22 16:16:40Z gk $
Author:
Eric Pugh
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static String ROLE
    Avalon role - used to id the component within the manager
  • Method Summary

    Modifier and Type Method Description
    <T extends Role>
    T
    addRole​(T role)
    Creates a new role with specified attributes.
    boolean checkExists​(String roleName)
    Determines if a Role exists in the security system with the specified role name.
    boolean checkExists​(Role role)
    Determines if the Role exists in the security system.
    RoleSet getAllRoles()
    Retrieves all roles defined in the system.
    <T extends Role>
    T
    getRoleById​(Object id)
    Retrieve a Role object with specified Id.
    <T extends Role>
    T
    getRoleByName​(String name)
    Retrieve a Role object with specified name.
    <T extends Role>
    T
    getRoleInstance()
    Construct a blank Role object This method calls getRoleClass, and then creates a new object using the default constructor.
    <T extends Role>
    T
    getRoleInstance​(String roleName)
    Construct a blank Role object.
    void removeRole​(Role role)
    Removes a Role from the system.
    void renameRole​(Role role, String name)
    Renames an existing Role.