Class DefaultMerchSyncService
java.lang.Object
com.hybris.merchandising.service.impl.DefaultMerchSyncService
- All Implemented Interfaces:
MerchSyncService
Default implementation of
MerchSyncService-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteMerchSyncProcess(String operationId, Long numberOfProducts) Method complete synchronization process (e.g set proper end date and status)createMerchSychronization(MerchProductDirectoryConfigModel config, String operationId, String type) Creates merchandising synchronization modelcreateMerchSychronization(MerchSnConfigModel config, String operationId, String type) Creates merchandising synchronization modelprotected StringgetErrorMessage(String errorMessage, Exception exception) getMerchSynchronization(String operationId) Return merchandising synchronization with given operatio idprotected MerchSynchronizationDaoprotected ModelServiceprotected StringgetStringValue(String value, int length) protected TimeServicebooleanisMerchSyncFailed(String operationId) Method check if merchandising synchronization already failedvoidsaveErrorInfo(String operationId, String errorMessage, Exception exception) Save error information in synchronization process with given operation idvoidsetMerchSynchronizationDao(MerchSynchronizationDao merchSynchronizationDao) voidsetModelService(ModelService modelService) voidsetTimeService(TimeService timeService)
-
Field Details
-
MERCH_SYNC_SUCCESSFUL
- See Also:
-
-
Constructor Details
-
DefaultMerchSyncService
public DefaultMerchSyncService()
-
-
Method Details
-
createMerchSychronization
public MerchSynchronizationModel createMerchSychronization(MerchProductDirectoryConfigModel config, String operationId, String type) Description copied from interface:MerchSyncServiceCreates merchandising synchronization model- Specified by:
createMerchSychronizationin interfaceMerchSyncService- Parameters:
config- merchandising configuration for which synchronization is runningoperationId- operation identifiertype- type of synchronization (e.g FULL, UPDATE)- Returns:
- created synchronization model
-
createMerchSychronization
public MerchSynchronizationModel createMerchSychronization(MerchSnConfigModel config, String operationId, String type) Description copied from interface:MerchSyncServiceCreates merchandising synchronization model- Specified by:
createMerchSychronizationin interfaceMerchSyncService- Parameters:
config- merchandising configuration for which synchronization is runningoperationId- operation identifiertype- type of synchronization (e.g FULL, UPDATE)- Returns:
- created synchronization model
-
getMerchSynchronization
Description copied from interface:MerchSyncServiceReturn merchandising synchronization with given operatio id- Specified by:
getMerchSynchronizationin interfaceMerchSyncService- Parameters:
operationId- operation identifier- Returns:
- optional of merchandisig synchronization
-
isMerchSyncFailed
Description copied from interface:MerchSyncServiceMethod check if merchandising synchronization already failed- Specified by:
isMerchSyncFailedin interfaceMerchSyncService- Parameters:
operationId- operatio identifier- Returns:
- true if synchronization failed , false if synchronization not failed
-
completeMerchSyncProcess
Description copied from interface:MerchSyncServiceMethod complete synchronization process (e.g set proper end date and status)- Specified by:
completeMerchSyncProcessin interfaceMerchSyncService- Parameters:
operationId- operation identifiernumberOfProducts- Number of synchronized products
-
saveErrorInfo
Description copied from interface:MerchSyncServiceSave error information in synchronization process with given operation id- Specified by:
saveErrorInfoin interfaceMerchSyncService- Parameters:
operationId- operation identifiererrorMessage- error messageexception- exception
-
getErrorMessage
-
getStringValue
-
getModelService
-
setModelService
-
getMerchSynchronizationDao
-
setMerchSynchronizationDao
-
getTimeService
-
setTimeService
-