Class PServicesBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PServicesBeanImpl
All Implemented Interfaces:
PControllerBean, PServicesBean, Serializable, Remote, Unreferenced

public class PServicesBeanImpl extends PControllerImpl implements PServicesBean
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, and CUST_SET_STATUS opcodes.
Version:
%version: 11 % %date_modified: Mon Jan 21 17:22:15 2002 %
Author:
sujata
See Also:
  • Constructor Details

    • PServicesBeanImpl

      public PServicesBeanImpl() throws RemoteException
      Saves changes to services (login/password/services) and uses a customized PortalOp.SEARCH opcode to retrieve service data.
      Throws:
      RemoteException
  • Method Details

    • setLogin

      public void setLogin(String sLogin) throws RemoteException
      Sets the input data/hidden variable ServiceLogin with the value of the customer's login for the user-selected service.
      Specified by:
      setLogin in interface PServicesBean
      Parameters:
      sLogin - a String with the customer's login value
      Throws:
      RemoteException
    • setPassword

      public void setPassword(String sPassword) throws RemoteException
      Sets the input data/hidden variable ServicePassword with the value of the customer's password for the user-selected service.
      Specified by:
      setPassword in interface PServicesBean
      Parameters:
      sPassword - a String with the customer's password value
      Throws:
      RemoteException
    • setConfirmation

      public void setConfirmation(String sPassword) throws RemoteException
      Sets the input data/hidden variable ConfirmPassword with the value of the customer's password verification for the user-selected service.
      Specified by:
      setConfirmation in interface PServicesBean
      Parameters:
      sPassword - a String with the customer's password verification value
      Throws:
      RemoteException
    • setStatus

      public void setStatus(Integer status) throws RemoteException
      Sets the service status for the user-selected service.
      Specified by:
      setStatus in interface PServicesBean
      Parameters:
      status - an Integer value for the service status, one of:
      • 0 (DEFUNCT)
      • 10100 (ACTIVE)
      • 10102 (INACTIVE)
      • 10103 (CLOSED)
      • 10104 (NOT_SET)
      Throws:
      RemoteException
      See Also:
      • invalid reference
        com.portal.pcm.PortalEnums#PinStatus
    • setAccountStatus

      public void setAccountStatus(Integer status) throws RemoteException
      Sets the account status for the user-selected service.
      Specified by:
      setAccountStatus in interface PServicesBean
      Parameters:
      status - an Integer value for the account status, one of:
      • 0 (DEFUNCT)
      • 10100 (ACTIVE)
      • 10102 (INACTIVE)
      • 10103 (CLOSED)
      • 10104 (NOT_SET)
      Throws:
      RemoteException
      See Also:
      • invalid reference
        com.portal.pcm.PortalEnums#PinStatus
    • getServices

      public List getServices() throws RemoteException
      Gets a list of subscribed services for the account.
      Specified by:
      getServices in interface PServicesBean
      Returns:
      An array List of subscribed services, or null.
      Throws:
      RemoteException
    • getServices

      public String getServices(int index) throws RemoteException
      Gets a specific service from a list of subscribed services.
      Specified by:
      getServices in interface PServicesBean
      Parameters:
      index - the index of the service to retrieve
      Returns:
      A String description of the service associated with that index.
      Throws:
      RemoteException
    • setServices

      protected void setServices(String sResult)
      Sets a specific service in a list of subscribed services.
      Parameters:
      sResult - the service to add
    • getServiceStatus

      public Integer getServiceStatus(int index) throws RemoteException
      Gets the status of a specific service.
      Specified by:
      getServiceStatus in interface PServicesBean
      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:
      • invalid reference
        com.portal.pcm.PortalEnums#PinStatus
    • setServiceStatus

      protected void setServiceStatus(Integer sResult)
      Adds a status for a specific service to a list of status values for the subscribed services.
      Parameters:
      sResult - an Integer that indicates the service status to add, one of:
      • 0 (DEFUNCT)
      • 10100 (ACTIVE)
      • 10102 (INACTIVE)
      • 10103 (CLOSED)
      • 10104 (NOT_SET)
      See Also:
      • invalid reference
        com.portal.pcm.PortalEnums#PinStatus
    • update

      public void update(int reason, Object data)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing.
      Specified by:
      update in class PControllerImpl
      Parameters:
      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
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing and return null.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      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 item
      Returns:
      Usually, a model handle or array of model handles.
    • getModel

      public PModelHandle getModel(int index)
      Returns the model associated with the service at the specified index.
      Specified by:
      getModel in interface PServicesBean
      Parameters:
      index - the location of the model to retrieve
      Returns:
      The service's PModelHandle.
    • services

      public void services(PModelHandle mH, ResourceBundle bundle) throws RemoteException
      Calls the PortalOp.SEARCH opcode to get the list of services an account has subscribed to.
      Parameters:
      mH - the account's PModelHandle
      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 the PortalOp.CUST_SET_PASSWORD, CUST_SET_LOGIN, and CUST_SET_STATUS opcodes to save changes to the login, password, and status.
      Specified by:
      save in interface PServicesBean
      Parameters:
      mH - the account's PModelHandle
      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