Interface Privileges
public interface Privileges
Container holding all defined privileges.
Implementation is provided as an @ApplicationScoped bean.
-
Method Summary
Modifier and TypeMethodDescriptionall()Informative function, returns all known privileges.allIds()Informative function, the IDs provided all known privileges.allNames()Informative function, returns the names of all known privileges.byId(int id) Return the privilege for the given ID.Return the privilege for the given name (case-sensitive).collapseComposites(PrivilegeSet value) Returns the set of privilege from the given privilege set, replacing all individual privileges that fully match the composite privileges.intintidForPrivilege(Privilege privilege) startPrivilegeCheck(boolean anonymous, Set<String> roleIds)
-
Method Details
-
byId
Return the privilege for the given ID.- Throws:
IllegalArgumentException- if no privilege for the given ID exists.
-
byName
Return the privilege for the given name (case-sensitive).- Throws:
IllegalArgumentException- if no privilege for the given name exists.
-
idForName
-
idForPrivilege
-
nonInheritablePrivileges
PrivilegeSet nonInheritablePrivileges() -
collapseComposites
Returns the set of privilege from the given privilege set, replacing all individual privileges that fully match the composite privileges. If multiple composite privileges match, all of those will be returned. -
all
Collection<Privilege> all()Informative function, returns all known privileges. -
allIds
Informative function, the IDs provided all known privileges. -
allNames
Informative function, returns the names of all known privileges. -
newPrivilegesSetBuilder
PrivilegeSet.PrivilegeSetBuilder newPrivilegesSetBuilder() -
newAclBuilder
Acl.AclBuilder newAclBuilder() -
newAclEntryBuilder
AclEntry.AclEntryBuilder newAclEntryBuilder() -
startPrivilegeCheck
-