Class AccountCreationSharedData

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

public class AccountCreationSharedData extends SharedData
Data sharing support for the account creation wizard.
  • Field Details

    • DBID

      public static final String DBID
      Property to be used for shared data database ID
      See Also:
    • OFFERING

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

      public static final String NAMEADDRESS
      Property to be used for shared data name/address change notification
      See Also:
    • INFRANETLOCALE

      public static final String INFRANETLOCALE
      Property to be used for shared data Portal locale change notification
      See Also:
    • HIERARCHY

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

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

      public static final String CURRENCIES
      Property to be used for shared data currencies change notification
      See Also:
    • CUSTOMERTYPE

      public static final String CUSTOMERTYPE
      Property to be used for shared data customer type change notification
      See Also:
    • ACCESSSTRING

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

      public static final String SPONSORSHIP
      Property to be used for shared data sponsorship type change notification
      See Also:
  • Constructor Details

    • AccountCreationSharedData

      public AccountCreationSharedData(SharedDataManager m)
      Creates account creation shared data.
      Parameters:
      m - The manager for this shared data.
  • Method Details

    • setDatabaseID

      public void setDatabaseID(PModelHandle pm) throws PropertyVetoException
      Establishes the database the account should be restricted to. While this does not enforce the database the account will live in, it does restrict the database its parent or sponsors can live in. The property sent is DBID.
      Parameters:
      pm - An account object from which to retrieve the database ID
      Throws:
      PropertyVetoException
    • setDatabaseID

      public void setDatabaseID(Long db) throws PropertyVetoException
      Establishes the database the account should be restricted to. While this does not enforce the database the account will live in, it does restrict the database its parent or sponsors can live in. The property sent is DBID.
      Parameters:
      db - The database ID
      Throws:
      PropertyVetoException
    • getDatabaseID

      public Long getDatabaseID()
      Retrieves the databaseID
      Returns:
      The database ID
    • getNameAddressData

      public NameAddressData getNameAddressData()
      Returns shareable name and address data.
      Returns:
      name and address data
    • getPhoneData

      public ArrayList getPhoneData()
      Returns shareable phone data.
      Returns:
      phoneData of type PhoneData
    • setPhoneData

      public void setPhoneData(ArrayList phoneList)
      Set shareable phone data to use while account creation
    • setNameAddressData

      public void setNameAddressData(NameAddressData nameAddressData)
      Holds onto the passed-in name and address data and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is NAMEADDRESS.
      Parameters:
      nameAddressData - name and address data
    • getInfranetLocaleData

      public InfranetLocaleData getInfranetLocaleData()
      Returns shareable Portal locale data
      Returns:
      Portal locale data
    • setInfranetLocaleData

      public void setInfranetLocaleData(InfranetLocaleData infranetLocaleData)
      Holds onto the passed-in Portal locale data and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is INFRANETLOCALE.
      Parameters:
      infranetLocaleData - name and address data
    • setSponsorshipData

      public void setSponsorshipData(SponsorshipData[] data)
      Sets the shareable data containing sponsor group information for sponsorship and will fire an event notification to interested listeners. The property sent is SPONSORSHIP.
      Parameters:
      data - the new sponsorship information
    • getSponsorshipData

      public SponsorshipData[] getSponsorshipData()
      Returns:
      the shared sponsorship information
    • setSponsoredProducts

      public void setSponsoredProducts(ArrayList prod)
      Sets the shareable data containing a sponsored product list for sponsorship and will fire an event notification to interested listeners. The property sent is SPONSORSHIP.
      Parameters:
      data - the new sponsored product list
    • getSponsoredProducts

      public ArrayList getSponsoredProducts()
      Returns:
      the shared sponsorship product information
    • setOffering

      public void setOffering(PModelHandle inOffering)
      Holds onto the passed-in selected plan model handle and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is OFFERING.
      Parameters:
      inMH - Model handle for the selected plan
    • getOffering

      public PModelHandle getOffering()
      Returns the model handle of the selected plan.
      Returns:
      model handle.
    • getHierarchyData

      public HierarchySetupData getHierarchyData()
      Returns the hierarchy data.
      Returns:
      Hierarchy data or null if there is no hierarchy data.
    • setHierarchyData

      public void setHierarchyData(HierarchySetupData hierarchyData)
      Holds onto the hierarchy data and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is HIERARCHY.
      Parameters:
      hierarchyData - hierarchy data
    • setBackdateData

      public void setBackdateData(boolean flag, Date date)
      Sets the flag for backdated selection in General Page for account creation and holds the chosen backdate
      Parameters:
      flag - true if selected, false otherwise
      date - chosen backdate
    • isBackdatingSelected

      public boolean isBackdatingSelected()
      returns if backdated account creation option is selected in General Page
      Returns:
      true is selected, false otherwise
    • getBackdate

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

      public CurrenciesData getCurrenciesData()
      Returns shared currencies data.
      Returns:
      Shared currencies data or null if there is no shared currencies data.
    • setCurrenciesData

      public void setCurrenciesData(CurrenciesData currenciesData)
      Holds onto the shared currencies data and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is CURRENCIES.
      Parameters:
      currenciesData - hierarchy data
    • getCustomerType

      public int getCustomerType()
      Returns the shared customer type.
      Returns:
      The customer type or -1 if the customer type hasn't been shared out. (The Portal customer type is an ENUM and so any such value must be non-negative.)
    • setCustomerType

      public void setCustomerType(int customerType)
      Used to set the customer type field for this new account, and calls fireSharedDataChangedNotification to notify any interested listeners. The property sent is CUSTOMERTYPE.
      Note that this call updates the customer type widget if it is present in the UI.
      Parameters:
      customerType - The shared customer type
    • getPlanListAccessString

      public String getPlanListAccessString()
      Returns the shared plan list access string.
      Returns:
      The string that will be used to retrieve the plan list from the 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
    • setBalGrpCurrencyWithCurrencyMap

      public void setBalGrpCurrencyWithCurrencyMap(HashMap hm)
      sets the balncegroup and respective credit limit maps
      Parameters:
      hm - HashMap
    • getBalGrpCurrencyWithCurrencyMap

      public HashMap getBalGrpCurrencyWithCurrencyMap()
      returns the balncegroup and respective credit limit maps
    • 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
    • recycle

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

      public void setPlanOfferingHasRequiredServicesFlag(boolean flag)
      Sets true if the plan selected in purchase panel has required and optional deals.
      Parameters:
      flag -
    • isPlanOfferingHasRequiredServices

      public boolean isPlanOfferingHasRequiredServices()
      Returns true if plan offering has required and optional deals.
      Returns:
    • dealStatesChanged

      public void dealStatesChanged(boolean changed)
      Sets the value of deal selection changes in pplanoptionspage.
      Parameters:
      changed -
    • isDealStatesChanged

      public boolean isDealStatesChanged()
      Returns true if deal selection has been changed in PPlanOptionsPage
      Returns:
    • getReqDealSelectedFlag

      public boolean getReqDealSelectedFlag()
      Returns the required deal selection flag
      Returns:
    • setReqDealSelectedFlag

      public void setReqDealSelectedFlag(boolean flag)
      Sets the state of req deal selection flag. This flag will be used by customize services to show the data regarding required services.
      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