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 TypeMethodDescriptionvoidappendSelectedOptionalDeals(PModelHandle planHandle, SparseArray optionalDeals, PModelHandle curPlan) Appends the optionalDeals to the planHandle to be used for collecting data.voidcollectDataForUpgrade(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.booleanisAnyServiceCustReqd(SparseArray deals) Decides if any service corresponding to any of the specified deals needs service customization.booleanisCSRPlan(PModelHandle plan) Checks if the given plan has /service/admin_client in it.booleanisMappingRequired(PModelHandle curPlan, PModelHandle transitionablePlan) Returns true if mapping is required.booleanisServiceCustReqdForTransition(PModelHandle fromPlanHandle, PModelHandle toServiceHandle) Checks if the customization is required for any service during transition operation.booleanisServicePurchasedInFromPlan(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, updateMethods 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, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSubscribedPlansForCurrentAccountin 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:
getCurrentPlanNamein interfacePPlanOptionsPageBean- Returns:
- plan name
- Throws:
RemoteException
-
getProductsForCurrentAccount
Returns PIN_FLD_PRODUCTS of the given accModel- Specified by:
getProductsForCurrentAccountin interfacePPlanOptionsPageBean- Returns:
- a modelhandle of PIN_FLD_PRODUCTS
- Throws:
RemoteException
-
getName
Returns name of the given poid- Specified by:
getNamein interfacePPlanOptionsPageBean- Parameters:
poid- poid whose name is needed- Returns:
- name
- Throws:
RemoteException
-
getDescr
Returns description of the given poid.- Specified by:
getDescrin interfacePPlanOptionsPageBean- Parameters:
poid-- Returns:
- Throws:
RemoteException
-
getProductsForDeal
Returns PIN_FLD_PRODUCTS of the given dealPoid- Specified by:
getProductsForDealin 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:
getPrerequisitesin 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:
getPoidFromPrerequisiteMapin 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:
validateDealDependencyin interfacePPlanOptionsPageBean- Parameters:
dealsArray- array containing the deals to be validated.- Returns:
- an instance of
DealDependencyErrorDatacontaining 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:
getMutuallyExclusiveDealsin 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:
readObjectin 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:
getPlanOfferingForUpgradein 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:
updateDealHandleWithServiceObjin 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:
getUpdatedPlanOfferingin 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:
appendSelectedOptionalDealsin 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:
isCSRPlanin 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:
collectDataForUpgradein 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:
isMappingRequiredin 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:
getUpdatedPlanOfferingForChangeOptionin interfacePPlanOptionsPageBean- Parameters:
subscribedPlan-selectedDeals-- Returns:
- Throws:
RemoteException
-
isAnyServiceCustReqd
Decides if any service corresponding to any of the specified deals needs service customization.- Specified by:
isAnyServiceCustReqdin 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:PPlanOptionsPageBeanChecks if the service type represented by toServiceHandle is purchased in fromPlan.- Specified by:
isServicePurchasedInFromPlanin 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:
isServiceCustReqdForTransitionin 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
-