Package com.totvs.tjf.security.access
Class FeaturePermissionEvaluator
- java.lang.Object
-
- com.totvs.tjf.security.access.FeaturePermissionEvaluator
-
public class FeaturePermissionEvaluator extends Object
Strategy used in expression evaluation to determine whether a user has a permission for a given domain object.- Author:
- Marcos Paulo dos Santos
-
-
Constructor Summary
Constructors Constructor Description FeaturePermissionEvaluator(HasPermission hasPermission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPermission(org.springframework.security.core.Authentication authentication, Object permission)
Verify if user has a permission for a given domain object.
-
-
-
Constructor Detail
-
FeaturePermissionEvaluator
public FeaturePermissionEvaluator(HasPermission hasPermission)
-
-
Method Detail
-
hasPermission
public boolean hasPermission(org.springframework.security.core.Authentication authentication, Object permission)
Verify if user has a permission for a given domain object.- Parameters:
authentication
- represents the user in question. Should not be null.permission
- a representation of the permission object as supplied by the expression system. Not null.- Returns:
true
if the permission is granted in permissions URI,false
otherwise.
-
-