Package de.valtech.aecu.core.security
Class AccessValidationService
- java.lang.Object
-
- de.valtech.aecu.core.security.AccessValidationService
-
public class AccessValidationService extends Object
Service to check if an action is allowed.- Author:
- Roland Gruber
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringADMINISTRATORS
-
Constructor Summary
Constructors Constructor Description AccessValidationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(AccessValidationServiceConfiguration config)booleancanExecute(org.apache.sling.api.SlingHttpServletRequest request)Checks if the user is allowed to execute scripts.booleancanReadHistory(org.apache.sling.api.SlingHttpServletRequest request)Checks if the current user is allowed to read the AECU history.
-
-
-
Field Detail
-
ADMINISTRATORS
protected static final String ADMINISTRATORS
- See Also:
- Constant Field Values
-
-
Method Detail
-
activate
public void activate(AccessValidationServiceConfiguration config)
-
canReadHistory
public boolean canReadHistory(org.apache.sling.api.SlingHttpServletRequest request)
Checks if the current user is allowed to read the AECU history.- Parameters:
request- request- Returns:
- read allowed
-
canExecute
public boolean canExecute(org.apache.sling.api.SlingHttpServletRequest request)
Checks if the user is allowed to execute scripts.- Parameters:
request- request- Returns:
- execute allowed
-
-