Package org.bremersee.acl.model
Interface AccessControlEntry
- All Superinterfaces:
Comparable<AccessControlEntry>
- All Known Implementing Classes:
ImmutableAccessControlEntry
Specifies a permission and who is granted.
- Author:
- Christian Bremer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates new builder.default intdefault Collection<String> Specifies the granted groups.Specifies the permission.default Collection<String> getRoles()Specifies the granted roles.default Collection<String> getUsers()Specifies the granted users.default booleanisGuest()Specifies whether anybody is granted or not.
-
Field Details
-
PERMISSION
The constant PERMISSION.- See Also:
-
GUEST
The constant GUEST.- See Also:
-
USERS
The constant USERS.- See Also:
-
ROLES
The constant ROLES.- See Also:
-
GROUPS
The constant GROUPS.- See Also:
-
-
Method Details
-
builder
Creates new builder.- Returns:
- the access control entry builder
-
getPermission
String getPermission()Specifies the permission.- Returns:
- the permission
-
isGuest
@Default default boolean isGuest()Specifies whether anybody is granted or not.- Returns:
- whether anybody is granted (true) or not (false)
-
getUsers
Specifies the granted users.- Returns:
- the users
-
getRoles
Specifies the granted roles.- Returns:
- the roles
-
getGroups
Specifies the granted groups.- Returns:
- the groups
-
compareTo
- Specified by:
compareToin interfaceComparable<AccessControlEntry>
-