public abstract class AbstractSyncDialog
extends Window
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AFTER_SYNC_EVENT |
protected static String |
NAME_ATTRIBUTE |
| Constructor and Description |
|---|
AbstractSyncDialog(CatalogVersionModel sourceCatalogVersion,
List<SyncItemJobModel>[] matrixRules) |
AbstractSyncDialog(Map<String,String>[] rules) |
AbstractSyncDialog(TypedObject sourceItem,
List<SyncItemJobModel>[] matrixRules) |
| Modifier and Type | Method and Description |
|---|---|
protected Listbox |
createAvailableRuleList(boolean twoTabs)
Creates a list that contains accessible rules
|
protected Listbox |
createForbiddenRuleList(Vbox parent)
Create a list that contains forbidden rules
|
abstract List<SyncRule> |
getAccessibleRulesListModel()
Returns all accessible synchronization rules
|
Listbox |
getAvailableCatalogVersions() |
abstract List<SyncRule> |
getForbidenRulesListModel()
Returns all forbidden rules - that rules which needs initial synchronization
|
CatalogVersionModel |
getSourceCatalogVersion() |
SynchronizationService |
getSynchronizationService() |
Map<String,String>[] |
getSyncRules() |
List<SyncItemJobModel>[] |
getTargetCatalogVersions() |
abstract void |
itemListRenderer(Listitem item,
Object data)
Responsible for rendering accessible rules
|
abstract void |
performAction()
Responsible for start synchronization logic for particular synchronization dialog
|
abstract void |
performReturn()
Responsible for cancel - done action from synchronization dialog
|
protected Hbox |
prepareCatalogVersionLabels(CatalogVersionModel catalogVersion,
SyncRule rule,
Listitem item)
Get appropriate catalog version name and wrap it
|
void |
updateBackground(List<String> chosenRules)
Responsible for update background view (either List View or Grid View and EditorArea) in order to keep cohesion
|
protected static final String AFTER_SYNC_EVENT
protected static final String NAME_ATTRIBUTE
public AbstractSyncDialog(TypedObject sourceItem, List<SyncItemJobModel>[] matrixRules)
sourceItem - matrixRules - public AbstractSyncDialog(CatalogVersionModel sourceCatalogVersion, List<SyncItemJobModel>[] matrixRules)
sourceCatalogVersion - matrixRules - public CatalogVersionModel getSourceCatalogVersion()
public List<SyncItemJobModel>[] getTargetCatalogVersions()
public Listbox getAvailableCatalogVersions()
public Map<String,String>[] getSyncRules()
protected Hbox prepareCatalogVersionLabels(CatalogVersionModel catalogVersion, SyncRule rule, Listitem item)
catalogVersion - - given catalog versionrule - item - protected Listbox createAvailableRuleList(boolean twoTabs)
twoTabs - - list mode (true - multiple selection otherwise single selection)protected Listbox createForbiddenRuleList(Vbox parent)
public SynchronizationService getSynchronizationService()
public abstract void performAction()
public void updateBackground(List<String> chosenRules)
chosenRules - public abstract void performReturn()
public abstract List<SyncRule> getAccessibleRulesListModel()
public abstract List<SyncRule> getForbidenRulesListModel()
public abstract void itemListRenderer(Listitem item,
Object data)
item - - particular item listdata - Copyright © 2017 SAP SE. All Rights Reserved.