Package org.cyclos.impl.access
Interface PermissionCheck
-
- All Known Subinterfaces:
UserPermissionCheck
- All Known Implementing Classes:
BasePermissionCheckImpl,GeneralPermissionCheckImpl,UserPermissionCheckImpl
public interface PermissionCheckContext used to check a permission together with it's context (related user / checked values)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck()Ifgranted()returns false, throwsPermissionDeniedException.booleangranted()Returns whether the logged user has permission for this checkPermissionCheckvalue(Object value)Determines the value to be checked if the corresponding permission requires value checksPermissionCheckvalues(Collection<?> values)Determines the values to be checked if the corresponding permission requires value checks
-
-
-
Method Detail
-
check
void check() throws PermissionDeniedExceptionIfgranted()returns false, throwsPermissionDeniedException. Otherwise, returns silently.- Throws:
PermissionDeniedException
-
granted
boolean granted()
Returns whether the logged user has permission for this check
-
value
PermissionCheck value(Object value)
Determines the value to be checked if the corresponding permission requires value checks
-
values
PermissionCheck values(Collection<?> values)
Determines the values to be checked if the corresponding permission requires value checks
-
-