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 Details

  • 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:
      perform in interface com.hybris.cockpitng.actions.CockpitAction<WorkflowModel,Object>
    • createSearchContext

      protected com.hybris.cockpitng.data.TypeAwareSelectionContext<ItemModel> createSearchContext(WorkflowModel workflow, String attachmentType)
    • onChosenAttachments

      public void onChosenAttachments(WorkflowModel workflow, List<ItemModel> attachments)
    • getNotAttachedItems

      protected List<ItemModel> getNotAttachedItems(WorkflowModel workflow, List<ItemModel> toBeAttached)
    • notifyAttachmentsOperation

      protected void notifyAttachmentsOperation(Collection<ItemModel> duplicates, com.hybris.backoffice.widgets.notificationarea.event.NotificationEvent.Level level)
    • getItemsFromAttachments

      protected List<ItemModel> getItemsFromAttachments(WorkflowModel workflow)
    • 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

      public boolean canPerform(com.hybris.cockpitng.actions.ActionContext<WorkflowModel> ctx)
      Specified by:
      canPerform in interface com.hybris.cockpitng.actions.CockpitAction<WorkflowModel,Object>
    • getWorkflowFacade

      public WorkflowFacade getWorkflowFacade()
    • setWorkflowFacade

      public void setWorkflowFacade(WorkflowFacade workflowFacade)
    • 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)