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.SEARCH
opcode. - Changes the login/password/status of the user selected service(s).
- Calls the
PortalOp.CUST_SET_PASSWORD
,CUST_SET_LOGIN
, andCUST_SET_STATUS
opcodes.
- 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.SEARCH
opcode 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 BASSwing
clients.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_STATUS
opcodes to save changes to the login, password, and status.void
services
(PModelHandle mH, ResourceBundle bundle) Calls thePortalOp.SEARCH
opcode to get the list of services an account has subscribed to.void
setAccountStatus
(Integer status) Sets the account status for the user-selected service.void
setConfirmation
(String sPassword) Sets the input data/hidden variableConfirmPassword
with the value of the customer's password verification for the user-selected service.void
Sets the input data/hidden variableServiceLogin
with the value of the customer's login for the user-selected service.void
setPassword
(String sPassword) Sets the input data/hidden variableServicePassword
with the value of the customer's password for the user-selected service.protected void
setServices
(String sResult) Sets a specific service in a list of subscribed services.protected void
setServiceStatus
(Integer sResult) Adds a status for a specific service to a list of status values for the subscribed services.void
Sets the service status for the user-selected service.void
Used only for BASSwing
clients.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.SEARCH
opcode to retrieve service data.- Throws:
RemoteException
-
-
Method Details
-
setLogin
Sets the input data/hidden variableServiceLogin
with the value of the customer's login for the user-selected service.- Specified by:
setLogin
in interfacePServicesBean
- Parameters:
sLogin
- aString
with the customer's login value- Throws:
RemoteException
-
setPassword
Sets the input data/hidden variableServicePassword
with the value of the customer's password for the user-selected service.- Specified by:
setPassword
in interfacePServicesBean
- Parameters:
sPassword
- aString
with the customer's password value- Throws:
RemoteException
-
setConfirmation
Sets the input data/hidden variableConfirmPassword
with the value of the customer's password verification for the user-selected service.- Specified by:
setConfirmation
in interfacePServicesBean
- Parameters:
sPassword
- aString
with the customer's password verification value- Throws:
RemoteException
-
setStatus
Sets the service status for the user-selected service.- Specified by:
setStatus
in interfacePServicesBean
- Parameters:
status
- anInteger
value 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:
setAccountStatus
in interfacePServicesBean
- Parameters:
status
- anInteger
value 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:
getServices
in interfacePServicesBean
- Returns:
- An array
List
of subscribed services, or null. - Throws:
RemoteException
-
getServices
Gets a specific service from a list of subscribed services.- Specified by:
getServices
in interfacePServicesBean
- Parameters:
index
- the index of the service to retrieve- Returns:
- A
String
description 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:
getServiceStatus
in interfacePServicesBean
- Parameters:
index
- the index of the service to retrieve status for- Returns:
- An
Integer
that 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
- anInteger
that 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 BASSwing
clients. Default behavior in this case is to do nothing.- Specified by:
update
in 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 BASSwing
clients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataFor
in 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:
getModel
in interfacePServicesBean
- Parameters:
index
- the location of the model to retrieve- Returns:
- The service's
PModelHandle
.
-
services
Calls thePortalOp.SEARCH
opcode to get the list of services an account has subscribed to.- Parameters:
mH
- the account'sPModelHandle
bundle
- 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_STATUS
opcodes to save changes to the login, password, and status.- Specified by:
save
in interfacePServicesBean
- Parameters:
mH
- the account'sPModelHandle
index
- 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
-