Interface IAuthorisationManager


  • public interface IAuthorisationManager
    Interface for authorisation.
    Since:
    8.0
    Author:
    Danny Roest
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ANONYMOUS_KEY
      The key which identifies an anonymous user.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clearAuthorisation()
      Clears the current authorisation, e.g no user is logged in.
      void createAnonymousUser()
      This methods creates an anonymous user if this is required for the current authorisation method.
      String getOnFlowAccessExceptionUrl()
      This methods returns the url the user should be directed to when the current user does not have the needed roles for the selected flow.
      com.aquima.interactions.project.IUserData getUserData()
      This method creates user data for the current user containing the roles of the current user.
    • Method Detail

      • getUserData

        com.aquima.interactions.project.IUserData getUserData()
        This method creates user data for the current user containing the roles of the current user. This method returns null, when the current user is not authenticated or authorized.
        Returns:
        the IUserdata (with the roles) for the current user, or null when the user is not authorized.
      • createAnonymousUser

        void createAnonymousUser()
        This methods creates an anonymous user if this is required for the current authorisation method.
      • clearAuthorisation

        void clearAuthorisation()
        Clears the current authorisation, e.g no user is logged in.
      • getOnFlowAccessExceptionUrl

        String getOnFlowAccessExceptionUrl()
        This methods returns the url the user should be directed to when the current user does not have the needed roles for the selected flow.
        Returns:
        the url of the page after a flow access exception