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

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

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

    Modifier and Type
    Method
    Description
    protected com.aquima.interactions.portal.IPortalSession
    createSession(com.aquima.interactions.portal.IApplication application)
     
    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)
     
    handleWebserviceCallException(Exception exception, com.aquima.interactions.portal.IPortalSession session)
     
    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

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

    • authorizationManager

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

    • AbstractEndpoint

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

    • handleWebserviceCallException

      protected WebServiceCallException handleWebserviceCallException(Exception exception, com.aquima.interactions.portal.IPortalSession session)
    • startFlow

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

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

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

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

      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

      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

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