Package com.portal.app.ccare.comp
Class PNewServicePageBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PNewServicePageBeanImpl
- All Implemented Interfaces:
PNewServicePageBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PNewServicePageBeanImpl
extends PIAComponentCollectionBean
implements PNewServicePageBean
- 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
appendLoginData
(PModelHandle event, PModelHandle loginModelHandle) Appends the login info from loginModelHandle to event Also appends the device info, if associated and the Inherited info, if entered, to eventvoid
collectLoginInfo
(PModelHandle serviceModel, PModelHandle loginInfo, PModelHandle origMH) Collects login and extended attributes info and append the whole service info to origMHvoid
convertModelHandleForUpgrade
(PModelHandle origMH, PModelHandle servicesAttrInfo) Appends the login info from servicesAttrInfo to origMHThis method is used for retrieving the services related to selected optional deals in purchase panle for change options.Converts input plan model handle from Infranet into a format which is expected by PIASpecSpreadsheet.getModelHandleForPurchasedServices
(PModelHandle origMH, PModelHandle fromPlanMH, boolean isRequired) Returns the clone of origMH with required dealsgetServiceID
(PModelHandle handle) retrieves the service id from the PModelHandle passedRetrieves the model indexes for all the services.boolean
isCSRPlan
(PModelHandle plan) Returns true if the given plan handle contains /service/admin_client service in itMethods 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
-
PNewServicePageBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
getModelHandleForPurchasedServices
Converts input plan model handle from Infranet into a format which is expected by PIASpecSpreadsheet. For every product, a correspond service and deal gets created in order for the table to display each listed product.- Specified by:
getModelHandleForPurchasedServices
in interfacePNewServicePageBean
- Parameters:
origMH
-planMH
- plan model handle retrieved from Infranet.includeNonProd
- boolean flag to indicate whether to include services that do not contain products.- Returns:
- PModelHandle that contains equivalent data specific for PIASpecSpreadsheet.
- Throws:
RemoteException
-
getModelHandleForPurchasedServices
public PModelHandle getModelHandleForPurchasedServices(PModelHandle origMH, PModelHandle fromPlanMH, boolean isRequired) throws RemoteException Returns the clone of origMH with required deals- Specified by:
getModelHandleForPurchasedServices
in interfacePNewServicePageBean
- Parameters:
origMH
- PModelHandlefromPlanMH
-isRequired
- boolean- Returns:
- PModelHandle
- Throws:
RemoteException
-
getTableModelIndexesToServiceIndexMap
Retrieves the model indexes for all the services. The data is stored using the modelarray indexes as the key and service index as a value.- Specified by:
getTableModelIndexesToServiceIndexMap
in interfacePNewServicePageBean
- Returns:
- the model indexes information
- Throws:
RemoteException
-
isCSRPlan
Returns true if the given plan handle contains /service/admin_client service in it- Specified by:
isCSRPlan
in interfacePNewServicePageBean
- Parameters:
plan
- plan handle- Returns:
- true if the specified plan is a CSR plan.
- Throws:
RemoteException
-
getModelHandleForPurchasedDeals
This method is used for retrieving the services related to selected optional deals in purchase panle for change options.- Specified by:
getModelHandleForPurchasedDeals
in interfacePNewServicePageBean
- Parameters:
origMH
-- Returns:
- Throws:
RemoteException
-
convertModelHandleForUpgrade
public void convertModelHandleForUpgrade(PModelHandle origMH, PModelHandle servicesAttrInfo) throws RemoteException Appends the login info from servicesAttrInfo to origMH- Specified by:
convertModelHandleForUpgrade
in interfacePNewServicePageBean
- Parameters:
origMH
- Collect Data modelhandle to which login data need to be appendedservicesAttrInfo
- servicesAttrInfo is an array of PIN_FLD_SERVICES containing the login information of the services in the PNewServicePage- Throws:
RemoteException
-
collectLoginInfo
public void collectLoginInfo(PModelHandle serviceModel, PModelHandle loginInfo, PModelHandle origMH) throws RemoteException Collects login and extended attributes info and append the whole service info to origMH- Specified by:
collectLoginInfo
in interfacePNewServicePageBean
- Parameters:
serviceModel
- PModelHandle containing the service infologinInfo
- PModelHandle containing the login and other extended attributes for the serviceModelorigMH
- PModelHandle to which the data in serviceModel and loginInfo need to be appended as a whole- Throws:
RemoteException
-
appendLoginData
public void appendLoginData(PModelHandle event, PModelHandle loginModelHandle) throws RemoteException Appends the login info from loginModelHandle to event Also appends the device info, if associated and the Inherited info, if entered, to event- Specified by:
appendLoginData
in interfacePNewServicePageBean
- Parameters:
event
- Collect Data modelhandle to which data needs to be appendedloginModelHandle
- contains the login information, device information and inherited information of the services in the PNewServicePage- Throws:
RemoteException
-
getServiceID
Description copied from interface:PNewServicePageBean
retrieves the service id from the PModelHandle passed- Specified by:
getServiceID
in interfacePNewServicePageBean
- Parameters:
handle
-- Returns:
- Throws:
RemoteException
-