Class RefreshSubscriptionServiceExtentionImpl
java.lang.Object
com.skava.subscription.service.impl.RefreshSubscriptionServiceExtentionImpl
- Direct Known Subclasses:
RefreshSubscriptionServiceImpl
class RefreshSubscriptionServiceExtentionImpl
This class is to refresh subscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SubscriptionResponse>
sendEvent
(Iterable<SubscriptionEntity> subscriptionentities, String authToken) Sends event after updating the subscriptionprotected void
setDates
(SubscriptionEntity subscription, InstanceProcessingDate instanceProcessingDate) Sets subscription dates based on the responseprotected void
updateDatesInSubscriptionEntity
(OrderDateProcessor orderDateProcessor, Map<String, CollectionPropertyEntity> collectionPtys, SubscriptionEntity subscription, boolean refreshProcessDate) Frames the request to get the subscription dates
-
Constructor Details
-
RefreshSubscriptionServiceExtentionImpl
public RefreshSubscriptionServiceExtentionImpl()
-
-
Method Details
-
updateDatesInSubscriptionEntity
protected void updateDatesInSubscriptionEntity(OrderDateProcessor orderDateProcessor, Map<String, CollectionPropertyEntity> collectionPtys, SubscriptionEntity subscription, boolean refreshProcessDate) Frames the request to get the subscription dates- Parameters:
orderDateProcessor
- orderDateProcessorcollectionPtys
- collectionPtyssubscription
- subscriptionrefreshProcessDate
- refreshProcessDate
-
sendEvent
protected List<SubscriptionResponse> sendEvent(Iterable<SubscriptionEntity> subscriptionentities, String authToken) Sends event after updating the subscription- Parameters:
subscriptionentities
- it pass the subscriptionentities.authToken
- authToken- Returns:
- subscriptionResponselist it returns the list
-
setDates
protected void setDates(SubscriptionEntity subscription, InstanceProcessingDate instanceProcessingDate) Sets subscription dates based on the response- Parameters:
subscription
- it defines the subscription.instanceProcessingDate
- it defines the instanceProcessingDate.
-