public class PServicesBeanImpl extends PControllerImpl implements PServicesBean
PortalOp.SEARCH
opcode.PortalOp.CUST_SET_PASSWORD
, CUST_SET_LOGIN
,
and CUST_SET_STATUS
opcodes.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PServicesBeanImpl()
Saves changes to services (login/password/services) and
uses a customized
PortalOp.SEARCH opcode to retrieve service data. |
Modifier and Type | Method and Description |
---|---|
PModelHandle |
getModel(int index)
Returns the model associated with the service at the specified index.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Used only for BAS
Swing clients. |
List |
getServices()
Gets a list of subscribed services for the account.
|
String |
getServices(int index)
Gets a specific service from a list of subscribed services.
|
Integer |
getServiceStatus(int index)
Gets the status of a specific service.
|
com.portal.app.util.CustomerValErrorData[] |
save(PModelHandle mH,
int index)
Calls the
PortalOp.CUST_SET_PASSWORD , CUST_SET_LOGIN ,
and CUST_SET_STATUS opcodes to save changes to the login, password,
and status. |
void |
services(PModelHandle mH,
ResourceBundle bundle)
Calls the
PortalOp.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 variable
ConfirmPassword
with the value of the customer's password verification
for the user-selected service. |
void |
setLogin(String sLogin)
Sets the input data/hidden variable
ServiceLogin
with the value of the customer's login for the user-selected service. |
void |
setPassword(String sPassword)
Sets the input data/hidden variable
ServicePassword
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 |
setStatus(Integer status)
Sets the service status for the user-selected service.
|
void |
update(int reason,
Object data)
Used only for BAS
Swing clients. |
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
public PServicesBeanImpl() throws RemoteException
PortalOp.SEARCH
opcode to retrieve service data.RemoteException
public void setLogin(String sLogin) throws RemoteException
ServiceLogin
with the value of the customer's login for the user-selected service.setLogin
in interface PServicesBean
sLogin
- a String
with the customer's login valueRemoteException
public void setPassword(String sPassword) throws RemoteException
ServicePassword
with the value of the customer's password for the user-selected service.setPassword
in interface PServicesBean
sPassword
- a String
with the customer's password valueRemoteException
public void setConfirmation(String sPassword) throws RemoteException
ConfirmPassword
with the value of the customer's password verification
for the user-selected service.setConfirmation
in interface PServicesBean
sPassword
- a String
with the customer's password
verification valueRemoteException
public void setStatus(Integer status) throws RemoteException
setStatus
in interface PServicesBean
status
- an Integer
value for the service status,
one of:RemoteException
com.portal.pcm.PortalEnums#PinStatus
public void setAccountStatus(Integer status) throws RemoteException
setAccountStatus
in interface PServicesBean
status
- an Integer
value for the account status,
one of:RemoteException
com.portal.pcm.PortalEnums#PinStatus
public List getServices() throws RemoteException
getServices
in interface PServicesBean
List
of subscribed services, or null.RemoteException
public String getServices(int index) throws RemoteException
getServices
in interface PServicesBean
index
- the index of the service to retrieveString
description of the service associated
with that index.RemoteException
protected void setServices(String sResult)
sResult
- the service to addpublic Integer getServiceStatus(int index) throws RemoteException
getServiceStatus
in interface PServicesBean
index
- the index of the service to retrieve status forInteger
that indicates the status for the selected service.
one of:RemoteException
com.portal.pcm.PortalEnums#PinStatus
protected void setServiceStatus(Integer sResult)
sResult
- an Integer
that indicates the service
status to add, one of:com.portal.pcm.PortalEnums#PinStatus
public void update(int reason, Object data)
Swing
clients.
Default behavior in this case is to do nothing.update
in class PControllerImpl
reason
- an integer constant that indicates the reason for the update
(UPDATE_NEW_MODEL
, UPDATE_PROPERTY
,
UPDATE_MODEL_CHANGE
, or UPDATE_CLIENT
)data
- the data associated with update
public Object getSelectionDataFor(String dataItem, int index)
Swing
clients.
Default behavior in this case is to do nothing
and return null.getSelectionDataFor
in interface PControllerBean
dataItem
- the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent
.index
- an optional index into an array data itempublic PModelHandle getModel(int index)
getModel
in interface PServicesBean
index
- the location of the model to retrievePModelHandle
.public void services(PModelHandle mH, ResourceBundle bundle) throws RemoteException
PortalOp.SEARCH
opcode to get the list
of services an account has subscribed to.mH
- the account's PModelHandle
bundle
- the resource bundleRemoteException
- thrown for null contexts, service arrays,
and service POIDs, as well as Infranet errors.public com.portal.app.util.CustomerValErrorData[] save(PModelHandle mH, int index) throws RemoteException
PortalOp.CUST_SET_PASSWORD
, CUST_SET_LOGIN
,
and CUST_SET_STATUS
opcodes to save changes to the login, password,
and status.save
in interface PServicesBean
mH
- the account's PModelHandle
index
- index of the selected service to saveRemoteException
- thrown for null contexts or Infranet errorsCopyright © 2003, 2023, Oracle and/or its affiliates.