com.ning.billing.subscription.api.user
Class SubscriptionBaseTransitionData

java.lang.Object
  extended by com.ning.billing.subscription.api.user.SubscriptionBaseTransitionData
All Implemented Interfaces:
SubscriptionBaseTransition

public class SubscriptionBaseTransitionData
extends Object
implements SubscriptionBaseTransition


Constructor Summary
SubscriptionBaseTransitionData(SubscriptionBaseTransitionData input, int remainingEventsForUserOperation)
           
SubscriptionBaseTransitionData(SubscriptionBaseTransitionData input, SubscriptionBaseEvent.EventType eventType, ApiEventType apiEventType, int remainingEventsForUserOperation)
           
SubscriptionBaseTransitionData(UUID eventId, UUID subscriptionId, UUID bundleId, SubscriptionBaseEvent.EventType eventType, ApiEventType apiEventType, org.joda.time.DateTime requestedTransitionTime, org.joda.time.DateTime effectiveTransitionTime, UUID previousEventId, org.joda.time.DateTime previousEventCreatedDate, com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState, Plan previousPlan, PlanPhase previousPhase, PriceList previousPriceList, UUID nextEventId, org.joda.time.DateTime nextEventCreatedDate, com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState, Plan nextPlan, PlanPhase nextPhase, PriceList nextPriceList, Long totalOrdering, org.joda.time.DateTime createdDate, UUID userToken, Boolean isFromDisk)
           
 
Method Summary
 boolean equals(Object o)
           
 ApiEventType getApiEventType()
           
 UUID getBundleId()
           
 org.joda.time.DateTime getCreatedDate()
           
 org.joda.time.DateTime getEffectiveTransitionTime()
           
 SubscriptionBaseEvent.EventType getEventType()
           
 UUID getId()
           
 org.joda.time.DateTime getNextEventCreatedDate()
           
 UUID getNextEventId()
           
 PlanPhase getNextPhase()
           
 Plan getNextPlan()
           
 PriceList getNextPriceList()
           
 com.ning.billing.entitlement.api.Entitlement.EntitlementState getNextState()
           
 org.joda.time.DateTime getPreviousEventCreatedDate()
           
 UUID getPreviousEventId()
           
 PlanPhase getPreviousPhase()
           
 Plan getPreviousPlan()
           
 PriceList getPreviousPriceList()
           
 com.ning.billing.entitlement.api.Entitlement.EntitlementState getPreviousState()
           
 Integer getRemainingEventsForUserOperation()
           
 org.joda.time.DateTime getRequestedTransitionTime()
           
 UUID getSubscriptionId()
           
 Long getTotalOrdering()
           
 SubscriptionBaseTransitionType getTransitionType()
           
 UUID getUserToken()
           
 int hashCode()
           
 Boolean isFromDisk()
           
 String toString()
           
static SubscriptionBaseTransitionType toSubscriptionTransitionType(SubscriptionBaseEvent.EventType eventType, ApiEventType apiEventType)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubscriptionBaseTransitionData

public SubscriptionBaseTransitionData(UUID eventId,
                                      UUID subscriptionId,
                                      UUID bundleId,
                                      SubscriptionBaseEvent.EventType eventType,
                                      ApiEventType apiEventType,
                                      org.joda.time.DateTime requestedTransitionTime,
                                      org.joda.time.DateTime effectiveTransitionTime,
                                      UUID previousEventId,
                                      org.joda.time.DateTime previousEventCreatedDate,
                                      com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState,
                                      Plan previousPlan,
                                      PlanPhase previousPhase,
                                      PriceList previousPriceList,
                                      UUID nextEventId,
                                      org.joda.time.DateTime nextEventCreatedDate,
                                      com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState,
                                      Plan nextPlan,
                                      PlanPhase nextPhase,
                                      PriceList nextPriceList,
                                      Long totalOrdering,
                                      org.joda.time.DateTime createdDate,
                                      UUID userToken,
                                      Boolean isFromDisk)

