Class PurchaseOfferingSharedData

java.lang.Object
com.portal.app.comp.SharedData
com.portal.app.cc.comp.PurchaseOfferingSharedData

public class PurchaseOfferingSharedData extends SharedData
Data sharing support for purchasing an offering.
  • Field Details

    • OPERATIONTYPE

      public static final String OPERATIONTYPE
      See Also:
    • CUST_SERVICE

      public static final String CUST_SERVICE
      property to be used for notifying customize services page if it should be enabled or not during change options and transition operation depending on the deal selection
      See Also:
    • PAYMENT_OPTION_ENABLED

      public static final String PAYMENT_OPTION_ENABLED
      See Also:
    • CHANGE_OPTIONS_OFFERING

      public static final int CHANGE_OPTIONS_OFFERING
      change options offering type
      See Also:
    • CHANGE_OPTIONS

      public static final int CHANGE_OPTIONS
      See Also:
    • TRANSITION

      public static final int TRANSITION
      See Also:
    • NO_OPERATION

      public static final int NO_OPERATION
      See Also:
    • OFFERINGTYPE

      public static final String OFFERINGTYPE
      Property to be used for shared data offering type change notification.
      See Also:
    • BACKDATE

      public static final String BACKDATE
      Property to be used for shared data backdate change notification
      See Also:
    • NO_OFFERING

      public static final int NO_OFFERING
      No offering offering type.
      See Also:
    • DEAL_OFFERING

      public static final int DEAL_OFFERING
      Deal offering offering type.
      See Also:
    • PLAN_OFFERING

      public static final int PLAN_OFFERING
      Plan offering offering type.
      See Also:
    • MAP_SERVICE

      public static final String MAP_SERVICE
      See Also:
    • OFFERING

      public static final String OFFERING
      Property to be used for shared data change offering notification.
      See Also:
    • ACCESSSTRING

      public static final String ACCESSSTRING
      Property to be used for shared data plan list access string change notification.
      See Also:
  • Constructor Details

    • PurchaseOfferingSharedData

      public PurchaseOfferingSharedData(SharedDataManager m)
      Creates purchase offering shared data.
      Parameters:
      m - The manager for this shared data.
  • Method Details

    • getOfferingType

      public int getOfferingType()
      Returns the offering type
      Returns:
      offering type. See setOfferingType for the possible values.
    • setOfferingType

      public void setOfferingType(int offeringType)
      During purchase offering, if the offering type has changed, holds onto the passed-in offering type and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is OFFERINGTYPE.
      Parameters:
      offeringType - One of the following:
      NO_OFFERING -- offering type not selected
      DEAL_OFFERING -- selected offering is a deal
      PLAN_OFFERING -- selected offering is a plan
    • setOffering

      public void setOffering(PModelHandle inOffering)
      Sets the model handle of the selected plan/deal during purchase offering. The property sent is OFFERING. If the offering type is DEAL_OFFERING the model handle is that of a deal. If the offering type is PLAN_OFFERING the model handle is that of a plan.
      Parameters:
      inOffering - Model handle for the selected plan
    • getOffering

      public PModelHandle getOffering()
      Returns the model handle of the selected plan or deal during purchase offering.
      Returns:
      model handle.
    • getPlanListAccessString

      public String getPlanListAccessString()
      Returns the shared plan list access string.
      Returns:
      The string that will be used to retrieve the plan list from Portal.
    • setPlanListAccessString

      public void setPlanListAccessString(String accessString)
      Holds onto the plan list access string and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is ACCESSSTRING.
      Parameters:
      accessString - The shared plan list access string
    • recycle

      public void recycle()
      Clears shared data variables.
      Specified by:
      recycle in class SharedData
    • setOperationType

      public void setOperationType(int operationType)
    • getOperationType

      public int getOperationType()
    • setServiceMappingRequired

      public void setServiceMappingRequired(boolean isReq)
    • getServiceMappingRequired

      public boolean getServiceMappingRequired()
    • setPlanOfferingHasRequiredServicesFlag

      public void setPlanOfferingHasRequiredServicesFlag(boolean flag)
    • isPlanOfferingHasRequiredServices

      public boolean isPlanOfferingHasRequiredServices()
    • setBackdateData

      public void setBackdateData(boolean flag, Date date)
      sets the backdating option to share with other wizard pages and holds the chosen backdate
      Parameters:
      flag - true if backdating option is selected in Purchase panel, false otherwise
      date - chosen backdate
    • isBackdatingSelected

      public boolean isBackdatingSelected()
      called by wizard pages to know if backdating option is selected in Purchase panel
      Returns:
      true if backdating option is selected in Purchase panel, false otherwise
    • getBackdate

      public Date getBackdate()
      Returns the selected backdate
      Returns:
      backdate
    • dealStatesChanged

      public void dealStatesChanged(boolean changed)
    • isDealStatesChanged

      public boolean isDealStatesChanged()
    • setModelHandleOfFromPlan

      public void setModelHandleOfFromPlan(PModelHandle plan)
    • getModelHandleOfFromPlan

      public PModelHandle getModelHandleOfFromPlan()
    • getReqDealSelectedFlag

      public boolean getReqDealSelectedFlag()
    • setReqDealSelectedFlag

      public void setReqDealSelectedFlag(boolean flag)
    • isServiceAvailableToCustomize

      public boolean isServiceAvailableToCustomize()
    • setServiceAvailableToCustomize

      public void setServiceAvailableToCustomize(boolean flag)
    • setPaymentOptionEnabled

      public void setPaymentOptionEnabled(boolean flag)
      This will pass the information to the Payment Option panel to enable or disable depending in flag
      Parameters:
      flag -
    • isSubscrptionGroupAvailable

      public boolean isSubscrptionGroupAvailable()
      Returns:
      boolean true for plan with subscription group
    • setSubscrptionGroupAvailable

      public void setSubscrptionGroupAvailable(boolean mIsSubscriptionGroupAvailable)
      set whether plan is having subcription group or not
      Parameters:
      mIsSubscriptionGroupAvailable - boolean
    • setSelectedServiceObjForDeal

      public void setSelectedServiceObjForDeal(Poid servPoid)
      set the selected service object for Deal
    • getSelectedServicePoidForDeal

      public Poid getSelectedServicePoidForDeal()
      gets the selected service poid for deal
    • setSelectedDealsOrServices

      public void setSelectedDealsOrServices(SparseArray in)
      Store the selected services/deals in plan options page for enabling/disabling of other pages
      Parameters:
      sparsearray - of selected services
    • getSelectedDealsOrServices

      public SparseArray getSelectedDealsOrServices()
      Retrieve the selected services/deals in plan options page for enabling/disabling of other pages
      Returns:
      sparsearray of selected services