Class ApplicationPrivilegeManager

    • Field Detail

      • ACTION_READ

        public static final String ACTION_READ
      • ACTION_MODIFY

        public static final String ACTION_MODIFY
      • ACTION_DELEGATE

        public static final String ACTION_DELEGATE
    • Constructor Detail

      • ApplicationPrivilegeManager

        protected ApplicationPrivilegeManager()
    • Method Detail

      • removePrivilege

        public abstract void removePrivilege​(String name)
                                      throws EntitlementException
        Removes a privilege.
        Parameters:
        name - Name of privilege to remove
        Throws:
        EntitlementException - if privilege cannot be removed.
      • search

        public abstract Set<String> search​(Set<SearchFilter> filters)
        Returns a set of privilege names that the administrator can delegate.
        Parameters:
        filters - Set of search filters.
        Returns:
        Set of privilege names that the administrator can delegate.
      • getResources

        public abstract Set<String> getResources​(String applicationName,
                                                 ApplicationPrivilege.Action action)
        Returns a set of resources for an application and an action.
        Parameters:
        applicationName - Application name.
        action - Privilege action.
        Returns:
        set of resources for an application and an action.
      • getApplications

        public abstract Set<String> getApplications​(ApplicationPrivilege.Action action)
        Returns application names for a given action.
        Parameters:
        action - Privilege action.
        Returns:
        application names for a given action.
      • canCreateApplication

        public abstract boolean canCreateApplication​(String realm)
        Returns true if subject can create application.
        Parameters:
        realm - Realm where application is to be created.
      • getInstance

        public static ApplicationPrivilegeManager getInstance​(String realm,
                                                              Subject caller)
        Returns an instance of application privilege manager.
        Parameters:
        realm - Realm name.
        caller - Administrator subject.
        Returns:
        an instance of application privilege manager.