Package org.bremersee.common.model
Class AccessControlEntry
- java.lang.Object
-
- org.bremersee.common.model.AccessControlEntry
-
- All Implemented Interfaces:
Serializable
@Validated public class AccessControlEntry extends Object implements Serializable
Specifies a permission and who is granted.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getGroups()
Specifies the granted groups.Boolean
getGuest()
Specifies whether anybody is granted.@NotNull @Pattern(regexp="^[a-z_]+$") String
getPermission()
Specifies the permission.List<String>
getRoles()
Specifies the granted roles.List<String>
getUsers()
Specifies the granted users.void
setGroups(List<String> groups)
Sets groups.void
setGuest(Boolean guest)
Sets guest.void
setPermission(String permission)
Sets permission.void
setRoles(List<String> roles)
Sets roles.void
setUsers(List<String> users)
Sets users.
-
-
-
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 boolean
-
setGuest
public void setGuest(Boolean guest)
Sets guest.- Parameters:
guest
- the guest
-
-