Package com.portal.app.ccare.comp
Class PPlanOptionsPageBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PPlanOptionsPageBeanImpl
- All Implemented Interfaces:
PPlanOptionsPageBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PPlanOptionsPageBeanImpl
extends PIAComponentCollectionBean
implements PPlanOptionsPageBean
Controller class for purchase offering of a service or a deal.
- Version:
- %version: 22 % %date_modified: Wed Dec 05 15:53:21 2001 %
- Author:
- Radhika Tirumalasetty
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
Constructors -
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 dealPoidgetSubscribedPlansForCurrentAccount
(PModelHandle acctModel) Returns 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 transitionablePlan) 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.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, update
Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PPlanOptionsPageBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
getSubscribedPlansForCurrentAccount
public PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle acctModel) throws RemoteException Returns the plan modelhandles of the accModel. calls GET_SUBSCRIBED_PLANS to fetch this information.- Specified by:
getSubscribedPlansForCurrentAccount
in interfacePPlanOptionsPageBean
- Parameters:
acctModel
- account model whose plans information need to be fetched.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- Specified by:
getCurrentPlanName
in interfacePPlanOptionsPageBean
- Returns:
- plan name
- Throws:
RemoteException
-
getProductsForCurrentAccount
Returns PIN_FLD_PRODUCTS of the given accModel- Specified by:
getProductsForCurrentAccount
in interfacePPlanOptionsPageBean
- Returns:
- a modelhandle of PIN_FLD_PRODUCTS
- Throws:
RemoteException
-
getName
Returns name of the given poid- Specified by:
getName
in interfacePPlanOptionsPageBean
- Parameters:
poid
- poid whose name is needed- Returns:
- name
- Throws:
RemoteException
-
getDescr
Returns description of the given poid.- Specified by:
getDescr
in interfacePPlanOptionsPageBean
- Parameters:
poid
-- Returns:
- Throws:
RemoteException
-
getProductsForDeal
Returns PIN_FLD_PRODUCTS of the given dealPoid- Specified by:
getProductsForDeal
in interfacePPlanOptionsPageBean
- Parameters:
dealPoid
- dealpoid- Returns:
- products of the given deal
- Throws:
RemoteException
-
getPrerequisites
public 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.- Specified by:
getPrerequisites
in interfacePPlanOptionsPageBean
- Parameters:
dealHandle
-- Returns:
- an array of prerequisite deals
- Throws:
RemoteException
-
getPoidFromPrerequisiteMap
public PModelHandle getPoidFromPrerequisiteMap(PModelHandle dealHandle, String dealName) throws RemoteException Retrieves poid from Prerequiste Map.- Specified by:
getPoidFromPrerequisiteMap
in interfacePPlanOptionsPageBean
- Parameters:
dealHandle
-dealName
-- Returns:
- Throws:
RemoteException
-
validateDealDependency
public 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.- Specified by:
validateDealDependency
in interfacePPlanOptionsPageBean
- 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
-
getMutuallyExclusiveDeals
Returns an array of mutually exclusive deals of the given dealHandle.- Specified by:
getMutuallyExclusiveDeals
in interfacePPlanOptionsPageBean
- Parameters:
dealHandle
- deal whose mutually exclusive deals are required- Returns:
- array of mutually exclusive deals
- Throws:
RemoteException
-
readObject
Reads the object pointed by poid- Specified by:
readObject
in interfacePPlanOptionsPageBean
- Parameters:
poid
-- Returns:
- the flist containing the object details
- Throws:
RemoteException
-
getPlanOfferingForUpgrade
public PModelHandle getPlanOfferingForUpgrade(PModelHandle planHandle, SparseArray dealsToBePurchased, PModelHandle fromPlanHandle) throws RemoteException Returns the plan data for upgrade operation.- Specified by:
getPlanOfferingForUpgrade
in interfacePPlanOptionsPageBean
- 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
-
updateDealHandleWithServiceObj
public PModelHandle updateDealHandleWithServiceObj(PModelHandle dealHandle, PModelHandle serviceHandle) throws RemoteException Updates the deal handle with service Obj info.- Specified by:
updateDealHandleWithServiceObj
in interfacePPlanOptionsPageBean
- Parameters:
dealHandle
-serviceHandle
-- Returns:
- Throws:
RemoteException
-
getUpdatedPlanOffering
public 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.- Specified by:
getUpdatedPlanOffering
in interfacePPlanOptionsPageBean
- Parameters:
planHandle
-dealsToBePurchased
-- Returns:
- Throws:
RemoteException
-
appendSelectedOptionalDeals
public void appendSelectedOptionalDeals(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) throws RemoteException Appends the optionalDeals to the planHandle to be used for collecting data.- Specified by:
appendSelectedOptionalDeals
in interfacePPlanOptionsPageBean
- Parameters:
planHandle
- - model handle associated with collect data event.optionalDeals
-curPlan
- - current plan model handle- Throws:
RemoteException
-
isCSRPlan
Checks if the given plan has /service/admin_client in it.- Specified by:
isCSRPlan
in interfacePPlanOptionsPageBean
- Parameters:
plan
-- Returns:
- true if the specified plan is a CSR plan.
- Throws:
RemoteException
-
collectDataForUpgrade
Appends selected setvices data to the model flist.- Specified by:
collectDataForUpgrade
in interfacePPlanOptionsPageBean
- Parameters:
inMH
- Modelhandle of collect data eventtoPlan
- ModelHandle of the plan to which transition is being done- Throws:
RemoteException
-
isMappingRequired
public boolean isMappingRequired(PModelHandle curPlan, PModelHandle transitionablePlan) throws RemoteException Returns true if mapping is required.- Specified by:
isMappingRequired
in interfacePPlanOptionsPageBean
- Parameters:
curPlan
- Current plan from which we want to upgradetransitionablePlan
- new plan to which we are upgradingtoPlan
- new plan to which we are upgrading- Returns:
- true if mapping is required else false.
- Throws:
RemoteException
-
getUpdatedPlanOfferingForChangeOption
public PModelHandle getUpdatedPlanOfferingForChangeOption(PModelHandle subscribedPlan, SparseArray selectedDeals) throws RemoteException Returns the plan data for change options offering.- Specified by:
getUpdatedPlanOfferingForChangeOption
in interfacePPlanOptionsPageBean
- Parameters:
subscribedPlan
-selectedDeals
-- Returns:
- Throws:
RemoteException
-
isAnyServiceCustReqd
Decides if any service corresponding to any of the specified deals needs service customization.- Specified by:
isAnyServiceCustReqd
in interfacePPlanOptionsPageBean
- Parameters:
deals
- contains the deal model handles- Returns:
- true if service of any of the deals requires service customization
- Throws:
RemoteException
-
isServicePurchasedInFromPlan
public boolean isServicePurchasedInFromPlan(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException Description copied from interface:PPlanOptionsPageBean
Checks if the service type represented by toServiceHandle is purchased in fromPlan.- Specified by:
isServicePurchasedInFromPlan
in interfacePPlanOptionsPageBean
- Parameters:
fromPlanHandle
-toServiceHandle
-- Returns:
- Throws:
RemoteException
-
isServiceCustReqdForTransition
public boolean isServiceCustReqdForTransition(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) throws RemoteException Checks if the customization is required for any service during transition operation.- Specified by:
isServiceCustReqdForTransition
in interfacePPlanOptionsPageBean
- 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
-