Interface PermissionManager

    • Field Detail

      • ROLE

        static final String ROLE
        Avalon role - used to id the component within the manager
    • Method Detail

      • getPermissionInstance

        <T extends Permission> T getPermissionInstance()
                                                throws DataBackendException
        Construct a blank Permission object. This method calls getPermissionClass, and then creates a new object using the default constructor.
        Type Parameters:
        T - permission type
        Returns:
        an object implementing Permission interface.
        Throws:
        DataBackendException - if there was an error accessing the data backend.
      • getPermissionInstance

        <T extends Permission> T getPermissionInstance​(String permName)
                                                throws DataBackendException
        Construct a blank Permission object. This method calls getPermissionClass, and then creates a new object using the default constructor.
        Type Parameters:
        T - permission type
        Parameters:
        permName - The name of the Permission
        Returns:
        an object implementing Permission interface.
        Throws:
        DataBackendException - if there was an error accessing the data backend.
      • getAllPermissions

        PermissionSet getAllPermissions()
                                 throws DataBackendException
        Retrieves all permissions defined in the system.
        Returns:
        the names of all permissions defined in the system.
        Throws:
        DataBackendException - if there was an error accessing the data backend.
      • checkExists

        boolean checkExists​(Permission permission)
                     throws DataBackendException
        Determines if the Permission exists in the security system.
        Parameters:
        permission - a Permission value
        Returns:
        true if the permission exists in the system, false otherwise
        Throws:
        DataBackendException - when more than one Permission with the same name exists.
      • checkExists

        boolean checkExists​(String permissionName)
                     throws DataBackendException
        Determines if a Permission exists in the security system with the specified name.
        Parameters:
        permissionName - the name of a Permission to check
        Returns:
        true if the permission exists in the system, false otherwise
        Throws:
        DataBackendException - when more than one Permission with the same name exists.