Package org.molgenis.security.core
Interface UserPermissionEvaluator
-
public interface UserPermissionEvaluatorEvaluates permissions for the currently authenticated user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Permission>getPermissions(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission[] permissions)booleanhasPermission(org.springframework.security.acls.model.ObjectIdentity objectIdentity, List<Permission> permissions)Returns whether the currently authenticated user has a givenPermissionon the given domain object.booleanhasPermission(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission permission)Returns whether the currently authenticated user has a givenPermissionon the given domain object.
-
-
-
Method Detail
-
hasPermission
boolean hasPermission(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission permission)Returns whether the currently authenticated user has a givenPermissionon the given domain object.- Parameters:
objectIdentity- domain object identitypermission- thePermissionto check.- Returns:
- true if the permission is granted, false otherwise
-
hasPermission
boolean hasPermission(org.springframework.security.acls.model.ObjectIdentity objectIdentity, List<Permission> permissions)Returns whether the currently authenticated user has a givenPermissionon the given domain object.- Parameters:
objectIdentity- domain object identitypermissions- List ofPermissionto check.- Returns:
- true if all the permissions are granted, false otherwise
-
getPermissions
Set<Permission> getPermissions(org.springframework.security.acls.model.ObjectIdentity objectIdentity, Permission[] permissions)
-
-