Package com.totvs.tjf.security.access
Class FeaturePermissionEvaluator
java.lang.Object
com.totvs.tjf.security.access.FeaturePermissionEvaluator
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(org.springframework.security.core.Authentication authentication, Object permission) Verify if user has a permission for a given domain object.
-
Constructor Details
-
FeaturePermissionEvaluator
-
-
Method Details
-
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:
trueif the permission is granted in permissions URI,falseotherwise.
-