Class RefreshSubscriptionServiceExtentionImpl

java.lang.Object
com.skava.subscription.service.impl.RefreshSubscriptionServiceExtentionImpl
Direct Known Subclasses:
RefreshSubscriptionServiceImpl

@Service public class RefreshSubscriptionServiceExtentionImpl extends Object
class RefreshSubscriptionServiceExtentionImpl This class is to refresh subscription
  • 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 - orderDateProcessor
      collectionPtys - collectionPtys
      subscription - subscription
      refreshProcessDate - 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.