Package com.portal.web.comp
Class PServicesBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PServicesBeanImpl
- All Implemented Interfaces:
PControllerBean,PServicesBean,Serializable,Remote,Unreferenced
Controller class for the service/package panel. Performs the following
functions:
- Implements the display of the list of services the user subscribed to.
- Calls the
PortalOp.SEARCHopcode. - Changes the login/password/status of the user selected service(s).
- Calls the
PortalOp.CUST_SET_PASSWORD,CUST_SET_LOGIN, andCUST_SET_STATUSopcodes.
- Version:
- %version: 11 % %date_modified: Mon Jan 21 17:22:15 2002 %
- Author:
- sujata
- 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
ConstructorsConstructorDescriptionSaves changes to services (login/password/services) and uses a customizedPortalOp.SEARCHopcode to retrieve service data. -
Method Summary
Modifier and TypeMethodDescriptiongetModel(int index) Returns the model associated with the service at the specified index.getSelectionDataFor(String dataItem, int index) Used only for BASSwingclients.Gets a list of subscribed services for the account.getServices(int index) Gets a specific service from a list of subscribed services.getServiceStatus(int index) Gets the status of a specific service.com.portal.app.util.CustomerValErrorData[]save(PModelHandle mH, int index) Calls thePortalOp.CUST_SET_PASSWORD,CUST_SET_LOGIN, andCUST_SET_STATUSopcodes to save changes to the login, password, and status.voidservices(PModelHandle mH, ResourceBundle bundle) Calls thePortalOp.SEARCHopcode to get the list of services an account has subscribed to.voidsetAccountStatus(Integer status) Sets the account status for the user-selected service.voidsetConfirmation(String sPassword) Sets the input data/hidden variableConfirmPasswordwith the value of the customer's password verification for the user-selected service.voidSets the input data/hidden variableServiceLoginwith the value of the customer's login for the user-selected service.voidsetPassword(String sPassword) Sets the input data/hidden variableServicePasswordwith the value of the customer's password for the user-selected service.protected voidsetServices(String sResult) Sets a specific service in a list of subscribed services.protected voidsetServiceStatus(Integer sResult) Adds a status for a specific service to a list of status values for the subscribed services.voidSets the service status for the user-selected service.voidUsed only for BASSwingclients.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
-
Constructor Details
-
PServicesBeanImpl
Saves changes to services (login/password/services) and uses a customizedPortalOp.SEARCHopcode to retrieve service data.- Throws:
RemoteException
-
-
Method Details
-
setLogin
Sets the input data/hidden variableServiceLoginwith the value of the customer's login for the user-selected service.- Specified by:
setLoginin interfacePServicesBean- Parameters:
sLogin- aStringwith the customer's login value- Throws:
RemoteException
-
setPassword
Sets the input data/hidden variableServicePasswordwith the value of the customer's password for the user-selected service.- Specified by:
setPasswordin interfacePServicesBean- Parameters:
sPassword- aStringwith the customer's password value- Throws:
RemoteException
-
setConfirmation
Sets the input data/hidden variableConfirmPasswordwith the value of the customer's password verification for the user-selected service.- Specified by:
setConfirmationin interfacePServicesBean- Parameters:
sPassword- aStringwith the customer's password verification value- Throws:
RemoteException
-
setStatus
Sets the service status for the user-selected service.- Specified by:
setStatusin interfacePServicesBean- Parameters:
status- anIntegervalue for the service status, one of:- 0 (DEFUNCT)
- 10100 (ACTIVE)
- 10102 (INACTIVE)
- 10103 (CLOSED)
- 10104 (NOT_SET)
- Throws:
RemoteException- See Also:
-
setAccountStatus
Sets the account status for the user-selected service.- Specified by:
setAccountStatusin interfacePServicesBean- Parameters:
status- anIntegervalue for the account status, one of:- 0 (DEFUNCT)
- 10100 (ACTIVE)
- 10102 (INACTIVE)
- 10103 (CLOSED)
- 10104 (NOT_SET)
- Throws:
RemoteException- See Also:
-
getServices
Gets a list of subscribed services for the account.- Specified by:
getServicesin interfacePServicesBean- Returns:
- An array
Listof subscribed services, or null. - Throws:
RemoteException
-
getServices
Gets a specific service from a list of subscribed services.- Specified by:
getServicesin interfacePServicesBean- Parameters:
index- the index of the service to retrieve- Returns:
- A
Stringdescription of the service associated with that index. - Throws:
RemoteException
-
setServices
Sets a specific service in a list of subscribed services.- Parameters:
sResult- the service to add
-
getServiceStatus
Gets the status of a specific service.- Specified by:
getServiceStatusin interfacePServicesBean- Parameters:
index- the index of the service to retrieve status for- Returns:
- An
Integerthat indicates the status for the selected service. one of:- 0 (DEFUNCT)
- 10100 (ACTIVE)
- 10102 (INACTIVE)
- 10103 (CLOSED)
- 10104 (NOT_SET)
- Throws:
RemoteException- See Also:
-
setServiceStatus
Adds a status for a specific service to a list of status values for the subscribed services.- Parameters:
sResult- anIntegerthat indicates the service status to add, one of:- 0 (DEFUNCT)
- 10100 (ACTIVE)
- 10102 (INACTIVE)
- 10103 (CLOSED)
- 10104 (NOT_SET)
- See Also:
-
update
Used only for BASSwingclients. Default behavior in this case is to do nothing.- Specified by:
updatein classPControllerImpl- Parameters:
reason- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL,UPDATE_PROPERTY,UPDATE_MODEL_CHANGE, orUPDATE_CLIENT)data- the data associated withupdate
-
getSelectionDataFor
Used only for BASSwingclients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataForin interfacePControllerBean- Parameters:
dataItem- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent.index- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-
getModel
Returns the model associated with the service at the specified index.- Specified by:
getModelin interfacePServicesBean- Parameters:
index- the location of the model to retrieve- Returns:
- The service's
PModelHandle.
-
services
Calls thePortalOp.SEARCHopcode to get the list of services an account has subscribed to.- Parameters:
mH- the account'sPModelHandlebundle- the resource bundle- Throws:
RemoteException- thrown for null contexts, service arrays, and service POIDs, as well as Infranet errors.
-
save
public com.portal.app.util.CustomerValErrorData[] save(PModelHandle mH, int index) throws RemoteException Calls thePortalOp.CUST_SET_PASSWORD,CUST_SET_LOGIN, andCUST_SET_STATUSopcodes to save changes to the login, password, and status.- Specified by:
savein interfacePServicesBean- Parameters:
mH- the account'sPModelHandleindex- index of the selected service to save- Returns:
- An array of any errors encountered during the save operation.
- Throws:
RemoteException- thrown for null contexts or Infranet errors
-