Interface Privilege
- All Known Subinterfaces:
Privilege.AlternativePrivilege,Privilege.CompositePrivilege,Privilege.IndividualPrivilege,Privilege.InheritablePrivilege,Privilege.NonInheritablePrivilege
public interface Privilege
Represents an individual or composite privilege.
Composite privileges consist of multiple individual privileges.
External representations, for example, when serialized as JSON, prefer composite privileges over individual ones. This means that if a privilege set contains all privileges included in a composite privilege, only the composite privilege is serialized. If multiple composite privileges match, all matching ones are serialized.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn "alternative privilege" represents a group of individual privileges.static interfaceA composite privilege represents a group of individual privileges.static interfacestatic interfaceInheritable privileges apply to the checked entity and its child entities, if applied to the entity's ACL or any of its parents' ACLs.static interfaceNon-inheritable privileges apply only to the checked entity if those are present in the entity's ACL. -
Method Summary
-
Method Details
-
name
String name() -
resolved
Set<Privilege.IndividualPrivilege> resolved() -
mustMatchAll
default boolean mustMatchAll()
-