Package com.aquima.web.aaas
Class AbstractEndpoint
java.lang.Object
com.aquima.web.aaas.AbstractEndpoint
- Direct Known Subclasses:
AAASEndpoint
,RestController
Base class for the SOAP and REST endpoint implementations.
- Since:
- 9.0
- Author:
- Jon van Leuven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.blueriq.component.api.security.IAuthorisationManager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractEndpoint
(com.aquima.interactions.portal.IPortalEngine engine, BaasFlowStarter flowStarter, com.blueriq.component.api.security.IAuthorisationManager authorizationManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) protected WebServiceCallException
handleWebserviceCallException
(Exception exception, com.aquima.interactions.portal.IPortalSession session) protected boolean
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 rolesprotected void
validateRoles
(Set<String> requiredRoles) Checks if the currently logged in user has at least ONE of the specified roles
-
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
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
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
-