Class PlainActionExecutionStrategy
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.servicelayer.action.plain.PlainActionExecutionStrategy
-
- All Implemented Interfaces:
ActionExecutionStrategy,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class PlainActionExecutionStrategy extends AbstractBusinessService implements ActionExecutionStrategy, org.springframework.context.ApplicationContextAware
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description PlainActionExecutionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidcancelAction(TriggeredAction<T> preparedAction)java.util.Set<ActionType>getAcceptedTypes()org.springframework.context.ApplicationContextgetApplicationContext()protected ActionPerformablegetPerformable(java.lang.String target)voidisActionValid(ActionType type, java.lang.String target)<T> TriggeredAction<T>prepareAction(AbstractActionModel action, T argument)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)<T> voidtriggerAction(TriggeredAction<T> preparedAction)-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getAcceptedTypes
public java.util.Set<ActionType> getAcceptedTypes()
- Specified by:
getAcceptedTypesin interfaceActionExecutionStrategy
-
prepareAction
public <T> TriggeredAction<T> prepareAction(AbstractActionModel action, T argument) throws ActionException
- Specified by:
prepareActionin interfaceActionExecutionStrategy- Throws:
ActionException
-
triggerAction
public <T> void triggerAction(TriggeredAction<T> preparedAction) throws ActionException
- Specified by:
triggerActionin interfaceActionExecutionStrategy- Throws:
ActionException
-
cancelAction
public <T> void cancelAction(TriggeredAction<T> preparedAction) throws ActionException
- Specified by:
cancelActionin interfaceActionExecutionStrategy- Throws:
ActionException
-
getPerformable
protected ActionPerformable getPerformable(java.lang.String target)
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
isActionValid
public void isActionValid(ActionType type, java.lang.String target) throws InvalidActionException
- Specified by:
isActionValidin interfaceActionExecutionStrategy- Throws:
InvalidActionException
-
-