Package com.portal.app.ccare.comp
Interface PPlanOptionsPageBean
- All Superinterfaces:
Remote
- All Known Implementing Classes:
PPlanOptionsPageBeanImpl
Remote interface for PPlanOptionsPage controller.
This controller is used to get data from database
for deal/service purchase.
- Author:
- Radhika Tirumalasetty
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendSelectedOptionalDeals
(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) Appends the optionalDeals to the planHandle to be used for collecting data.void
collectDataForUpgrade
(PModelHandle inMH, PModelHandle toPlan) Appends selected setvices data to the model flist.getCurrentPlanName
(PModelHandle accModel) Fetches the plan name of the given accModelReturns description of the given poid.String[]
getMutuallyExclusiveDeals
(PModelHandle dealHandle) Returns an array of mutually exclusive deals of the given dealHandle.Returns name of the given poidgetPlanOfferingForUpgrade
(PModelHandle planHandle, SparseArray dealsToBePurchased, PModelHandle fromPlanHandle) Returns the plan data for upgrade operation.getPoidFromPrerequisiteMap
(PModelHandle dealHandle, String dealName) Retrieves poid from Prerequiste Map.getPrerequisites
(PModelHandle dealHandle, PModelHandle planModelHandle, PModelHandle accModel) Returns an array of prerequisite deals of the given dealHandle.getProductsForCurrentAccount
(PModelHandle accModel) Returns PIN_FLD_PRODUCTS of the given accModelgetProductsForDeal
(Poid dealPoid) Returns PIN_FLD_PRODUCTS of the given dealPoidReturns the plan modelhandles of the accModel.getUpdatedPlanOffering
(PModelHandle planHandle, SparseArray dealsToBePurchased) Returns the updated plan offering with purchase flags set for whatever deals/sevices which are selected on plan options page.getUpdatedPlanOfferingForChangeOption
(PModelHandle subscribedPlan, SparseArray selectedDeals) Returns the plan data for change options offering.boolean
isAnyServiceCustReqd
(SparseArray deals) Decides if any service corresponding to any of the specified deals needs service customization.boolean
isCSRPlan
(PModelHandle plan) Checks if the given plan has /service/admin_client in it.boolean
isMappingRequired
(PModelHandle curPlan, PModelHandle toPlan) Returns true if mapping is required.boolean
isServiceCustReqdForTransition
(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) Checks if the customization is required for any service during transition operation.boolean
isServicePurchasedInFromPlan
(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) Checks if the service type represented by toServiceHandle is purchased in fromPlan.readObject
(Poid poid) Reads the object pointed by poidupdateDealHandleWithServiceObj
(PModelHandle dealHandle, PModelHandle serviceHandle) Updates the deal handle with service Obj info.validateDealDependency
(SparseArray dealsArray, PModelHandle accModel, boolean isAcctCreation) Validates the deals in the given dealsArray.
-
Method Details
-
getSubscribedPlansForCurrentAccount
Returns the plan modelhandles of the accModel. calls GET_SUBSCRIBED_PLANS to fetch this information.- Parameters:
accModel
- account model whose plans information need to be fetched.- Returns:
- array of plan modelhandles of the specified accModel
- Throws:
RemoteException
-
getCurrentPlanName
Fetches the plan name of the given accModel- Returns:
- plan name
- Throws:
RemoteException
-
getProductsForCurrentAccount
Returns PIN_FLD_PRODUCTS of the given accModel- Returns:
- a modelhandle of PIN_FLD_PRODUCTS
- Throws:
RemoteException
-
getName
Returns name of the given poid- Parameters:
poid
- poid whose name is needed- Returns:
- name
- Throws:
RemoteException
-
getDescr
Returns description of the given poid.- Parameters:
poid
-- Returns:
- Throws:
RemoteException
-
getProductsForDeal
Returns PIN_FLD_PRODUCTS of the given dealPoid- Parameters:
dealPoid
- dealpoid- Returns:
- products of the given deal
- Throws:
RemoteException
-
getPrerequisites
SparseArray getPrerequisites(PModelHandle dealHandle, PModelHandle planModelHandle, PModelHandle accModel) throws RemoteException Returns an array of prerequisite deals of the given dealHandle. Uses planModelHandle and accModel to fetch this information.- Parameters:
dealHandle
-- Returns:
- an array of prerequisite deals
- Throws:
RemoteException
-
getMutuallyExclusiveDeals
Returns an array of mutually exclusive deals of the given dealHandle.- Parameters:
dealHandle
- deal whose mutually exclusive deals are required- Returns:
- array of mutually exclusive deals
- Throws:
RemoteException
-
validateDealDependency
Object validateDealDependency(SparseArray dealsArray, PModelHandle accModel, boolean isAcctCreation) throws RemoteException Validates the deals in the given dealsArray. calls BILL_VALIDATE_DEAL_DEPENDENCY opcode to do this validation.- Parameters:
dealsArray
- array containing the deals to be validated.- Returns:
- an instance of
DealDependencyErrorData
containing the output of the opcode. In case of an exception returns CustomerValErrorData. - Throws:
RemoteException
-
updateDealHandleWithServiceObj
PModelHandle updateDealHandleWithServiceObj(PModelHandle dealHandle, PModelHandle serviceHandle) throws RemoteException Updates the deal handle with service Obj info.- Parameters:
dealHandle
-serviceHandle
-- Returns:
- Throws:
RemoteException
-
getUpdatedPlanOffering
PModelHandle getUpdatedPlanOffering(PModelHandle planHandle, SparseArray dealsToBePurchased) throws RemoteException Returns the updated plan offering with purchase flags set for whatever deals/sevices which are selected on plan options page.- Parameters:
planHandle
-dealsToBePurchased
-- Returns:
- Throws:
RemoteException
-
appendSelectedOptionalDeals
void appendSelectedOptionalDeals(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) throws RemoteException Appends the optionalDeals to the planHandle to be used for collecting data.- Parameters:
planHandle
- - model handle associated with collect data event.optionalDeals
-curPlan
- - current plan model handle- Throws:
RemoteException
-
getPoidFromPrerequisiteMap
PModelHandle getPoidFromPrerequisiteMap(PModelHandle dealHandle, String dealName) throws RemoteException Retrieves poid from Prerequiste Map.- Parameters:
dealHandle
-dealName
-- Returns:
- Throws:
RemoteException
-
isCSRPlan
Checks if the given plan has /service/admin_client in it.- Parameters:
plan
-- Returns:
- true if the specified plan is a CSR plan.
- Throws:
RemoteException
-
collectDataForUpgrade
Appends selected setvices data to the model flist.- Parameters:
inMH
- Modelhandle of collect data eventtoPlan
- ModelHandle of the plan to which transition is being done- Throws:
RemoteException
-
isMappingRequired
Returns true if mapping is required.- Parameters:
curPlan
- Current plan from which we want to upgradetoPlan
- new plan to which we are upgrading- Returns:
- true if mapping is required else false.
- Throws:
RemoteException
-
getUpdatedPlanOfferingForChangeOption
PModelHandle getUpdatedPlanOfferingForChangeOption(PModelHandle subscribedPlan, SparseArray selectedDeals) throws RemoteException Returns the plan data for change options offering.- Parameters:
subscribedPlan
-selectedDeals
-- Returns:
- Throws:
RemoteException
-
getPlanOfferingForUpgrade
PModelHandle getPlanOfferingForUpgrade(PModelHandle planHandle, SparseArray dealsToBePurchased, PModelHandle fromPlanHandle) throws RemoteException Returns the plan data for upgrade operation.- Parameters:
planHandle
- - the plan handle of the plan to which upgrade is happening.dealsToBePurchased
- - deals which need to be purchasedfromPlanHandle
- - The from plan from which upgrade is happening.- Throws:
RemoteException
-
readObject
Reads the object pointed by poid- Parameters:
poid
-- Returns:
- the flist containing the object details
- Throws:
RemoteException
-
isAnyServiceCustReqd
Decides if any service corresponding to any of the specified deals needs service customization.- Parameters:
deals
- contains the deal model handles- Returns:
- true if service of any of the deals requires service customization
- Throws:
RemoteException
-
isServicePurchasedInFromPlan
boolean isServicePurchasedInFromPlan(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException Checks if the service type represented by toServiceHandle is purchased in fromPlan.- Parameters:
fromPlanHandle
-toServiceHandle
-- Returns:
- Throws:
RemoteException
-
isServiceCustReqdForTransition
boolean isServiceCustReqdForTransition(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException Checks if the customization is required for any service during transition operation.- Parameters:
fromPlanHandle
- the plan that the account currently owns.toServiceHandle
- the plan to which transition is being happening.- Returns:
- boolean indicating service customization is required or not
- Throws:
RemoteException
-