Class AbstractStartForbiddenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.web.api.exception.AbstractStartForbiddenException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StartApplicationForbiddenException, StartShortcutForbiddenException

public abstract class AbstractStartForbiddenException extends com.aquima.interactions.foundation.exception.AppException
Base class for exceptions thrown when an authenticated user is attempting to start a project but does not have the required roles to do so. This is different from UnauthorizedException, which should be thrown when an unauthenticated user is attempting to start a project which requires login first.
Since:
11.7
Author:
Petru Galanton
See Also:
  • Constructor Details Link icon

    • AbstractStartForbiddenException Link icon

      public AbstractStartForbiddenException(String message)
  • Method Details Link icon

    • isSsoEnabled Link icon

      public boolean isSsoEnabled()
      Indicates whether single sign-on is enabled. When SSO is enabled, the exception handling may include logging out from the identity provider before attempting to log in again with a different user.
      Returns:
      true if signle sign-on is enabled, false otherwise.
    • setSsoEnabled Link icon

      public void setSsoEnabled(boolean ssoEnabled)
      Sets whether single sign-on is enabled.
      Parameters:
      ssoEnabled - true if single sign-on is enabled.
    • getSsoLogoutUrl Link icon

      public String getSsoLogoutUrl()
      Returns the URL where the user can log out from the identity provider, if available. Note that having single sign-on enabled does not imply that a SSO logout URL is available.

      When this method returns a value, the exception handling may include providing a link to this URL to the user. The user may want to log out from the identity provider and log in with a different account before attempting to restart the project.

      Returns:
      the identity provider's logout URL if available, null otherwise.
    • setSsoLogoutUrl Link icon

      public void setSsoLogoutUrl(String ssoLogoutUrl)
      Sets the identity provider's logout URL, if available.
      Parameters:
      ssoLogoutUrl - the logout URL