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
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
ListViewAction.Context -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected SynchronizationServiceprotected TypeServiceFields inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
alwaysEnabled, IN_EDITOR_AREA_SECTION_PANELFields inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
AFFECTED_ITEMS_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancontainsBaseProduct(Collection<TypedObject> updatedObjects) Method checks whether passed collection contains at least one object which is baseProduct (has variants)protected abstract voiddoCreateContext(ListViewAction.Context context) org.zkoss.zul.MenupopupgetContextPopup(ListViewAction.Context context) Gets the context popup of the action button.protected intgetCurrentStatus(ListViewAction.Context context) getImageURI(ListViewAction.Context context) Gets the image URI which represents the action button.org.zkoss.zul.MenupopupgetPopup(ListViewAction.Context context) Gets the popup of the action button.protected Set<TypedObject>getPossiblyAffectedObjects(Collection<TypedObject> sourceObjects) Gets all objects that could be affected by synchronization process.getStatusCode(ListViewAction.Context context) Get a status code for this action.protected Stringprotected SynchronizationServiceprotected abstract Stringprotected List<SyncItemJobModel>[]getSyncJobs(ListViewAction.Context context) protected abstract Stringprotected abstract StringgetTooltip(ListViewAction.Context context) Gets the tooltip of the action button.protected Stringprotected TypeServiceprotected voidsendItemChangeEvents(Collection<TypedObject> updatedObjects) Methods inherited from class de.hybris.platform.cockpit.components.listview.AbstractListViewAction
createContext, createContext, getItem, getMultiSelectEventListener, getMultiSelectImageURI, getMultiSelectPopup, getSelectedItems, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cockpit.components.listview.ListViewAction
getEventListener
-
Field Details
-
typeService
-
syncService
-
SYNC_JOBS_KEY
- See Also:
-
SOURCE_CATALOG_VERSION_KEY
- See Also:
-
CURRENT_STATUS_KEY
- See Also:
-
SOURCE_ITEMS_KEY
- See Also:
-
-
Constructor Details
-
AbstractSynchronizationAction
public AbstractSynchronizationAction()
-
-
Method Details
-
getSyncOKImg
-
getSyncNotOKImg
-
getSyncInitImg
-
getSyncBusyImg
-
getTypeRestriction
-
getSyncJobs
-
getCurrentStatus
-
getImageURI
Description copied from interface:ListViewActionGets the image URI which represents the action button.- Returns:
- URI of the image to represent the action button
-
doCreateContext
- Specified by:
doCreateContextin classAbstractListViewAction
-
getContextPopup
Description copied from interface:ListViewActionGets the context popup of the action button.- Returns:
- the popup which should appear when the user right-clicks the action button or
nullif no popup is available
-
getSynchronizationService
-
getTypeService
-
getPossiblyAffectedObjects
Gets all objects that could be affected by synchronization process. -
sendItemChangeEvents
-
containsBaseProduct
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
Description copied from interface:ListViewActionGets the tooltip of the action button.- Returns:
- the tooltip string which should appear when the user hovers over the action button
-
getPopup
Description copied from interface:ListViewActionGets the popup of the action button.- Returns:
- the popup which should appear when the user clicks the action button or
nullif no popup is available
-
getStatusCode
Description copied from interface:ListViewActionGet a status code for this action. This is used e.g. by the id generator.- Specified by:
getStatusCodein interfaceListViewAction- Overrides:
getStatusCodein classAbstractListViewAction- Parameters:
context- the Context- Returns:
- a custom string defined by the instance of listviewaction
-