Class PNotesBeanImpl

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

public class PNotesBeanImpl extends PIAComponentCollectionBean implements PNotesBean
PNotesBeanImpl is the Controller for the NotesPage.
See Also:
  • Constructor Details

  • Method Details

    • save

      protected Object save(PModelHandle acctMH, String toSave) throws RemoteException
      Converts the text into buffer and writes the Notes into DB using WRITE_FLDS opcode. This method can be overridden by subclass to perform additional operations after/before saving the notes or to have different write mechanism insted of WRITE_FLDS.
      Parameters:
      acctMH - model handle of the account for which notes will be saved
      toSave - Notes to save
      Returns:
      NULL if successful or CustomerValErrorData if failed.
      Throws:
      RemoteException
    • saveNotes

      public Object saveNotes(PModelHandle acctMH, String newNotes, int notesType) throws RemoteException
      saveNotes method converts the text into buffer and writes the Notes into DB using WRITE_FLDS opcode.
      Specified by:
      saveNotes in interface PNotesBean
      Parameters:
      acctMH - - account model handle where the notes should go in
      newNotes - - new notes to be stored
      notesType - - specific AR action that needs to be tracked.
      String - - the Notes data to save
      Returns:
      NULL on success and error on failure.
      Throws:
      RemoteException
    • getLoginName

      public Object getLoginName() throws RemoteException
      Returns the CSR name string
      Specified by:
      getLoginName in interface PNotesBean
      Parameters:
      event - - void
      Returns:
      the Loginname string on success (1st element is First Name and 2nd element is Last Name) and NULL on failure
      Throws:
      RemoteException
    • getOldNotes

      public String getOldNotes(PModelHandle pm) throws RemoteException
      Gets the current notes in DB
      Specified by:
      getOldNotes in interface PNotesBean
      Returns:
      the String object
      Throws:
      RemoteException