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.String
EXCEPTION_KEY
protected com.hybris.backoffice.widgets.notificationarea.NotificationService
notificationService
protected static java.lang.String
OPERATION_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.String
getAlreadyRunning(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
abstract java.lang.String
getBusyMessage(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
protected <T> T
getContextValue(java.util.Map<java.lang.String,java.lang.Object> ctx, java.lang.String key)
protected DataHubServer
getSelectedDataHubServer(java.util.Map<java.lang.String,java.lang.Object> ctx)
abstract void
notifyWhenFinished(QuickUploadController controller, java.util.Map<java.lang.String,java.lang.Object> ctx)
void
process(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 DynamicRestClient
restClient()
Retrieves REST client used by the process.void
setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
abstract boolean
validate(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:
process
in 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)
-
-