Interface PermissionFunction
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function that calculates the permission settings for a given
PermissionSubject
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final PermissionFunction
A permission function that always returnsTristate.FALSE
.static final PermissionFunction
A permission function that always returnsTristate.TRUE
.static final PermissionFunction
A permission function that always returnsTristate.UNDEFINED
. -
Method Summary
Modifier and TypeMethodDescriptiongetPermissionValue
(String permission) Gets the subjects setting for a particular permission.
-
Field Details
-
ALWAYS_TRUE
A permission function that always returnsTristate.TRUE
. -
ALWAYS_FALSE
A permission function that always returnsTristate.FALSE
. -
ALWAYS_UNDEFINED
A permission function that always returnsTristate.UNDEFINED
.
-
-
Method Details
-
getPermissionValue
Gets the subjects setting for a particular permission.- Parameters:
permission
- the permission- Returns:
- the value the permission is set to
-