public abstract class AbstractSynchronizationAction extends AbstractListViewAction
ListViewAction.Context| Modifier and Type | Field and Description |
|---|---|
protected static String |
CURRENT_STATUS_KEY |
protected static String |
SOURCE_CATALOG_VERSION_KEY |
protected static String |
SOURCE_ITEMS_KEY |
protected static String |
SYNC_JOBS_KEY |
protected SynchronizationService |
syncService |
protected TypeService |
typeService |
alwaysEnabled, IN_EDITOR_AREA_SECTION_PANELAFFECTED_ITEMS_KEY| Constructor and Description |
|---|
AbstractSynchronizationAction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsBaseProduct(Collection<TypedObject> updatedObjects)
Method checks whether passed collection contains at least one object which is baseProduct (has variants)
|
protected abstract void |
doCreateContext(ListViewAction.Context context) |
Menupopup |
getContextPopup(ListViewAction.Context context)
Gets the context popup of the action button.
|
protected int |
getCurrentStatus(ListViewAction.Context context) |
String |
getImageURI(ListViewAction.Context context)
Gets the image URI which represents the action button.
|
Menupopup |
getPopup(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.
|
String |
getStatusCode(ListViewAction.Context context)
Get a status code for this action.
|
protected String |
getSyncBusyImg() |
protected SynchronizationService |
getSynchronizationService() |
protected abstract String |
getSyncInitImg() |
protected List<SyncItemJobModel>[] |
getSyncJobs(ListViewAction.Context context) |
protected abstract String |
getSyncNotOKImg() |
protected abstract String |
getSyncOKImg() |
String |
getTooltip(ListViewAction.Context context)
Gets the tooltip of the action button.
|
protected String |
getTypeRestriction() |
protected TypeService |
getTypeService() |
protected void |
sendItemChangeEvents(Collection<TypedObject> updatedObjects) |
createContext, createContext, getItem, getMultiSelectEventListener, getMultiSelectImageURI, getMultiSelectPopup, getSelectedItems, isAlwaysEnabled, sendEvent, sendUpdateItemsEvent, setAlwaysEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEventListenerprotected TypeService typeService
protected SynchronizationService syncService
protected static final String SYNC_JOBS_KEY
protected static final String SOURCE_CATALOG_VERSION_KEY
protected static final String CURRENT_STATUS_KEY
protected static final String SOURCE_ITEMS_KEY
protected abstract String getSyncOKImg()
protected abstract String getSyncNotOKImg()
protected abstract String getSyncInitImg()
protected String getSyncBusyImg()
protected String getTypeRestriction()
protected List<SyncItemJobModel>[] getSyncJobs(ListViewAction.Context context)
protected int getCurrentStatus(ListViewAction.Context context)
public String getImageURI(ListViewAction.Context context)
ListViewActionprotected abstract void doCreateContext(ListViewAction.Context context)
doCreateContext in class AbstractListViewActionpublic Menupopup getContextPopup(ListViewAction.Context context)
ListViewActionnull if no popup is
availableprotected SynchronizationService getSynchronizationService()
protected TypeService getTypeService()
protected Set<TypedObject> getPossiblyAffectedObjects(Collection<TypedObject> sourceObjects)
protected void sendItemChangeEvents(Collection<TypedObject> updatedObjects)
protected boolean containsBaseProduct(Collection<TypedObject> updatedObjects)
updatedObjects - collection of updated objectspublic String getTooltip(ListViewAction.Context context)
ListViewActionpublic Menupopup getPopup(ListViewAction.Context context)
ListViewActionnull if no popup is availablepublic String getStatusCode(ListViewAction.Context context)
ListViewActiongetStatusCode in interface ListViewActiongetStatusCode in class AbstractListViewActioncontext - the ContextCopyright © 2017 SAP SE. All Rights Reserved.