Interface SynchronizationService
- All Known Implementing Classes:
CMSSynchronizationService,SynchronizationServiceImpl
public interface SynchronizationService
Contains all necessary method declarations responsible for synchronization activity
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionRetrieves all matching synchronization rules (at first position - all accessible, at second position - all forbidden)Retrieves source catalog version for given itemintgetPullSyncStatus(TypedObject product) getSyncContext(TypedObject product) getSyncContext(TypedObject product, boolean pullSync) getSynchronizationStatuses(List<SyncItemJobModel> synchRules, TypedObject item) Retrieves synchronization statuses for given itemgetSyncJobs(ItemModel sourceCatalogVersion, ObjectType objectType) Methods retrieves all matching catalog version (at first position - all accessible, at second position - all forbidden)getSyncSources(TypedObject object) Gets the all sync source objects.getSyncSourcesAndTargets(TypedObject object) getSyncTargets(TypedObject object) Gets the all sync targets.getTargetCatalogVersions(TypedObject particularProduct) Methods retrieves all matching catalog version (at first position - all accessible, at second position - all forbidden)booleanhasMultipleRules(Collection items) Check whether some of passed items has ambigous synchronization ruleintisObjectSynchronized(TypedObject object) Checks whether particular item needs synchronizationbooleanChecks whether particular product version was synchronized at least oncevoidperformCatalogVersionSynchronization(Collection<CatalogVersionModel> data, List<String> syncRulePkList, CatalogVersionModel targetCatalogVersion, String qualifier) Perform catalog version synchronizationvoidperformPullSynchronization(List<TypedObject> targetItems) performSynchronization(Collection<? extends Object> items, List<String> syncJobPk, CatalogVersionModel targetCatalogVersion, String qualifier) Method that runs particular synchronization
-
Field Details
-
SYNCHRONIZATION_OK
static final int SYNCHRONIZATION_OK- See Also:
-
SYNCHRONIZATION_NOT_AVAILABLE
static final int SYNCHRONIZATION_NOT_AVAILABLE- See Also:
-
SYNCHRONIZATION_NOT_OK
static final int SYNCHRONIZATION_NOT_OK- See Also:
-
INITIAL_SYNC_IS_NEEDED
static final int INITIAL_SYNC_IS_NEEDED- See Also:
-
-
Method Details
-
performSynchronization
Collection<TypedObject> performSynchronization(Collection<? extends Object> items, List<String> syncJobPk, CatalogVersionModel targetCatalogVersion, String qualifier) Method that runs particular synchronization- Parameters:
items- - products passed for synchronizations- Returns:
- the collection of typed objects which were affected by the sync, i.e. which may need to be updated
-
performPullSynchronization
-
isObjectSynchronized
Checks whether particular item needs synchronization -
getPullSyncStatus
-
getTargetCatalogVersions
Methods retrieves all matching catalog version (at first position - all accessible, at second position - all forbidden) -
getCatalogVersionForItem
Retrieves source catalog version for given item- Parameters:
item- - passed item
-
getAllSynchronizationRules
Retrieves all matching synchronization rules (at first position - all accessible, at second position - all forbidden) -
hasMultipleRules
Check whether some of passed items has ambigous synchronization rule- Parameters:
items- - passed items
-
getSynchronizationStatuses
Retrieves synchronization statuses for given item- Parameters:
synchRules- - accessible synch rulesitem- - current checked object- Returns:
- list of primary keys
-
performCatalogVersionSynchronization
void performCatalogVersionSynchronization(Collection<CatalogVersionModel> data, List<String> syncRulePkList, CatalogVersionModel targetCatalogVersion, String qualifier) Perform catalog version synchronization -
isVersionSynchronizedAtLeastOnce
Checks whether particular product version was synchronized at least once -
getSyncJobs
Methods retrieves all matching catalog version (at first position - all accessible, at second position - all forbidden) -
getSyncSources
Gets the all sync source objects.- Parameters:
object- the object- Returns:
- the sync sources
-
getSyncTargets
Gets the all sync targets.- Parameters:
object- the object- Returns:
- the sync targets
-
getSyncSourcesAndTargets
-
getSyncContext
-
getSyncContext
-