Package com.portal.app.ccare.comp
Class PChangeStatusBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PChangeStatusBeanImpl
- All Implemented Interfaces:
PChangeStatusBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
Controller class for account and service status changes.
This class calls the PortalOp.SEARCH to find all the services that
the account has and return the services list model handle to the client.
PortalOp.CUST_UPDATE_SERVICES is used to commit the status changes for
the account or the services.
- 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 TypeMethodDescriptiongetCurrentAccountStatus(PModelHandle handle) Get current account statusgetReasonCodesForStatus(int iStatus, Locale l) Get reason codes list for the iStatus type and for the localegetServiceLifeCycleState(Poid serv) get the life cycle obj for the servicegetServiceModel(PModelHandle hAccount, boolean showService) Get the services list model for the account setModelHandle calls this function to retrive the services list model handle.intReturns the service count.retrieveServices(PModelHandle hAccount, boolean showService) This method retrieves the services for the passed account model handle.save(PModelHandle hSave) Commit the new status to Portal.protected PModelHandlesearchServices(PModelHandle hAccount, PCachedContext conn, FldResults fResults, Poid mAccountPoid, int threshold, boolean showService) Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.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
-
Field Details
-
intServicesCount
protected int intServicesCount -
pmhSelectedServices
-
-
Constructor Details
-
PChangeStatusBeanImpl
Creates an instance of this controller class- Throws:
RemoteException
-
-
Method Details
-
retrieveServices
This method retrieves the services for the passed account model handle.- Specified by:
retrieveServicesin interfacePChangeStatusBean- Parameters:
hAccount-showService- if this is true, then only services will be added in the drop down.- Returns:
- PModelHandle
-
searchServices
protected PModelHandle searchServices(PModelHandle hAccount, PCachedContext conn, FldResults fResults, Poid mAccountPoid, int threshold, boolean showService) throws EBufException Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.- Parameters:
hAccount- account poid.conn- PCachedContext instancefResults- FldResults instancemAccountPoid- Poidthreshold- service search thresholdshowService- boolean- Returns:
- PModelHandle
- Throws:
EBufException
-
getServiceModel
public PModelHandle getServiceModel(PModelHandle hAccount, boolean showService) throws RemoteException Get the services list model for the account setModelHandle calls this function to retrive the services list model handle. "the account" is also included in the services list. Used getType to distinguish between account and services This method currently uses search opcode 235 to retrieve the services for the given account.- Specified by:
getServiceModelin interfacePChangeStatusBean- Parameters:
hAccount-showService-- Throws:
RemoteException
-
getServiceLifeCycleState
get the life cycle obj for the service- Specified by:
getServiceLifeCycleStatein interfacePChangeStatusBean- Throws:
RemoteException
-
getCurrentAccountStatus
Get current account status- Specified by:
getCurrentAccountStatusin interfacePChangeStatusBean- Parameters:
handle-- Throws:
RemoteException
-
getReasonCodesForStatus
Get reason codes list for the iStatus type and for the locale- Specified by:
getReasonCodesForStatusin interfacePChangeStatusBean- Parameters:
iStatus-l-- Throws:
RemoteException
-
save
Commit the new status to Portal. Depended on the hSave there might be two type of change status: 1. account status 2. services status. if the FldPoid is the account, then everything is good and ready to go. if the FldPoid is a service then make FldPoid to FldServiceObj and stick in an account poid as the FldPoid.- Specified by:
savein interfacePChangeStatusBean- Parameters:
hSave-- Throws:
RemoteException
-
getServicesCount
public int getServicesCount()Returns the service count.- Specified by:
getServicesCountin interfacePChangeStatusBean- Returns:
-