Class PServiceDefault

All Implemented Interfaces:
PSaveable, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class PServiceDefault extends PIAExtendedServicesBase implements ActionListener
The default technical (extended service) details panel which contains the ability to display/modify the service login invalid input: '&' password.
Version:
%version: 15 % %date_modified: Mon Jun 17 17:50:59 2002 %
See Also:
  • Field Details

  • Constructor Details

    • PServiceDefault

      public PServiceDefault()
      Creates a new customer information display panel
  • Method Details

    • setIDLabel

      public void setIDLabel(String s)
      Used to specify the label that should be used for the id/login field. Some services may override the login field and it might be helpful if the UI clearly called out what type of information was being requested. For example, an IPT service might require a phone number in the login field. You could use this method to change the label for the login field to "Phone #".
      Parameters:
      s - The new text for the id/login label
    • getIDLabel

      public String getIDLabel()
      Retrieves the label used for the id/login field
      Returns:
      The label used for the id/login field.
    • setIDValue

      public void setIDValue(String val)
      Establishes the unique ID for this service object (PIN_FLD_LOGIN) in the id textfield
      Parameters:
      The - ID to be for this service
    • supportsLoginAndPassword

      public boolean supportsLoginAndPassword()
      Description copied from class: PIAExtendedServicesBase
      Panels from 6.1 did not include entry fields for login/password. For those panels we will provide a wrapper that will allow the user to enter that data.
      Subclasses should override this to return true if they provide this themselves.
      Overrides:
      supportsLoginAndPassword in class PIAExtendedServicesBase
      Returns:
      false by default for compatibility with 6.1
    • getIDValue

      public String getIDValue()
      Retrieves the current value of the id textfield
      Overrides:
      getIDValue in class PIAExtendedServicesBase
      Returns:
      The unique ID for this service object (the value that is or will be stored in PIN_FLD_LOGIN)
    • getPasswordValue

      public String getPasswordValue()
      Retrieves the current value of the password textfield
      Returns:
      The password for this ID (the value that is or will be stored in FldPasswdClear)
    • resetPassword

      public void resetPassword()
      Used to clear the contents of the password field after a successful save.
    • save

      public com.portal.app.util.CustomerValErrorData[] save()
      Overridden to deal with clearing the password field after the save
      Specified by:
      save in interface PSaveable
      Overrides:
      save in class PIAExtendedServicesBase
      Returns:
      The array of errors; null if there are none
    • localCollectData

      public void localCollectData(PCollectDataEvent e)
      All PIAExtendedServicesBase subclasses that want to override collectData() should override this method instead. Because this panel will be shared between account creation and maintenance, there is some FList manipulation required. The input FLists is slightly different for account creation vs maintenance, and that is handled in PIAExtendedServicesBase. That class will call this method before any of the FList manipulation occurs so this is where you should do any pre-commit to Portal processing.
      One example of something you might do here is conversion of text data to binary for a particular field.
      In most situations, you won't need to do anything.
      Overrides:
      localCollectData in class PIAExtendedServicesBase
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Overridden to setup permissions
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      pm - the new PModelHandle from which to extract information
      The - model handle
      Throws:
      RemoteException - thrown for errors
    • addNotify

      public void addNotify()
      Overridden to apply style to some of the fonts
      Overrides:
      addNotify in class JComponent
    • resetToDefault

      public void resetToDefault()
      Description copied from class: PIACustomizablePanel
      A convenience method that resets every field on this panel.
      Specified by:
      resetToDefault in interface PComponentAttribute
      Overrides:
      resetToDefault in class PIACustomizablePanel
    • setLoginDisplayFieldDescription

      public void setLoginDisplayFieldDescription(String str)
      This method sets the display field description for the login field.
      Parameters:
      str - String
    • setPasswordDisplayFieldDescription

      public void setPasswordDisplayFieldDescription(String str)
      This method sets the display field description for the password field
      Parameters:
      str - String
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • isIDModified

      public boolean isIDModified()
      Returns the "dirty" date of the ID field. Someone making use of this default panel in their own panel may need to send out an event that the ID was changed.
      Returns:
      true if the ID is modified, but not yet saved
    • isPasswordModified

      public boolean isPasswordModified()
      Returns the "dirty" date of the password field. Someone making use of this default panel in their own panel may need to send out an event that the password was changed.
      Returns:
      true if the password is modified, but not yet saved
    • hasValidData

      public boolean hasValidData()
      Called to determine if the data contained in this page is valid. This will be useful if you wish to, for example, not allow a CSR to switch between service instances without first correcting an error on this page. Of course, be sure to tell them exactly how to fix the error. Or at a minimum give them a dialog that allows them to fix or ignore the error. In that case, if they ignore the error you could return true from this method. Essentially returning false is one way to keep the user on this service page.
      Overrides:
      hasValidData in class PIAExtendedServicesBase
      Returns:
      true if the data is valid (default); false otherwise