Package com.skava.oms.service
Class EcommCoreServices
java.lang.Object
com.skava.oms.service.EcommCoreServices
- Direct Known Subclasses:
CollectionHelperServices
,CollectionServices
,CollectionValidatorComponent
,CreateCollectionValidatorComponent
,MessageHelperServices
,OrderHelperServices
,UpdateCollectionPropertyValidator
,UpdateCollectionValidatorComponent
This class defines common dependencies for the application.
- Since:
- Jul 13, 2018
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
The ApplicationContext objectprotected org.springframework.context.MessageSource
The MessageSource objectprotected OrderProcessFlowService
The OrderProcessFlowService objectprotected org.redisson.api.RedissonClient
The RedissonClient objectprotected org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
The LocalValidatorFactoryBean object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Note[]
createOrderNotes
(Order order, String description, boolean isCSRAdmin) This method prepares the note for the processing order.getItemIds
(Map<String, Object> properties) getItemIdsStr
(Set<String> itemIds) protected Notification[]
updateOrderNotification
(Order order, NotificationDTO[] notificationDTOs) This method prepares the notification for the processing order.
-
Field Details
-
context
@Autowired protected org.springframework.context.ApplicationContext contextThe ApplicationContext object -
messageSource
@Autowired protected org.springframework.context.MessageSource messageSourceThe MessageSource object -
validator
@Autowired protected org.springframework.validation.beanvalidation.LocalValidatorFactoryBean validatorThe LocalValidatorFactoryBean object -
redissonClient
@Autowired @Lazy protected org.redisson.api.RedissonClient redissonClientThe RedissonClient object -
orderService
The OrderProcessFlowService object
-
-
Constructor Details
-
EcommCoreServices
public EcommCoreServices()
-
-
Method Details
-
createOrderNotes
This method prepares the note for the processing order.- Parameters:
order
- - order object in the current process.description
- - description given as a note.isCSRAdmin
- indicate userType is CSR or Customer- Returns:
- It returns the no. of notes for the given order
-
updateOrderNotification
This method prepares the notification for the processing order.- Parameters:
order
- - order object in the current process.notificationDTOs
- - updated notification information.- Returns:
- It returns the no. of notifications for the given order Debug logger has been added to this method.
-
getItemIds
-
getItemIdsStr
- Parameters:
itemIds
- set of itemIds- Returns:
- set of itemIds
-