Class AddWorkflowAttachmentAction
java.lang.Object
com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
com.hybris.backoffice.widgets.actions.workflow.AddWorkflowAttachmentAction
- All Implemented Interfaces:
com.hybris.cockpitng.actions.CockpitAction<WorkflowModel,,Object> com.hybris.cockpitng.engine.ComponentWidgetAdapterAware
public class AddWorkflowAttachmentAction
extends com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
implements com.hybris.cockpitng.actions.CockpitAction<WorkflowModel,Object>
Action which allows to add attachments to the workflow.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanPerform(com.hybris.cockpitng.actions.ActionContext<WorkflowModel> ctx) protected com.hybris.cockpitng.data.TypeAwareSelectionContext<ItemModel>createSearchContext(WorkflowModel workflow, String attachmentType) protected com.hybris.cockpitng.core.events.CockpitEventQueuegetItemsFromAttachments(WorkflowModel workflow) protected StringgetLevelSourceSuffix(com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) getNotAttachedItems(WorkflowModel workflow, List<ItemModel> toBeAttached) protected com.hybris.backoffice.widgets.notificationarea.NotificationServiceprotected voidnotifyAttachmentsOperation(Collection<ItemModel> duplicates, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) protected voidnotifyMultiple(Collection<ItemModel> existed, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) protected voidnotifySingle(ItemModel existed, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) voidonChosenAttachments(WorkflowModel workflow, List<ItemModel> attachments) com.hybris.cockpitng.actions.ActionResult<Object>perform(com.hybris.cockpitng.actions.ActionContext<WorkflowModel> actionContext) voidsetCockpitEventQueue(com.hybris.cockpitng.core.events.CockpitEventQueue cockpitEventQueue) voidsetNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService) voidsetWorkflowFacade(WorkflowFacade workflowFacade) Methods inherited from class com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, initializeDefaultEventListeners, registerStubInstance, sendOutput, setComponentID, unregisterStubInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.actions.CockpitAction
getConfirmationMessage, needsConfirmation
-
Field Details
-
PARAM_ATTACHMENT_TYPE
- See Also:
-
APPEND_NOTIFICATION_KEY
- See Also:
-
NOTIFICATION_KEY_WARNING_SUFFIX
- See Also:
-
NOTIFICATION_KEY_SINGLE_SUFFIX
- See Also:
-
NOTIFICATION_KEY_SUCCESS_SUFFIX
- See Also:
-
NOTIFICATION_KEY_MULTIPLE_SUFFIX
- See Also:
-
SOCKET_OUT_REFERENCE_SEARCH_CTX
- See Also:
-
SOCKET_OUT_UPDATED_WORKFLOW
- See Also:
-
SOCKET_IN_CHOSEN_ATTACHMENTS
- See Also:
-
-
Constructor Details
-
AddWorkflowAttachmentAction
public AddWorkflowAttachmentAction()
-
-
Method Details
-
perform
public com.hybris.cockpitng.actions.ActionResult<Object> perform(com.hybris.cockpitng.actions.ActionContext<WorkflowModel> actionContext) - Specified by:
performin interfacecom.hybris.cockpitng.actions.CockpitAction<WorkflowModel,Object>
-
createSearchContext
protected com.hybris.cockpitng.data.TypeAwareSelectionContext<ItemModel> createSearchContext(WorkflowModel workflow, String attachmentType) -
onChosenAttachments
-
getNotAttachedItems
-
notifyAttachmentsOperation
protected void notifyAttachmentsOperation(Collection<ItemModel> duplicates, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) -
getItemsFromAttachments
-
notifySingle
protected void notifySingle(ItemModel existed, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) -
notifyMultiple
protected void notifyMultiple(Collection<ItemModel> existed, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) -
getLevelSourceSuffix
protected String getLevelSourceSuffix(com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level) -
canPerform
- Specified by:
canPerformin interfacecom.hybris.cockpitng.actions.CockpitAction<WorkflowModel,Object>
-
getWorkflowFacade
-
setWorkflowFacade
-
getCockpitEventQueue
protected com.hybris.cockpitng.core.events.CockpitEventQueue getCockpitEventQueue() -
setCockpitEventQueue
public void setCockpitEventQueue(com.hybris.cockpitng.core.events.CockpitEventQueue cockpitEventQueue) -
getNotificationService
protected com.hybris.backoffice.widgets.notificationarea.NotificationService getNotificationService() -
setNotificationService
public void setNotificationService(com.hybris.backoffice.widgets.notificationarea.NotificationService notificationService)
-