Class PIAExtendedServicesBeanImpl

All Implemented Interfaces:
PExtendableObjectBean, PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PIAExtendedServicesBeanImpl extends PIAComponentCollectionBean implements PExtendableObjectBean
The controller class for all extended service panels Calls the PortalOp.CUST_UPDATE_SERVICES opcode to commit changes made to the service object.
Version:
%version: 10 % %date_modified: Tue Feb 12 14:59:29 2002 %
Author:
kapono
See Also:
  • Constructor Details

  • Method Details

    • update

      public void update(int reason, Object data) throws RemoteException
      Description copied from class: PControllerImpl
      The update method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.
      Overrides:
      update in class PIAComponentCollectionBean
      Parameters:
      reason -
      data -
      Throws:
      RemoteException
    • save

      public com.portal.app.util.CustomerValErrorData[] save(PModelHandle pm) throws RemoteException
      Used to save changes to already existing /service objects (this is not used for account creation, just for existing accounts).
      Specified by:
      save in interface PExtendableObjectBean
      Parameters:
      pm - The input FList (as a PModelHandle) containing the data to save.
      Returns:
      an array of errors, if the save fails
      Throws:
      RemoteException
    • setIndex

      public void setIndex(int index) throws RemoteException
      Establishes the service array index for the service being modified. This is present to accomodate multiple services (service panels).
      This method should be called before calling graft();
      Specified by:
      setIndex in interface PExtendableObjectBean
      Parameters:
      index - The index into the Service array
      Throws:
      RemoteException
    • setIndex

      public void setIndex(PModelHandle[] model, String serviceID) throws RemoteException
      Establishes the service array index for the service being modified. This is present to accomodate multiple services (service panels).
      This method should be called before calling graft();
      Parameters:
      model - An array of 2 PModelHandles. One that is passed into collectData() from the account creation wizard, and one that is obtained by calling collectData() locally on the panel. The latter is grafted onto the former in the proper format.
      serviceID - The index into the Service array
      Throws:
      RemoteException
    • setObjectType

      public void setObjectType(String type) throws RemoteException
      Primarily useful for subclasses of Portal storable classes (like profile objects). For example, if you create a panel for a profile object /profile/marketing you would pass "marketing" through this API. This is needed to build up the proper POID.
      Specified by:
      setObjectType in interface PExtendableObjectBean
      Parameters:
      type - The name of the extended storable class
      Throws:
      RemoteException
    • graft

      public void graft(PModelHandle[] model) throws RemoteException
      Because one panel is used during account creation/maintenance, we need to play some tricks with the input FList. Account creation requires a slightly different input FList. This method takes the index specified in the extended services panel and uses it to build up the input FList for account creation.
      Specified by:
      graft in interface PExtendableObjectBean
      Parameters:
      model - An array of 2 PModelHandles. One that is passed into collectData() from the account creation wizard, and one that is obtained by calling collectData() locally on the panel. The latter is grafted onto the former in the proper format.
      pm - An array of 2 PModelHandles. One that is passed into collectData() from the account creation wizard, and one that is obtained by calling collectData() locally on the panel. The latter is grafted onto the former in the proper format.
      Throws:
      RemoteException
    • hasExtendedObjects

      public boolean hasExtendedObjects() throws RemoteException
      Determines if the account object contains service objects or not.
      Specified by:
      hasExtendedObjects in interface PExtendableObjectBean
      Returns:
      true
      Throws:
      RemoteException