Class AccessValidationService


  • public class AccessValidationService
    extends Object
    Service to check if an action is allowed.
    Author:
    Roland Gruber
    • Constructor Detail

      • AccessValidationService

        public AccessValidationService()
    • Method Detail

      • 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