SubscriptionBaseTransitionData

public SubscriptionBaseTransitionData(SubscriptionBaseTransitionData input,
                                      int remainingEventsForUserOperation)

SubscriptionBaseTransitionData

public SubscriptionBaseTransitionData(SubscriptionBaseTransitionData input,
                                      SubscriptionBaseEvent.EventType eventType,
                                      ApiEventType apiEventType,
                                      int remainingEventsForUserOperation)
Method Detail

getId

public UUID getId()
Specified by:
getId in interface SubscriptionBaseTransition

getSubscriptionId

public UUID getSubscriptionId()
Specified by:
getSubscriptionId in interface SubscriptionBaseTransition

getBundleId

public UUID getBundleId()
Specified by:
getBundleId in interface SubscriptionBaseTransition

getPreviousState

public com.ning.billing.entitlement.api.Entitlement.EntitlementState getPreviousState()
Specified by:
getPreviousState in interface SubscriptionBaseTransition

getPreviousPlan

public Plan getPreviousPlan()
Specified by:
getPreviousPlan in interface SubscriptionBaseTransition

getPreviousPhase

public PlanPhase getPreviousPhase()
Specified by:
getPreviousPhase in interface SubscriptionBaseTransition

getNextEventId

public UUID getNextEventId()
Specified by:
getNextEventId in interface SubscriptionBaseTransition

getNextEventCreatedDate

public org.joda.time.DateTime getNextEventCreatedDate()
Specified by:
getNextEventCreatedDate in interface SubscriptionBaseTransition

getNextPlan

public Plan getNextPlan()
Specified by:
getNextPlan in interface SubscriptionBaseTransition

getNextPhase

public PlanPhase getNextPhase()
Specified by:
getNextPhase in interface SubscriptionBaseTransition

getNextState

public com.ning.billing.entitlement.api.Entitlement.EntitlementState getNextState()
Specified by:
getNextState in interface SubscriptionBaseTransition

getPreviousEventId

public UUID getPreviousEventId()
Specified by:
getPreviousEventId in interface SubscriptionBaseTransition

getPreviousEventCreatedDate

public org.joda.time.DateTime getPreviousEventCreatedDate()
Specified by:
getPreviousEventCreatedDate in interface SubscriptionBaseTransition

getPreviousPriceList

public PriceList getPreviousPriceList()
Specified by:
getPreviousPriceList in interface SubscriptionBaseTransition

getNextPriceList

public PriceList getNextPriceList()
Specified by:
getNextPriceList in interface SubscriptionBaseTransition

getUserToken

public UUID getUserToken()

getRemainingEventsForUserOperation

public Integer getRemainingEventsForUserOperation()

getTransitionType

public SubscriptionBaseTransitionType getTransitionType()
Specified by:
getTransitionType in interface SubscriptionBaseTransition

toSubscriptionTransitionType

public static SubscriptionBaseTransitionType toSubscriptionTransitionType(SubscriptionBaseEvent.EventType eventType,
                                                                          ApiEventType apiEventType)

getCreatedDate

public org.joda.time.DateTime getCreatedDate()
Specified by:
getCreatedDate in interface SubscriptionBaseTransition

getRequestedTransitionTime

public org.joda.time.DateTime getRequestedTransitionTime()
Specified by:
getRequestedTransitionTime in interface SubscriptionBaseTransition

getEffectiveTransitionTime

public org.joda.time.DateTime getEffectiveTransitionTime()
Specified by:
getEffectiveTransitionTime in interface SubscriptionBaseTransition

getTotalOrdering

public Long getTotalOrdering()

isFromDisk

public Boolean isFromDisk()

getApiEventType

public ApiEventType getApiEventType()

getEventType

public SubscriptionBaseEvent.EventType getEventType()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010-2013. All Rights Reserved.