Package com.portal.app.ccare.comp
Class PPurchasePanelBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PPurchasePanelBeanImpl
- All Implemented Interfaces:
PPurchasePanelBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PPurchasePanelBeanImpl
extends PIAComponentCollectionBean
implements PPurchasePanelBean
Controller class for purchase offering of a service or a deal.
- Version:
- %version: 22 % %date_modified: Wed Dec 05 15:53:21 2001 %
- Author:
- kowang
- See Also:
-
Field Summary
FieldsFields 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
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 toPlanName, int iTransitionType) The Input flist being formed is of the form 0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0 0 PIN_FLD_PROGRAM_NAME STR [0] "Customer Center" 0 PIN_FLD_TRANSITION_TYPE ENUM [0] 1 0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 43813 0 0 PIN_FLD_FROM_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1 1 PIN_FLD_PACKAGE_ID INT [0] 2 0 PIN_FLD_TO_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42980 0void
collectDataForPlanTransition
(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) The flist being formed is of the form 0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0 0 PIN_FLD_FROM_PLAN POID [0] 0.0.0.1 /plan 40980 0 0 PIN_FLD_TO_PLAN POID [0] 0.0.0.1 /plan 44436 0 0 PIN_FLD_PROGRAM_NAME STR [0] "testnap" 0 PIN_FLD_TRANSITION_TYPE ENUM [0] 0 0 PIN_FLD_SERVICES ARRAY [0] allocated 20, used 2 1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 41029 0 1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 3 2 PIN_FLD_SERVICE_ID STR [0] "Test1" 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2 2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1 3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42388 0 0 PIN_FLD_SERVICES ARRAY [1] allocated 20, used 1 1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email 43333 0 0 PIN_FLD_SERVICES ARRAY [2] allocated 20, used 1 1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 5 2 PIN_FLD_SERVICE_ID STR [0] "Test2" 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2 2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1 3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11822 0void
collectDealData
(PModelHandle inMH, int serviceIndex, String dealName) Builds PModdelHandle 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 accountGets current plan poidgetDealModelHandle
(int serviceIndex, String dealName) Retrieves a deal model handle for a specific deal when Existing Services is selected during purchase offering.protected FList
This method returns all the deals for the given service poid.getDealsForTransition
(PModelHandle currAccModel, int iTransitionType) Returns the vector of deal objects which can be transitioned to other deals.String[]
getDealsNamesStrings
(int dealIndex) Retrieves sorted names of deals from an array of Vector during purchase offering.Retrieves model handle for the specific account.Object[]
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) Gets the plans for the current account model.protected FList
This method returns all the plans for the given account poid.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 currActHandle, 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.Reads the transition types from /config/transition_type objectboolean
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 products 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
This is a method used to update Plan model handle for account creation input Flist 0 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 1 0 0 PIN_FLD_POID POID [0] 0.0.0.1 /plan 9582 0 0 PIN_FLD_SERVICES ARRAY [0] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email -1 0 1 PIN_FLD_LOGIN STR [0] "fhgf" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11886 0 1 PIN_FLD_BAL_INFO_INDEX INT [0] 0 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 0 PIN_FLD_SERVICES ARRAY [1] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 0 1 PIN_FLD_LOGIN STR [0] "gfhgfh" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 9838 0 1 PIN_FLD_BAL_INFO_INDEX INT [0] 1 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 .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
-
Field Details
-
serviceMH
-
serviceMap
-
-
Constructor Details
-
PPurchasePanelBeanImpl
Creates an instance of this controller class- Throws:
RemoteException
-
-
Method Details
-
initForExistingServices
Initialize class member for storing Existing Services related info during purchase offering.- Specified by:
initForExistingServices
in interfacePPurchasePanelBean
- Parameters:
accountMH
- model handle for the account object.- Throws:
RemoteException
-
initForExistingServices
Initialize class member for storing Existing Services related info during purchase offering.- Specified by:
initForExistingServices
in interfacePPurchasePanelBean
- Parameters:
threshold
-accountMH
- model handle for the account object.- Throws:
RemoteException
-
setService
Sets the service cache- Specified by:
setService
in interfacePPurchasePanelBean
- Parameters:
serviceMH
-
-
getDealModelHandle
Retrieves a deal model handle for a specific deal when Existing Services is selected during purchase offering.- Specified by:
getDealModelHandle
in interfacePPurchasePanelBean
- 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.- Specified by:
getPlanModelHandle
in interfacePPurchasePanelBean
- Parameters:
planName
- plan name of the specific plan.- Returns:
- PModelHandle that contains model handle for the selected plan.
- Throws:
RemoteException
-
getExistingServicesModel
Retrieves model handle for the specific account.- Specified by:
getExistingServicesModel
in interfacePPurchasePanelBean
- Returns:
- model handle of the services.
- Throws:
RemoteException
-
getServiceFlist
Retrieves Service FLists from an array .- Specified by:
getServiceFlist
in interfacePPurchasePanelBean
- Parameters:
index
- index to the array where Service FLists are stored.- Returns:
- FList which is a service FList
-
getDealsNamesStrings
Retrieves sorted names of deals from an array of Vector during purchase offering.- Specified by:
getDealsNamesStrings
in interfacePPurchasePanelBean
- 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
-
hasSponsoredProduct
public boolean hasSponsoredProduct(PModelHandle planModelHandle, ArrayList sponsoredProducts) throws RemoteException Description copied from interface:PPurchasePanelBean
This will return true if the selected plan has a product which is present in the list of the sponsored products- Specified by:
hasSponsoredProduct
in interfacePPurchasePanelBean
- Parameters:
planModelHandle
- modelHandle containing the products of the selected plansponsoredProducts
- the list of the sponsored products- Returns:
- Throws:
RemoteException
-
getPlans
This method returns all the plans for the given account poid. Override this method with custom input flist for CUST_POL_GET_PLANS.- Parameters:
in
-- Returns:
- Throws:
RemoteException
-
getDeals
This method returns all the deals for the given service poid. Override this method with custom input flist for CUST_POL_GET_DEALS.- Parameters:
in
-- Returns:
- Throws:
RemoteException
-
collectDealData
public void collectDealData(PModelHandle inMH, int serviceIndex, String dealName) throws RemoteException Builds PModdelHandle by appending the deal model handle to the input model handle during purchase offering.- Specified by:
collectDealData
in interfacePPurchasePanelBean
- 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.- Specified by:
collectBackDateData
in interfacePPurchasePanelBean
- Parameters:
inMH
- PModelHandlebackDate
-- Throws:
RemoteException
-
collectPlanData
Builds PModdelHandle by appending the plan model handle to the input model handle during purchase offering and account creation.- Specified by:
collectPlanData
in interfacePPurchasePanelBean
- Parameters:
planName
- string of the plan name..- Throws:
RemoteException
-
getPlanNamesStrings
Retrieves sorted plan names when New Services is getting selected on Purchase Panel during purchase offering or account creation.- Specified by:
getPlanNamesStrings
in interfacePPurchasePanelBean
- Returns:
- String array that contains strings of plan names.
- 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.- Specified by:
setAacAccess
in interfacePPurchasePanelBean
- 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.- Specified by:
resetAcctCreationData
in interfacePPurchasePanelBean
- 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.- Specified by:
resetPurchaseOfferingData
in interfacePPurchasePanelBean
- Throws:
RemoteException
-
getCurrentPlanName
Retrives the plan name of the current account- Specified by:
getCurrentPlanName
in interfacePPurchasePanelBean
- Throws:
RemoteException
-
isAcctHasPlan
Checks if the current account has products associated with it.- Specified by:
isAcctHasPlan
in interfacePPurchasePanelBean
- Returns:
- true if account has products else returns false. Default value is true.
- Throws:
RemoteException
-
isBestDeal
Checks if the current deal is best configured deal.- Specified by:
isBestDeal
in interfacePPurchasePanelBean
- Returns:
- true if deal is best configured else returns false
- Throws:
RemoteException
-
getInactiveReqProdNamesForCurAccount
Returns an array products which are inactive in the current account.- Specified by:
getInactiveReqProdNamesForCurAccount
in interfacePPurchasePanelBean
- Returns:
- an array products which are inactive in the current account.
- Throws:
RemoteException
-
getSubscribedPlansForCurrentAccount
public PModelHandle[] getSubscribedPlansForCurrentAccount(PModelHandle accModel) throws RemoteException Retrives the list of subscribed plans of the current account- Specified by:
getSubscribedPlansForCurrentAccount
in interfacePPurchasePanelBean
- Returns:
- PModelHandle array of subscribed plans
- Throws:
RemoteException
-
getCurrentPlanPoid
Gets current plan poid- Specified by:
getCurrentPlanPoid
in interfacePPurchasePanelBean
- Returns:
- current plan poid
- Throws:
RemoteException
-
getTransitionablePlanStrings
public Object[] getTransitionablePlanStrings(PModelHandle planHandle, int iTransitionType) throws RemoteException Returns an array of plan names which are available for transition from the current plan.- Specified by:
getTransitionablePlanStrings
in interfacePPurchasePanelBean
- 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
-
getDealsForTransition
public Vector getDealsForTransition(PModelHandle currAccModel, int iTransitionType) throws RemoteException Returns the vector of deal objects which can be transitioned to other deals.- Specified by:
getDealsForTransition
in interfacePPurchasePanelBean
- Parameters:
currAccModel
- current account modeliTransitionType
- - denotes current transition type(upgrade or downgrade or etc.,)curAccModel
- current account model- Returns:
- the vector of subscribed deal objects from the plan/plans of the given account which has transitionable deals.
- Throws:
RemoteException
-
getTransitionableDealStrings
public Object[] getTransitionableDealStrings(PModelHandle dealHandle, PModelHandle currActHandle, int iTransitionType) throws RemoteException Returns the array of transitionable deal names of the given deal.- Specified by:
getTransitionableDealStrings
in interfacePPurchasePanelBean
- Parameters:
dealHandle
-currActHandle
-iTransitionType
- Transition type such as upgrade, downgrade, red, etc.,currAcctHandle
-- Returns:
- the array of transitionable deal names of the given deal.
- Throws:
RemoteException
-
getTransitionableDealModelHandle
Returns the deal handle given the deal name.- Specified by:
getTransitionableDealModelHandle
in interfacePPurchasePanelBean
- Parameters:
name
-- Returns:
- the deal handle given the deal name.
- Throws:
RemoteException
-
getTransitionablePlanModelHandle
Returns plan model handle associated with given plan string.- Specified by:
getTransitionablePlanModelHandle
in interfacePPurchasePanelBean
- Parameters:
planName
- name of the plan- Returns:
- plan model handle associated with given plan string.
- Throws:
RemoteException
-
collectDataForPlanTransition
public void collectDataForPlanTransition(PModelHandle inMH, PModelHandle fromPlan, String planToUpgrade, PModelHandle accModel, int iTransitionType) throws RemoteException The flist being formed is of the form 0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0 0 PIN_FLD_FROM_PLAN POID [0] 0.0.0.1 /plan 40980 0 0 PIN_FLD_TO_PLAN POID [0] 0.0.0.1 /plan 44436 0 0 PIN_FLD_PROGRAM_NAME STR [0] "testnap" 0 PIN_FLD_TRANSITION_TYPE ENUM [0] 0 0 PIN_FLD_SERVICES ARRAY [0] allocated 20, used 2 1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 41029 0 1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 3 2 PIN_FLD_SERVICE_ID STR [0] "Test1" 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2 2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1 3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42388 0 0 PIN_FLD_SERVICES ARRAY [1] allocated 20, used 1 1 PIN_FLD_FROM_SERVICE SUBSTRUCT [0] allocated 20, used 1 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email 43333 0 0 PIN_FLD_SERVICES ARRAY [2] allocated 20, used 1 1 PIN_FLD_TO_SERVICE SUBSTRUCT [0] allocated 20, used 5 2 PIN_FLD_SERVICE_ID STR [0] "Test2" 2 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 2 2 PIN_FLD_DEALS ARRAY [0] allocated 20, used 1 3 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11822 0- Specified by:
collectDataForPlanTransition
in interfacePPurchasePanelBean
- 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
-
collectPlanDataForRequiredDeals
public void collectPlanDataForRequiredDeals(PModelHandle inMH, String planName) throws RemoteException Collects plan data for the required deals to be used by COMMIT_CUSTOMER.- Specified by:
collectPlanDataForRequiredDeals
in interfacePPurchasePanelBean
- Throws:
RemoteException
-
collectDataForDealTransition
public void collectDataForDealTransition(PModelHandle origModel, PModelHandle acctModel, PModelHandle fromDeal, PModelHandle serviceModel, String toPlanName, int iTransitionType) throws RemoteException The Input flist being formed is of the form 0 PIN_FLD_POID POID [0] 0.0.0.1 /account 41349 0 0 PIN_FLD_PROGRAM_NAME STR [0] "Customer Center" 0 PIN_FLD_TRANSITION_TYPE ENUM [0] 1 0 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip 43813 0 0 PIN_FLD_FROM_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1 1 PIN_FLD_PACKAGE_ID INT [0] 2 0 PIN_FLD_TO_DEAL_INFO SUBSTRUCT [0] allocated 20, used 1 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 42980 0- Specified by:
collectDataForDealTransition
in interfacePPurchasePanelBean
- Parameters:
origModel
- model associated with Collect data event.acctModel
- current account model.fromDeal
- from deal handle.serviceModel
- service model of the from deal.toPlanName
- to deal handleiTransitionType
- Transition type such as upgrade, downgrade, red, etc.,- Throws:
RemoteException
-
collectDataForChangeOption
public void collectDataForChangeOption(PModelHandle origMH, PModelHandle curAccModel, PModelHandle curPlanHandle, SparseArray dealsToBePurchased) throws RemoteException Description copied from interface:PPurchasePanelBean
Collects data for change options- Specified by:
collectDataForChangeOption
in interfacePPurchasePanelBean
- 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
Gets the plans for the current account model. Wraps each plan object in Subscribedplan object and returns these objects in a vector.- Specified by:
getPlans
in interfacePPurchasePanelBean
- Parameters:
curAccModel
-- Returns:
- subscribed plan objects
-
hasRequiredServices
public boolean hasRequiredServices(PModelHandle planHandle, boolean planOptionsFlag) throws RemoteException Returns true if plan has required deals/services.- Specified by:
hasRequiredServices
in interfacePPurchasePanelBean
- 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
Reads the transition types from /config/transition_type object- Specified by:
getTransitionTypes
in interfacePPurchasePanelBean
- Returns:
- the PModelHandle containing the content transition_type object.
- Throws:
RemoteException
-
hasPlanSubcriptionGroup
Finds out if the given plan contains subscription group- Specified by:
hasPlanSubcriptionGroup
in interfacePPurchasePanelBean
- 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- Specified by:
formBalanceGrpCurrencyMap
in interfacePPurchasePanelBean
- Parameters:
hOrig
- PModelHandle, is the orginal model handle for the selected plan- Returns:
- HashMap balancegroup index and credit limits map
- Throws:
Exception
RemoteException
-
updatePlanModelHandle
This is a method used to update Plan model handle for account creation input Flist 0 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 1 0 0 PIN_FLD_POID POID [0] 0.0.0.1 /plan 9582 0 0 PIN_FLD_SERVICES ARRAY [0] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email -1 0 1 PIN_FLD_LOGIN STR [0] "fhgf" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11886 0 1 PIN_FLD_BAL_INFO_INDEX INT [0] 0 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 0 PIN_FLD_SERVICES ARRAY [1] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 0 1 PIN_FLD_LOGIN STR [0] "gfhgfh" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 9838 0 1 PIN_FLD_BAL_INFO_INDEX INT [0] 1 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 . . . 0 PIN_FLD_DESCR STR [0] "" 0 PIN_FLD_BAL_INFO ARRAY [1] allocated 1, used 1 1 PIN_FLD_LIMIT ARRAY [840] allocated 3, used 3 2 PIN_FLD_CREDIT_LIMIT DECIMAL [0] 100 2 PIN_FLD_CREDIT_FLOOR DECIMAL [0] 0 2 PIN_FLD_CREDIT_THRESHOLDS INT [0] 0 1 PIN_FLD_LIMIT ARRAY [1000001] allocated 3, used 3 2 PIN_FLD_CREDIT_LIMIT DECIMAL [0] 100 2 PIN_FLD_CREDIT_FLOOR DECIMAL [0] 0 2 PIN_FLD_CREDIT_THRESHOLDS INT [0] 0 Output Flist is 0 PIN_FLD_ACCOUNT_OBJ POID [0] 0.0.0.1 /account 1 0 0 PIN_FLD_POID POID [0] 0.0.0.1 /plan 9582 0 0 PIN_FLD_SERVICES ARRAY [0] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/email -1 0 1 PIN_FLD_LOGIN STR [0] "fhgf" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 11886 0 1 PIN_FLD_BAL_INFO ARRAY [0] NULL 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 0 PIN_FLD_SERVICES ARRAY [1] allocated 6, used 6 1 PIN_FLD_SERVICE_OBJ POID [0] 0.0.0.1 /service/ip -1 0 1 PIN_FLD_LOGIN STR [0] "gfhgfh" 1 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.1 /deal 9838 0 1 PIN_FLD_BAL_INFO ARRAY [1] NULL 1 PIN_FLD_DEALS ARRAY [0] allocated 13, used 13 0 PIN_FLD_DEAL_OBJ POID [0] 0.0.0.0 / 0 0 . . . 0 PIN_FLD_BAL_INFO ARRAY [0] allocated 1, used 1 1 PIN_FLD_POID POID [0] 0.0.0.1 /balance_group -1 0 0 PIN_FLD_BAL_INFO ARRAY [1] allocated 2, used 2 1 PIN_FLD_POID POID [0] 0.0.0.1 /balance_group -1 0 1 PIN_FLD_LIMIT ARRAY [840] allocated 3, used 3 2 PIN_FLD_CREDIT_LIMIT DECIMAL [0] 100 2 PIN_FLD_CREDIT_FLOOR DECIMAL [0] 0 2 PIN_FLD_CREDIT_THRESHOLDS INT [0] 0 1 PIN_FLD_LIMIT ARRAY [1000001] allocated 3, used 3 2 PIN_FLD_CREDIT_LIMIT DECIMAL [0] 100 2 PIN_FLD_CREDIT_FLOOR DECIMAL [0] 0 2 PIN_FLD_CREDIT_THRESHOLDS INT [0] 0 0 PIN_FLD_BAL_INFO ARRAY [1] allocated 2, used 2 1 PIN_FLD_POID POID [0] 0.0.0.1 /balance_group -1 0 1 PIN_FLD_LIMIT ARRAY [840] allocated 3, used 3 2 PIN_FLD_CREDIT_LIMIT DECIMAL [0] 100 2 PIN_FLD_CREDIT_FLOOR DECIMAL [0] 0 2 PIN_FLD_CREDIT_THRESHOLDS INT [0] 0- Specified by:
updatePlanModelHandle
in interfacePPurchasePanelBean
- Parameters:
pmh
-- 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.- Specified by:
getLoginIDs
in interfacePPurchasePanelBean
- Parameters:
serviceModelHandle
-- Returns:
- Object[]
- Throws:
RemoteException
-