Package com.almis.awe.service
Class ActionService
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.ActionService
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Manage application action calls
-
Constructor Summary
ConstructorDescriptionActionService
(LauncherService launcherService, BaseConfigProperties baseConfigProperties) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionLaunch action (without target)Retrieve the exception variableslaunchAction
(Action action) Launch action (without target)launchAction
(String actionId) Launch the actionlaunchDefaultError
(AWException exception) Launch default error actionlaunchError
(Action action, AWException exception) Launch an error (action failed)launchError
(String actionId, AWException exception) Launch an error (action failed)Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
ActionService
Autowired constructor- Parameters:
launcherService
- Launcher servicebaseConfigProperties
- Base configuration properties
-
-
Method Details
-
getAction
Launch action (without target)- Parameters:
actionId
- Action identifier- Returns:
- Action
- Throws:
AWException
- Action has not been found
-
launchAction
Launch the action- Parameters:
actionId
- Action identifier- Returns:
- Client action list
-
launchAction
Launch action (without target)- Parameters:
action
- Action to be launched- Returns:
- Client action list
- Throws:
AWException
- Action error
-
launchError
Launch an error (action failed)- Parameters:
actionId
- Action launchedexception
- Exception with the error- Returns:
- Client action list
-
launchError
Launch an error (action failed)- Parameters:
action
- Action launchedexception
- Exception with the error- Returns:
- Client action list
-
launchDefaultError
Launch default error action- Parameters:
exception
- Exception with the error description- Returns:
- Client action list
-
getExceptionVariables
Retrieve the exception variables- Parameters:
exc
- Exception- Returns:
- variableMap
-