Class AbstractProcessingStrategy
- java.lang.Object
-
- de.hybris.platform.datahubbackoffice.presentation.widgets.quickupload.AbstractProcessingStrategy
-
- All Implemented Interfaces:
ProcessingStrategy
- Direct Known Subclasses:
ComposeProcessingStrategy,LoadProcessingStrategy,PublishProcessingStrategy
public abstract class AbstractProcessingStrategy extends java.lang.Object implements ProcessingStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEXCEPTION_KEYprotected com.hybris.backoffice.widgets.notificationarea.NotificationServicenotificationServiceprotected static java.lang.StringOPERATION_STATUS
-
Constructor Summary
Constructors Constructor Description AbstractProcessingStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringgetAlreadyRunning(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)abstract java.lang.StringgetBusyMessage(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)protected <T> TgetContextValue(java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.String key)protected DataHubServergetSelectedDataHubServer(java.util.Map<java.lang.String,java.lang.Object> ctx)abstract voidnotifyWhenFinished(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)voidprocess(QuickUploadController controller, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> ctx)abstract java.util.Map<java.lang.String,java.lang.Object>processInternal(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)protected abstract DynamicRestClientrestClient()Retrieves REST client used by the process.voidsetNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)abstract booleanvalidate(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.datahubbackoffice.presentation.widgets.quickupload.ProcessingStrategy
supports
-
-
-
-
Field Detail
-
OPERATION_STATUS
protected static final java.lang.String OPERATION_STATUS
- See Also:
- Constant Field Values
-
EXCEPTION_KEY
protected static final java.lang.String EXCEPTION_KEY
- See Also:
- Constant Field Values
-
notificationService
protected com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService
-
-
Method Detail
-
process
public void process(QuickUploadController controller, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> ctx)
- Specified by:
processin interfaceProcessingStrategy
-
setNotificationService
public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
-
getSelectedDataHubServer
protected DataHubServer getSelectedDataHubServer(java.util.Map<java.lang.String,java.lang.Object> ctx)
-
validate
public abstract boolean validate(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
processInternal
public abstract java.util.Map<java.lang.String,java.lang.Object> processInternal(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
getBusyMessage
public abstract java.lang.String getBusyMessage(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
getAlreadyRunning
public abstract java.lang.String getAlreadyRunning(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
restClient
protected abstract DynamicRestClient restClient()
Retrieves REST client used by the process. It must be dynamic.- Returns:
- REST client used by the concrete process implementation.
-
notifyWhenFinished
public abstract void notifyWhenFinished(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
-
getContextValue
protected <T> T getContextValue(java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.String key)
-
-