Package com.portal.app.cc.comp
Class AccountCreationSharedData
java.lang.Object
com.portal.app.comp.SharedData
com.portal.app.cc.comp.AccountCreationSharedData
Data sharing support for the account creation wizard.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property to be used for shared data plan list access string change notificationstatic final String
Property to be used for shared data backdate change notificationstatic final String
Property to be used for shared data currencies change notificationstatic final String
Property to be used for shared data customer type change notificationstatic final String
Property to be used for shared data database IDstatic final String
Property to be used for shared data hierarchy change notificationstatic final String
Property to be used for shared data Portal locale change notificationstatic final String
Property to be used for shared data name/address change notificationstatic final String
Property to be used for shared data offering plan change notificationstatic final String
Property to be used for shared data sponsorship type change notification -
Constructor Summary
ConstructorsConstructorDescriptionCreates account creation shared data. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dealStatesChanged
(boolean changed) Sets the value of deal selection changes in pplanoptionspage.Returns the selected backdatereturns the balncegroup and respective credit limit mapsReturns shared currencies data.int
Returns the shared customer type.Retrieves the databaseIDReturns the hierarchy data.Returns shareable Portal locale dataReturns shareable name and address data.Returns the model handle of the selected plan.Returns shareable phone data.Returns the shared plan list access string.boolean
Returns the required deal selection flagRetrieve the selected services/deals in plan options page for enabling/disabling of other pagesboolean
returns if backdated account creation option is selected in General Pageboolean
Returns true if deal selection has been changed in PPlanOptionsPageboolean
Returns true if plan offering has required and optional deals.boolean
void
recycle()
Clears shared data variables.void
setBackdateData
(boolean flag, Date date) Sets the flag for backdated selection in General Page for account creation and holds the chosen backdatevoid
sets the balncegroup and respective credit limit mapsvoid
setCurrenciesData
(CurrenciesData currenciesData) Holds onto the shared currencies data and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setCustomerType
(int customerType) Used to set the customer type field for this new account, and callsfireSharedDataChangedNotification
to notify any interested listeners.void
Establishes the database the account should be restricted to.void
setDatabaseID
(Long db) Establishes the database the account should be restricted to.void
setHierarchyData
(HierarchySetupData hierarchyData) Holds onto the hierarchy data and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setInfranetLocaleData
(InfranetLocaleData infranetLocaleData) Holds onto the passed-in Portal locale data and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setNameAddressData
(NameAddressData nameAddressData) Holds onto the passed-in name and address data and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setOffering
(PModelHandle inOffering) Holds onto the passed-in selected plan model handle and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setPhoneData
(ArrayList phoneList) Set shareable phone data to use while account creationvoid
setPlanListAccessString
(String accessString) Holds onto the plan list access string and callsfireSharedDataChangedNotification
to notify any interested listeners.void
setPlanOfferingHasRequiredServicesFlag
(boolean flag) Sets true if the plan selected in purchase panel has required and optional deals.void
setReqDealSelectedFlag
(boolean flag) Sets the state of req deal selection flag.void
Store the selected services/deals in plan options page for enabling/disabling of other pagesvoid
Sets the shareable data containing a sponsored product list for sponsorship and will fire an event notification to interested listeners.void
setSponsorshipData
(SponsorshipData[] data) Sets the shareable data containing sponsor group information for sponsorship and will fire an event notification to interested listeners.void
setSubscrptionGroupAvailable
(boolean mIsSubscriptionGroupAvailable) set whether plan is having subcription group or notMethods inherited from class com.portal.app.comp.SharedData
fireSharedDataChangedNotification, fireSharedDataVetoableNotification
-
Field Details
-
DBID
Property to be used for shared data database ID- See Also:
-
OFFERING
Property to be used for shared data offering plan change notification- See Also:
-
NAMEADDRESS
Property to be used for shared data name/address change notification- See Also:
-
INFRANETLOCALE
Property to be used for shared data Portal locale change notification- See Also:
-
HIERARCHY
Property to be used for shared data hierarchy change notification- See Also:
-
BACKDATE
Property to be used for shared data backdate change notification- See Also:
-
CURRENCIES
Property to be used for shared data currencies change notification- See Also:
-
CUSTOMERTYPE
Property to be used for shared data customer type change notification- See Also:
-
ACCESSSTRING
Property to be used for shared data plan list access string change notification- See Also:
-
SPONSORSHIP
Property to be used for shared data sponsorship type change notification- See Also:
-
-
Constructor Details
-
Method Details
-
setDatabaseID
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 isDBID
.- Parameters:
pm
- An account object from which to retrieve the database ID- Throws:
PropertyVetoException
-
setDatabaseID
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 isDBID
.- Parameters:
db
- The database ID- Throws:
PropertyVetoException
-
getDatabaseID
Retrieves the databaseID- Returns:
- The database ID
-
getNameAddressData
Returns shareable name and address data.- Returns:
- name and address data
-
getPhoneData
Returns shareable phone data.- Returns:
- phoneData of type PhoneData
-
setPhoneData
Set shareable phone data to use while account creation -
setNameAddressData
Holds onto the passed-in name and address data and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isNAMEADDRESS
.- Parameters:
nameAddressData
- name and address data
-
getInfranetLocaleData
Returns shareable Portal locale data- Returns:
- Portal locale data
-
setInfranetLocaleData
Holds onto the passed-in Portal locale data and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isINFRANETLOCALE
.- Parameters:
infranetLocaleData
- name and address data
-
setSponsorshipData
Sets the shareable data containing sponsor group information for sponsorship and will fire an event notification to interested listeners. The property sent isSPONSORSHIP
.- Parameters:
data
- the new sponsorship information
-
getSponsorshipData
- Returns:
- the shared sponsorship information
-
setSponsoredProducts
Sets the shareable data containing a sponsored product list for sponsorship and will fire an event notification to interested listeners. The property sent isSPONSORSHIP
.- Parameters:
data
- the new sponsored product list
-
getSponsoredProducts
- Returns:
- the shared sponsorship product information
-
setOffering
Holds onto the passed-in selected plan model handle and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isOFFERING
.- Parameters:
inMH
- Model handle for the selected plan
-
getOffering
Returns the model handle of the selected plan.- Returns:
- model handle.
-
getHierarchyData
Returns the hierarchy data.- Returns:
- Hierarchy data or
null
if there is no hierarchy data.
-
setHierarchyData
Holds onto the hierarchy data and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isHIERARCHY
.- Parameters:
hierarchyData
- hierarchy data
-
setBackdateData
Sets the flag for backdated selection in General Page for account creation and holds the chosen backdate- Parameters:
flag
- true if selected, false otherwisedate
- chosen backdate
-
isBackdatingSelected
public boolean isBackdatingSelected()returns if backdated account creation option is selected in General Page- Returns:
- true is selected, false otherwise
-
getBackdate
Returns the selected backdate- Returns:
-
getCurrenciesData
Returns shared currencies data.- Returns:
- Shared currencies data or
null
if there is no shared currencies data.
-
setCurrenciesData
Holds onto the shared currencies data and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isCURRENCIES
.- 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 callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isCUSTOMERTYPE
.
Note that this call updates the customer type widget if it is present in the UI.- Parameters:
customerType
- The shared customer type
-
getPlanListAccessString
Returns the shared plan list access string.- Returns:
- The string that will be used to retrieve the plan list from the Portal.
-
setPlanListAccessString
Holds onto the plan list access string and callsfireSharedDataChangedNotification
to notify any interested listeners. The property sent isACCESSSTRING
.- Parameters:
accessString
- The shared plan list access string
-
setBalGrpCurrencyWithCurrencyMap
sets the balncegroup and respective credit limit maps- Parameters:
hm
- HashMap
-
getBalGrpCurrencyWithCurrencyMap
returns the balncegroup and respective credit limit maps -
setSelectedDealsOrServices
Store the selected services/deals in plan options page for enabling/disabling of other pages- Parameters:
sparsearray
- of selected services
-
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 classSharedData
-
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
-