Class AbstractSynchronizationAction

java.lang.Object
de.hybris.platform.cockpit.components.listview.AbstractListViewAction
de.hybris.platform.cockpit.components.listview.impl.AbstractSynchronizationAction
All Implemented Interfaces:
AdvancedListViewAction, ListViewAction
Direct Known Subclasses:
CmsElementSyncAction, ProductSynchronizationStatus, PullSynchronizationAction

public abstract class AbstractSynchronizationAction extends AbstractListViewAction
  • Field Details

  • Constructor Details

    • AbstractSynchronizationAction

      public AbstractSynchronizationAction()
  • Method Details

    • getSyncOKImg

      protected abstract String getSyncOKImg()
    • getSyncNotOKImg

      protected abstract String getSyncNotOKImg()
    • getSyncInitImg

      protected abstract String getSyncInitImg()
    • getSyncBusyImg

      protected String getSyncBusyImg()
    • getTypeRestriction

      protected String getTypeRestriction()
    • getSyncJobs

      protected List<SyncItemJobModel>[] getSyncJobs(ListViewAction.Context context)
    • getCurrentStatus

      protected int getCurrentStatus(ListViewAction.Context context)
    • getImageURI

      public String getImageURI(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the image URI which represents the action button.
      Returns:
      URI of the image to represent the action button
    • doCreateContext

      protected abstract void doCreateContext(ListViewAction.Context context)
      Specified by:
      doCreateContext in class AbstractListViewAction
    • getContextPopup

      public org.zkoss.zul.Menupopup getContextPopup(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the context popup of the action button.
      Returns:
      the popup which should appear when the user right-clicks the action button or null if no popup is available
    • getSynchronizationService

      protected SynchronizationService getSynchronizationService()
    • getTypeService

      protected TypeService getTypeService()
    • getPossiblyAffectedObjects

      protected Set<TypedObject> getPossiblyAffectedObjects(Collection<TypedObject> sourceObjects)
      Gets all objects that could be affected by synchronization process.
    • sendItemChangeEvents

      protected void sendItemChangeEvents(Collection<TypedObject> updatedObjects)
    • containsBaseProduct

      protected boolean containsBaseProduct(Collection<TypedObject> updatedObjects)
      Method checks whether passed collection contains at least one object which is baseProduct (has variants)
      Parameters:
      updatedObjects - collection of updated objects
      Returns:
      true if at least one object is baseProduct
    • getTooltip

      public String getTooltip(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the tooltip of the action button.
      Returns:
      the tooltip string which should appear when the user hovers over the action button
    • getPopup

      public org.zkoss.zul.Menupopup getPopup(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Gets the popup of the action button.
      Returns:
      the popup which should appear when the user clicks the action button or null if no popup is available
    • getStatusCode

      public String getStatusCode(ListViewAction.Context context)
      Description copied from interface: ListViewAction
      Get a status code for this action. This is used e.g. by the id generator.
      Specified by:
      getStatusCode in interface ListViewAction
      Overrides:
      getStatusCode in class AbstractListViewAction
      Parameters:
      context - the Context
      Returns:
      a custom string defined by the instance of listviewaction