Package com.portal.app.ccare.comp
Interface PPurchasePanelBean
- All Superinterfaces:
Remote
- All Known Implementing Classes:
PPurchasePanelBeanImpl
Remote interface for PPurchasePanel controller.
This controller is used to get data from database
for deal/service purchase.
- Version:
- %version: 9 % %date_modified: Tue Aug 21 11:08:58 2001 %
- Author:
- kowang
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collectBackDateData
(PModelHandle inMH, Date backDate) Builds PModelHandle by appending the deal/plan model handle to the input model handle during purchase offering.void
collectDataForChangeOption
(PModelHandle origMH, PModelHandle curAccModel, PModelHandle curPlanHandle, SparseArray dealsToBePurchased) Collects data for change optionsvoid
collectDataForDealTransition
(PModelHandle origModel, PModelHandle acctModel, PModelHandle fromDeal, PModelHandle serviceModel, String toDealName, int iTransitionType) Collects data for deal-deal transition.void
collectDataForPlanTransition
(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) Collects data for plan transitionvoid
collectDealData
(PModelHandle inMH, int serviceIndex, String dealName) Builds PModelHandle by appending the deal model handle to the input model handle during purchase offering.void
collectPlanData
(PModelHandle inMH, String planName) Builds PModdelHandle by appending the plan model handle to the input model handle during purchase offering and account creation.void
collectPlanDataForRequiredDeals
(PModelHandle inMH, String planName) Collects plan data for the required deals to be used by COMMIT_CUSTOMER.This method forms an hashmap with balance group index as keys and the corresonding credit limits as valuesgetCurrentPlanName
(PModelHandle accModel) Retrives the plan name of the current accountRetrives the current plan poid.getDealModelHandle
(int serviceIndex, String dealName) Retrieves a deal model handle for a specific deal when Existing Services is selected during purchase offering.getDealsForTransition
(PModelHandle curAccModel, int iTransitionType) Returns the vector of deal objects which can be transitioned to other deals.String[]
getDealsNamesStrings
(int dealIndex) Retrieves sorted deal names from an array of Vector during purchase offering.Retrieves PModelHandle of services for the specific accountObject[]
Returns an array products which are inactive in the current account.Object[]
getLoginIDs
(PModelHandle serviceModelHandle) Returns the Object[] contains the following.getPlanModelHandle
(String planName) Retrieves plan model for a specific plan during purchase offering or account creation.String[]
Retrieves sorted plan names when New Services is getting selected on Purchase Panel during purchase offering or account creation.getPlans
(PModelHandle curAccModel) Returns subscribedplans of current account wrapped in SubscribedPlanObject instances.getServiceFlist
(int index) Retrieves Service FLists from an array .Retrives the list of subscribed plans of the current accountReturns the deal handle given the deal name.Object[]
getTransitionableDealStrings
(PModelHandle dealHandle, PModelHandle currAcctHandle, int iTransitionType) Returns the array of transitionable deal names of the given deal.getTransitionablePlanModelHandle
(String planName) Returns plan model handle associated with given plan string.Object[]
getTransitionablePlanStrings
(PModelHandle planHandle, int iTransitionType) Returns an array of plan names which are available for transition from the current plan.Returns the transition types available.boolean
hasPlanSubcriptionGroup
(String planName) Finds out if the given plan contains subscription groupboolean
hasRequiredServices
(PModelHandle planHandle, boolean planOptionsFlag) Returns true if plan has required deals/services.boolean
hasSponsoredProduct
(PModelHandle planModelHandle, ArrayList sponsoredProducts) This will return true if the selected plan has a product which is present in the list of the sponsored productsvoid
initForExistingServices
(PModelHandle acctMH) Initialize class member for storing Existing Services related info during purchase offering.int
initForExistingServices
(PModelHandle acctMH, int threshold) Initialize class member for storing Existing Services related info during purchase offering.boolean
isAcctHasPlan
(PModelHandle accModel) Checks if the current account has plan associated with it.boolean
isBestDeal
(String dealName) Checks if the current deal is best configured deal.void
Clears cached data used during New Account Creation Wizard.void
Clears cached data used during Purchase Offering Wizard.void
setAacAccess
(String strAccess) Sets the auto-account-creation access string which is used to determine the list of plans that will be made available to choose during account creation and purchase offering for additional services.void
setService
(PModelHandle serviceMH) Sets the service cachevoid
Update Plan model handle for account creation
-
Method Details
-
initForExistingServices
Initialize class member for storing Existing Services related info during purchase offering.- Parameters:
accountMH
- model handle for the account object.- Throws:
RemoteException
-
initForExistingServices
Initialize class member for storing Existing Services related info during purchase offering.- Parameters:
threshold
-accountMH
- model handle for the account object.- Throws:
RemoteException
-
setService
Sets the service cache- Parameters:
serviceMH
-
-
getExistingServicesModel
Retrieves PModelHandle of services for the specific account- Returns:
- model handle of services.
- Throws:
RemoteException
-
getDealsNamesStrings
Retrieves sorted deal names from an array of Vector during purchase offering.- Parameters:
dealIndex
- index to the array where deal names are stored for a specific service/(Account).- Returns:
- String array that contains all deal names belongs to a service/(Account).
- Throws:
RemoteException
-
getDealModelHandle
Retrieves a deal model handle for a specific deal when Existing Services is selected during purchase offering.- Parameters:
serviceIndex
- index to the flist array where the service flists are stored in corresponds to the order in the Existing Services combobox.dealName
- deal name of the selected deal for the selected service/(Account).- Returns:
- PModelHandle that contains model handle for the selected deal and service.
- Throws:
RemoteException
-
getPlanModelHandle
Retrieves plan model for a specific plan during purchase offering or account creation.- Parameters:
planName
- plan name of the specific plan.- Returns:
- PModelHandle that contains model handle for the selected plan.
- Throws:
RemoteException
-
getPlanNamesStrings
Retrieves sorted plan names when New Services is getting selected on Purchase Panel during purchase offering or account creation.- Returns:
- String array that contains strings of plan names.
- Throws:
RemoteException
-
collectPlanData
Builds PModdelHandle by appending the plan model handle to the input model handle during purchase offering and account creation.- Parameters:
planName
- string of the plan name..- Throws:
RemoteException
-
collectDealData
Builds PModelHandle by appending the deal model handle to the input model handle during purchase offering.- Parameters:
serviceIndex
- index to the flist array where the service flists are stored.dealName
- string of the deal name..- Throws:
RemoteException
-
collectBackDateData
Builds PModelHandle by appending the deal/plan model handle to the input model handle during purchase offering.- Parameters:
inMH
- PModelHandlebackDate
-- Throws:
RemoteException
-
setAacAccess
Sets the auto-account-creation access string which is used to determine the list of plans that will be made available to choose during account creation and purchase offering for additional services. "admintool" is the string that will be used by default when fetching the plan list.- Parameters:
strAccess
- auto-account-creation access string.- Throws:
RemoteException
-
resetAcctCreationData
Clears cached data used during New Account Creation Wizard. An example of when the cache would want to be refreshed is when a brand change occurs.- Throws:
RemoteException
-
resetPurchaseOfferingData
Clears cached data used during Purchase Offering Wizard. An example of when the cache would want to be refreshed is when an account change occurs.- Throws:
RemoteException
-
getCurrentPlanName
Retrives the plan name of the current account- Throws:
RemoteException
-
getSubscribedPlansForCurrentAccount
Retrives the list of subscribed plans of the current account- Returns:
- PModelHandle array of subscribed plans
- Throws:
RemoteException
-
getCurrentPlanPoid
Retrives the current plan poid.- Returns:
- poid of the current plan
- Throws:
RemoteException
-
isAcctHasPlan
Checks if the current account has plan associated with it.- Returns:
- true if account has plan else returns false
- Throws:
RemoteException
-
getInactiveReqProdNamesForCurAccount
Returns an array products which are inactive in the current account.- Returns:
- an array products which are inactive in the current account.
- Throws:
RemoteException
-
getTransitionablePlanStrings
Object[] getTransitionablePlanStrings(PModelHandle planHandle, int iTransitionType) throws RemoteException Returns an array of plan names which are available for transition from the current plan.- Parameters:
planHandle
- plan model handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,- Returns:
- an array of plan names which are available for transition from the current plan.
- Throws:
RemoteException
-
getTransitionablePlanModelHandle
Returns plan model handle associated with given plan string.- Parameters:
planName
- name of the plan- Returns:
- plan model handle associated with given plan string.
- Throws:
RemoteException
-
collectPlanDataForRequiredDeals
Collects plan data for the required deals to be used by COMMIT_CUSTOMER.- Throws:
RemoteException
-
collectDataForPlanTransition
void collectDataForPlanTransition(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) throws RemoteException Collects data for plan transition- Parameters:
inMH
- input modelhandle to which collected data need to be updatedfromPlan
- from plan model handleplanToUpgrade
- name of the plan to which the account is getting upgraded to.accModel
- account model handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,- Throws:
RemoteException
-
collectDataForChangeOption
void collectDataForChangeOption(PModelHandle origMH, PModelHandle curAccModel, PModelHandle curPlanHandle, SparseArray dealsToBePurchased) throws RemoteException Collects data for change options- Parameters:
origMH
- input modelhandle to which collected data need to be updatedcurAccModel
- current account modelcurPlanHandle
- current plan modeldealsToBePurchased
- list of deals which are selected in planoptions page to purchase.- Throws:
RemoteException
-
getPlans
Returns subscribedplans of current account wrapped in SubscribedPlanObject instances.- Parameters:
curAccModel
- current account model.- Returns:
- vector of subscribed plan objects
- Throws:
RemoteException
-
getDealsForTransition
Returns the vector of deal objects which can be transitioned to other deals.- Parameters:
curAccModel
- current account modeliTransitionType
- - denotes current transition type(upgrade or downgrade or etc.,)- Returns:
- the vector of subscribed deal objects from the plan/plans of the given account which has transitionable deals.
- Throws:
RemoteException
-
getTransitionableDealStrings
Object[] getTransitionableDealStrings(PModelHandle dealHandle, PModelHandle currAcctHandle, int iTransitionType) throws RemoteException Returns the array of transitionable deal names of the given deal.- Parameters:
dealHandle
-currAcctHandle
-iTransitionType
- Transition type such as upgrade, downgrade, red, etc.,- Returns:
- the array of transitionable deal names of the given deal.
- Throws:
RemoteException
-
getTransitionableDealModelHandle
Returns the deal handle given the deal name.- Parameters:
name
-- Returns:
- the deal handle given the deal name.
- Throws:
RemoteException
-
collectDataForDealTransition
void collectDataForDealTransition(PModelHandle origModel, PModelHandle acctModel, PModelHandle fromDeal, PModelHandle serviceModel, String toDealName, int iTransitionType) throws RemoteException Collects data for deal-deal transition.- Parameters:
origModel
- model associated with Collect data event.acctModel
- current account model.fromDeal
- from deal handle.serviceModel
- service model of the from deal.toDealName
- to deal handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,- Throws:
RemoteException
-
hasRequiredServices
boolean hasRequiredServices(PModelHandle planHandle, boolean planOptionsFlag) throws RemoteException Returns true if plan has required deals/services.- Parameters:
planHandle
-planOptionsFlag
- is a customized flag which conveys if plan options page should be enabled if plan being used contains only optional deals. If it is true, then we will see if PIN_FLD_TYPE is present in any deal in the plan and return true. If planOptionsFlag is false, then we will see if a required deal (PIN_FLD_TYPE is 1) is there are not, if present, we will return true.- Returns:
- Throws:
RemoteException
-
getTransitionTypes
Returns the transition types available. Performs search on /config/transition_type which returns an array of PIN_FLD_TRANSITIONS. Constructs Transition Object instances from this information and returns them in a Vector- Returns:
- a vector containing instances of transition objects
- Throws:
RemoteException
-
getServiceFlist
Retrieves Service FLists from an array .- Parameters:
index
- index to the array where Service FLists are stored.- Returns:
- FList which is a service FList
-
isBestDeal
Checks if the current deal is best configured deal.- Returns:
- true if deal is best configured else returns false
- Throws:
RemoteException
-
hasSponsoredProduct
boolean hasSponsoredProduct(PModelHandle planModelHandle, ArrayList sponsoredProducts) throws RemoteException This will return true if the selected plan has a product which is present in the list of the sponsored products- Parameters:
planModelHandle
- modelHandle containing the products of the selected plansponsoredProducts
- the list of the sponsored products- Returns:
- Throws:
RemoteException
-
getLoginIDs
Returns the Object[] contains the following. Object[0] contains the login id to be displayed. Object[1] contains the service type of the service.- Parameters:
serviceModelHandle
-- Returns:
- Object[]
- Throws:
RemoteException
-
hasPlanSubcriptionGroup
Finds out if the given plan contains subscription group- Parameters:
planName
- name of the selected plan- Returns:
- true if plan has subscription group, false otherwise
- Throws:
RemoteException
-
formBalanceGrpCurrencyMap
This method forms an hashmap with balance group index as keys and the corresonding credit limits as values- Parameters:
hOrig
- PModelHandle, is the orginal model handle for the selected plan- Returns:
- HashMap balancegroup index and credit limits map
- Throws:
Exception
RemoteException
-
updatePlanModelHandle
Update Plan model handle for account creation- Parameters:
pmh
-- Throws:
RemoteException
-