Class AbstractEndpoint

java.lang.Object
com.aquima.web.aaas.AbstractEndpoint
Direct Known Subclasses:
AAASEndpoint, RestController

public abstract class AbstractEndpoint extends Object
Base class for the SOAP and REST endpoint implementations.
Since:
9.0
Author:
Jon van Leuven
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected final com.blueriq.component.api.security.IAuthorisationManager
     
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractEndpoint(com.aquima.interactions.portal.IPortalEngine engine, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected com.aquima.interactions.portal.IPortalSession
    createSession(com.aquima.interactions.portal.IApplication application)
     
    protected com.aquima.web.aaas.exception.WebServiceCallException
    createWebserviceCallException(Exception exception, com.aquima.interactions.portal.IPortalSession session)
     
    protected com.aquima.interactions.portal.IApplication
    getApplication(com.aquima.interactions.foundation.ApplicationID appId)
     
    protected com.aquima.interactions.portal.model.ISolution
    getSolution(com.aquima.interactions.foundation.ApplicationID appId)
     
    protected boolean
    isAllowed(Set<String> userRoles, Set<String> requiredRoles)
     
    protected void
    startFlow(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session)
     
    protected void
    validateRoles(List<com.aquima.interactions.project.IRole> requiredRoles)
    Checks if the currently logged-in user has at least ONE of the specified roles
    protected void
    validateRoles(Set<String> requiredRoles)
    Checks if the currently logged in user has at least ONE of the specified roles

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • authorizationManager Link icon

      protected final com.blueriq.component.api.security.IAuthorisationManager authorizationManager
  • Constructor Details Link icon

    • AbstractEndpoint Link icon

      protected AbstractEndpoint(com.aquima.interactions.portal.IPortalEngine engine, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager)
  • Method Details Link icon

    • createWebserviceCallException Link icon

      protected com.aquima.web.aaas.exception.WebServiceCallException createWebserviceCallException(Exception exception, com.aquima.interactions.portal.IPortalSession session)
    • startFlow Link icon

      protected void startFlow(com.aquima.interactions.portal.IApplication application, com.aquima.interactions.portal.IWebServiceOperationDefinition operation, com.aquima.interactions.portal.IPortalSession session)
    • createSession Link icon

      protected com.aquima.interactions.portal.IPortalSession createSession(com.aquima.interactions.portal.IApplication application)
    • getApplication Link icon

      protected com.aquima.interactions.portal.IApplication getApplication(com.aquima.interactions.foundation.ApplicationID appId)
    • getSolution Link icon

      protected com.aquima.interactions.portal.model.ISolution getSolution(com.aquima.interactions.foundation.ApplicationID appId)
    • validateRoles Link icon

      protected void validateRoles(List<com.aquima.interactions.project.IRole> requiredRoles)
      Checks if the currently logged-in user has at least ONE of the specified roles
      Parameters:
      requiredRoles - list of roles that is required
      Throws:
      org.springframework.security.access.AccessDeniedException - - if the user has no role from the requiredRole list
    • validateRoles Link icon

      protected void validateRoles(Set<String> requiredRoles)
      Checks if the currently logged in user has at least ONE of the specified roles
      Parameters:
      requiredRoles - list of roles that is required
      Throws:
      org.springframework.security.access.AccessDeniedException - - if the user has no role from the requiredRole list
    • isAllowed Link icon

      protected boolean isAllowed(Set<String> userRoles, Set<String> requiredRoles)