Interface AuthorizationService

  • All Known Implementing Classes:
    AuthClassicConnectorService

    public interface AuthorizationService
    Service interface for authorization to specific models.
    Author:
    mak
    • Method Detail

      • autoLogon

        boolean autoLogon​(com.saperion.connector.authentication.SessionInfo sessionInfo)
                   throws AuthenticationException,
                          SystemException
        This function tries to automatic logon with SSO or NTLM, passing the web session information.
        Parameters:
        sessionInfo - The web session information
        Returns:
        true, if automatic logon could be used, false, if no automatic data is set!
        Throws:
        AuthenticationException - when authentication to the backend has failed
        SystemException - system exception when logging on
      • logoutHandledByLogonProvider

        boolean logoutHandledByLogonProvider()
        This method checks if a LogonProvider is responsible of handling actions to be done after the user was logged out. If a responsible provider is found, it's logout method will be called and this method will return true.
        Returns:
        true if logout was handled by a LogonProvier
      • getUserTypes

        java.util.List<UserType> getUserTypes()
        Get available user types.
        Returns:
        Usertypes
      • setLastUser

        void setLastUser​(java.lang.String lastUser)
        Sets the last user name.
        Parameters:
        lastUser - last user name
      • getLastUser

        java.lang.String getLastUser()
        Returns:
        last user name
      • setCurrentUserSubstituteAccessEnabled

        void setCurrentUserSubstituteAccessEnabled​(boolean accessEnabled)
                                            throws SystemException,
                                                   AuthenticationException
        Sets whether the current user's substitute has access to the users workflow-inbox.
        Parameters:
        accessEnabled - whether the substitute has access
        Throws:
        SystemException - when a system exception while setting presence occurs
        AuthenticationException - when authentication to the backend has failed
      • getCurrentUser

        User getCurrentUser()
                     throws AuthenticationException,
                            SystemException
        Returns:
        Information about the currently logged in User. The instance obtained will not contain information about the authorization (getAuthenticationInformation() will return null).
        Throws:
        AuthenticationException - when authentication to the backend has failed
        SystemException - when a system exception while obtaining the information occurs
      • changePassword

        User changePassword​(User user,
                            java.lang.String newPassword)
                     throws SystemException,
                            AuthenticationException
        Changes the password of the given user. The authentication information of the user needs to be given. This means that the password of the user has to be known.
        Parameters:
        user - The user to change the password for. If the authentication information is not given, the call will fail, since the current password is needed to succeed.
        newPassword - The new password for the user
        Returns:
        updated user information
        Throws:
        AuthenticationException - when authentication to the backend has failed
        SystemException - when a system exception while obtaining the information occurs