Package org.bremersee.common.model
Class AccessControlEntryModifications
- java.lang.Object
-
- org.bremersee.common.model.AccessControlEntryModifications
-
- All Implemented Interfaces:
Serializable
@Validated public class AccessControlEntryModifications extends Object implements Serializable
Specifies modifications of an access control entry.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessControlEntryModifications(String permission, Boolean guest, List<String> addUsers, List<String> removeUsers, List<String> addRoles, List<String> removeRoles, List<String> addGroups, List<String> removeGroups)
Instantiates new access control entry modifications.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAddGroups()
Groups to be added.List<String>
getAddRoles()
Roles to be added.List<String>
getAddUsers()
Users to be added.Boolean
getGuest()
Specifies whether anybody is granted.@NotNull @Pattern(regexp="^[a-z_]+$") String
getPermission()
Specifies the permission.List<String>
getRemoveGroups()
Groups to be removed.List<String>
getRemoveRoles()
Roles to be removed.List<String>
getRemoveUsers()
Users to be removed.void
setAddGroups(List<String> addGroups)
Sets add groups.void
setAddRoles(List<String> addRoles)
Sets add roles.void
setAddUsers(List<String> addUsers)
Sets add users.void
setGuest(Boolean guest)
Sets guest.void
setPermission(String permission)
Sets permission.void
setRemoveGroups(List<String> removeGroups)
Sets remove groups.void
setRemoveRoles(List<String> removeRoles)
Sets remove roles.void
setRemoveUsers(List<String> removeUsers)
Sets remove users.
-
-
-
Constructor Detail
-
AccessControlEntryModifications
public AccessControlEntryModifications(String permission, Boolean guest, List<String> addUsers, List<String> removeUsers, List<String> addRoles, List<String> removeRoles, List<String> addGroups, List<String> removeGroups)
Instantiates new access control entry modifications.- Parameters:
permission
- the permissionguest
- the guestaddUsers
- the add usersremoveUsers
- the remove usersaddRoles
- the add rolesremoveRoles
- the remove rolesaddGroups
- the add groupsremoveGroups
- the remove groups
-
-
Method Detail
-
getPermission
@NotNull @Pattern(regexp="^[a-z_]+$") public @NotNull @Pattern(regexp="^[a-z_]+$") String getPermission()
Specifies the permission.- Returns:
- permission permission
-
setPermission
public void setPermission(String permission)
Sets permission.- Parameters:
permission
- the permission
-
getGuest
public Boolean getGuest()
Specifies whether anybody is granted.- Returns:
- guest guest
-
setGuest
public void setGuest(Boolean guest)
Sets guest.- Parameters:
guest
- the guest
-
setAddUsers
public void setAddUsers(List<String> addUsers)
Sets add users.- Parameters:
addUsers
- the add users
-
getRemoveUsers
public List<String> getRemoveUsers()
Users to be removed.- Returns:
- removeUsers remove users
-
setRemoveUsers
public void setRemoveUsers(List<String> removeUsers)
Sets remove users.- Parameters:
removeUsers
- the remove users
-
setAddRoles
public void setAddRoles(List<String> addRoles)
Sets add roles.- Parameters:
addRoles
- the add roles
-
getRemoveRoles
public List<String> getRemoveRoles()
Roles to be removed.- Returns:
- removeRoles remove roles
-
setRemoveRoles
public void setRemoveRoles(List<String> removeRoles)
Sets remove roles.- Parameters:
removeRoles
- the remove roles
-
setAddGroups
public void setAddGroups(List<String> addGroups)
Sets add groups.- Parameters:
addGroups
- the add groups
-
getRemoveGroups
public List<String> getRemoveGroups()
Groups to be removed.- Returns:
- removeGroups remove groups
-
-