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

java.lang.Object
  extended by com.ning.billing.util.events.BusEventBase
      extended by com.ning.billing.subscription.api.user.DefaultSubscriptionEvent
All Implemented Interfaces:
com.ning.billing.bus.api.BusEvent, com.ning.billing.queue.api.QueueEvent, BusInternalEvent, SubscriptionInternalEvent
Direct Known Subclasses:
DefaultEffectiveSubscriptionEvent, DefaultRequestedSubscriptionEvent

public abstract class DefaultSubscriptionEvent
extends BusEventBase
implements SubscriptionInternalEvent


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ning.billing.util.events.BusInternalEvent
BusInternalEvent.BusInternalEventType
 
Constructor Summary
DefaultSubscriptionEvent(SubscriptionBaseTransitionData in, org.joda.time.DateTime startDate, Long searchKey1, Long searchKey2, UUID userToken)
           
DefaultSubscriptionEvent(UUID eventId, UUID subscriptionId, UUID bundleId, org.joda.time.DateTime requestedTransitionTime, org.joda.time.DateTime effectiveTransitionTime, com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState, String previousPlan, String previousPhase, String previousPriceList, com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState, String nextPlan, String nextPhase, String nextPriceList, Long totalOrdering, SubscriptionBaseTransitionType transitionType, Integer remainingEventsForUserOperation, org.joda.time.DateTime startDate, Long searchKey1, Long searchKey2, UUID userToken)
           
 
Method Summary
 boolean equals(Object o)
           
 UUID getBundleId()
           
 BusInternalEvent.BusInternalEventType getBusEventType()
           
 org.joda.time.DateTime getEffectiveTransitionTime()
           
 UUID getId()
           
 String getNextPhase()
           
 String getNextPlan()
           
 String getNextPriceList()
           
 com.ning.billing.entitlement.api.Entitlement.EntitlementState getNextState()
           
 String getPreviousPhase()
           
 String getPreviousPlan()
           
 String getPreviousPriceList()
           
 com.ning.billing.entitlement.api.Entitlement.EntitlementState getPreviousState()
           
 Integer getRemainingEventsForUserOperation()
           
 org.joda.time.DateTime getRequestedTransitionTime()
           
 UUID getSubscriptionId()
           
 org.joda.time.DateTime getSubscriptionStartDate()
           
 Long getTotalOrdering()
           
 SubscriptionBaseTransitionType getTransitionType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.ning.billing.util.events.BusEventBase
getSearchKey1, getSearchKey2, getUserToken
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ning.billing.bus.api.BusEvent
getSearchKey1, getSearchKey2, getUserToken
 

Constructor Detail

DefaultSubscriptionEvent

public DefaultSubscriptionEvent(SubscriptionBaseTransitionData in,
                                org.joda.time.DateTime startDate,
                                Long searchKey1,
                                Long searchKey2,
                                UUID userToken)

DefaultSubscriptionEvent

public DefaultSubscriptionEvent(UUID eventId,
                                UUID subscriptionId,
                                UUID bundleId,
                                org.joda.time.DateTime requestedTransitionTime,
                                org.joda.time.DateTime effectiveTransitionTime,
                                com.ning.billing.entitlement.api.Entitlement.EntitlementState previousState,
                                String previousPlan,
                                String previousPhase,
                                String previousPriceList,
                                com.ning.billing.entitlement.api.Entitlement.EntitlementState nextState,
                                String nextPlan,
                                String nextPhase,
                                String nextPriceList,
                                Long totalOrdering,
                                SubscriptionBaseTransitionType transitionType,
                                Integer remainingEventsForUserOperation,
                                org.joda.time.DateTime startDate,
                                Long searchKey1,
                                Long searchKey2,
                                UUID userToken)
Method Detail

getBusEventType

public BusInternalEvent.BusInternalEventType getBusEventType()
Specified by:
getBusEventType in interface BusInternalEvent

getId

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

getSubscriptionId

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

getBundleId

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

getPreviousState

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

getPreviousPlan

public String getPreviousPlan()
Specified by:
getPreviousPlan in interface SubscriptionInternalEvent

getPreviousPhase

public String getPreviousPhase()
Specified by:
getPreviousPhase in interface SubscriptionInternalEvent

getNextPlan

public String getNextPlan()
Specified by:
getNextPlan in interface SubscriptionInternalEvent

getNextPhase

public String getNextPhase()
Specified by:
getNextPhase in interface SubscriptionInternalEvent

getNextState

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

getPreviousPriceList

public String getPreviousPriceList()
Specified by:
getPreviousPriceList in interface SubscriptionInternalEvent

getNextPriceList

public String getNextPriceList()
Specified by:
getNextPriceList in interface SubscriptionInternalEvent

getRemainingEventsForUserOperation

public Integer getRemainingEventsForUserOperation()
Specified by:
getRemainingEventsForUserOperation in interface SubscriptionInternalEvent

getRequestedTransitionTime

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

getEffectiveTransitionTime

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

getTotalOrdering

public Long getTotalOrdering()
Specified by:
getTotalOrdering in interface SubscriptionInternalEvent

getTransitionType

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

getSubscriptionStartDate

public org.joda.time.DateTime getSubscriptionStartDate()
Specified by:
getSubscriptionStartDate in interface SubscriptionInternalEvent

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.