Package org.bremersee.acl.model
Interface AccessControlEntryModifications
- All Superinterfaces:
Comparable<AccessControlEntryModifications>
- All Known Implementing Classes:
ImmutableAccessControlEntryModifications
@Immutable
public interface AccessControlEntryModifications
extends Comparable<AccessControlEntryModifications>
Specifies modifications of an access control entry.
- Author:
- Christian Bremer
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates new builder.default intfrom(AccessControlEntry ace) Creates new builder from the given access control entry.Groups to be added.Roles to be added.Users to be added.Specifies the permission.Groups to be removed.Roles to be removed.Users to be removed.default booleanisGuest()Specifies whether anybody is granted or not.
-
Method Details
-
builder
Creates new builder.- Returns:
- the access control entry modifications builder
-
from
Creates new builder from the given access control entry.- Parameters:
ace- the access control entry- Returns:
- the access control entry modifications 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)
-
getAddUsers
Users to be added.- Returns:
- the users to add
-
getRemoveUsers
Users to be removed.- Returns:
- the users to remove
-
getAddRoles
Roles to be added.- Returns:
- the roles to add
-
getRemoveRoles
Roles to be removed.- Returns:
- the roles to remove
-
getAddGroups
Groups to be added.- Returns:
- the groups to add
-
getRemoveGroups
Groups to be removed.- Returns:
- the groups to remove
-
compareTo
- Specified by:
compareToin interfaceComparable<AccessControlEntryModifications>
-