Package org.cyclos.impl.access
Interface UserPermissionCheck
-
- All Superinterfaces:
PermissionCheck
- All Known Implementing Classes:
UserPermissionCheckImpl
public interface UserPermissionCheck extends PermissionCheck
APermissionCheckbut related to users
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserPermissionCheckmy(Permission... myPermission)Informs the permission to be checked when the checked user is the logged user.UserPermissionCheckuser(Permission... userPermission)Informs the permission to be checked when the checked user is not the logged user.UserPermissionCheckvalue(Object value)Determines the value to be checked if the corresponding permission requires value checksUserPermissionCheckvalues(Collection<?> values)Determines the values to be checked if the corresponding permission requires value checks-
Methods inherited from interface org.cyclos.impl.access.PermissionCheck
check, granted
-
-
-
-
Method Detail
-
my
UserPermissionCheck my(Permission... myPermission)
Informs the permission to be checked when the checked user is the logged user. If empty permissions are given, grants if the logged user is the same as the base user, but not if logged in as restricted operator. If null permissions are given, never grants if the logged user is the same as the base user.
-
user
UserPermissionCheck user(Permission... userPermission)
Informs the permission to be checked when the checked user is not the logged user. If no permission is given, grants if the logged user manages the base user. If null permissions are given, never grants if the logged user manages the the base user.
-
value
UserPermissionCheck value(Object value)
Determines the value to be checked if the corresponding permission requires value checks- Specified by:
valuein interfacePermissionCheck
-
values
UserPermissionCheck values(Collection<?> values)
Determines the values to be checked if the corresponding permission requires value checks- Specified by:
valuesin interfacePermissionCheck
-
-