Package com.centraview.note

Examples of com.centraview.note.NoteList


   */
  public NoteList getEntityNoteList(int entityId, int startATparam, int EndAtparam,
      String searchString, String sortColumn, String noteType)
  {
    if ((searchString != null) && ((searchString.trim()).length() > 0)) {
      NoteList dl = new NoteList();
      dl.setStartAT(startATparam);
      dl.setEndAT(EndAtparam);
      dl.setSortMember(sortColumn);
      dl.setSortType('A');
      dl.setSearchString(searchString);
      dl.setListType("Note");
      dl.setNoteType(noteType);

      long currentListID = this.getNextListID();
      dl.setListID(currentListID);

      displayLists.put(new Long(currentListID), dl);
      return this.getEntityNoteList(entityId, dl);
    } else {
      NoteList returnDL = null;
      try {
        HashMap hm = new HashMap();
        hm.put("startATparam", new Integer(startATparam));
        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('A'));
        hm.put("notetype", noteType);

        try {
          NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note remote = (Note)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getEntityNoteList(entityId, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getEntityNoteList: " + e.toString());
          // e.printStackTrace();
        }

        returnDL.setNoteType(noteType);
        returnDL.setListType("Note");
        returnDL.setTotalNoOfRecords(returnDL.size());

        long currentListID = this.getNextListID();
        returnDL.setListID(currentListID);
        returnDL.setStartAT(startATparam);
        returnDL.setEndAT(EndAtparam);
        returnDL.setNoteType(noteType);

        NoteList emptyDL = createEmptyObject(returnDL);
        emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
        emptyDL.setListID(currentListID);
        emptyDL.setListType("Note");
        emptyDL.setStartAT(returnDL.getStartAT());
        emptyDL.setEndAT(returnDL.getEndAT());
        emptyDL.setNoteType(noteType);
        displayLists.put(new Long(currentListID), emptyDL);
      } catch (Exception e) {
        e.printStackTrace();
      }
      return returnDL;
View Full Code Here


   * @param list
   * @return
   */
  public NoteList createEmptyObject(NoteList list)
  {
    NoteList dummy = new NoteList();
    dummy.setListType(list.getListType());
    dummy.setPrimaryMemberType(list.getPrimaryMemberType());
    dummy.setPrimaryTable(list.getPrimaryTable());
    dummy.setSortMember(list.getSortMember());
    dummy.setSortType(list.getSortType());
    dummy.setPrimaryMember(list.getPrimaryMember());
    dummy.setStartAT(list.getStartAT());
    dummy.setEndAT(list.getEndAT());
    dummy.setBeginIndex(0);
    dummy.setEndIndex(0);
    dummy.setNoteType(list.getNoteType());
    return dummy;
  }// end of createEmptyObject
View Full Code Here

   * @return
   */
  public NoteList getNoteList(int individualID, DisplayList DLparam)
  {

    NoteList returnDL = null;
    NoteList paramDL = (NoteList)DLparam;
    int listSize = paramDL.getTotalNoOfRecords();
    int startAT = paramDL.getStartAT();
    int EndAt = paramDL.getEndAT();

    String powerString = paramDL.getPowerString();
    String searchString = paramDL.getSearchString();
    String sortColumn = paramDL.getSortMember();
    String noteType = paramDL.getNoteType();

    HashMap hm = new HashMap();
    hm.put("startATparam", new Integer(startAT));
    hm.put("EndAtparam", new Integer(EndAt));
    hm.put("searchString", searchString);
    hm.put("sortmem", DLparam.getSortMember());
    hm.put("sortType", new Character(DLparam.getSortType()));
    hm.put("notetype", noteType);

    try {
      NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
      Note remote = (Note)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getNoteList(individualID, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getNoteList: " + e.toString());
      // e.printStackTrace();
    }

    returnDL.setListType("Note");
    returnDL.setListID(paramDL.getListID());
    returnDL.setStartAT(paramDL.getStartAT());
    returnDL.setEndAT(paramDL.getEndAT());
    returnDL.setSortType(paramDL.getSortType());
    returnDL.setNoteType(noteType);
    returnDL.setSearchString(searchString);
    returnDL.setPowerString(powerString);

    if (searchString != null && searchString.startsWith("SIMPLE :"))
View Full Code Here

   * @param entityId The current entity id value
   * @param DLparam Display list paramters
   */
  public NoteList getEntityNoteList(int entityId, DisplayList DLparam)
  {
    NoteList returnDL = null;
    NoteList paramDL = (NoteList)DLparam;
    int listSize = paramDL.getTotalNoOfRecords();
    int startAT = paramDL.getStartAT();
    int EndAt = paramDL.getEndAT();

    String powerString = paramDL.getPowerString();
    String searchString = paramDL.getSearchString();
    String sortColumn = paramDL.getSortMember();
    String noteType = paramDL.getNoteType();

    HashMap hm = new HashMap();
    hm.put("startATparam", new Integer(startAT));
    hm.put("EndAtparam", new Integer(EndAt));
    hm.put("searchString", searchString);
    hm.put("sortmem", DLparam.getSortMember());
    hm.put("sortType", new Character(DLparam.getSortType()));
    hm.put("notetype", noteType);

    try {
      NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
      Note remote = (Note)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getEntityNoteList(entityId, hm);
    } catch (Exception e) {
      System.out.println("[Exception] ListGenerator.getEntityNoteList: " + e.toString());
      // e.printStackTrace();
    }

    returnDL.setListType("Note");
    returnDL.setListID(paramDL.getListID());
    returnDL.setStartAT(paramDL.getStartAT());
    returnDL.setEndAT(paramDL.getEndAT());
    returnDL.setSortType(paramDL.getSortType());
    returnDL.setNoteType(noteType);
    returnDL.setSearchString(searchString);
    returnDL.setPowerString(powerString);

    if (searchString != null && searchString.startsWith("SIMPLE :")) {
View Full Code Here

  }

  public NoteList getNotesProjectList(int userID, int startAT, int EndAt, String searchString,
      String sortColumn, String typeOfList)
  {
    NoteList list = getNoteList(userID, startAT, EndAt, searchString, sortColumn, typeOfList);
    list.setListType("BottomNotes");
    // list.setTypeoflist( typeOfList );
    NoteList dl1 = (NoteList)displayLists.get(new Long(list.getListID()));
    dl1.setListType("BottomNotes");
    // dl1.setTypeoflist( typeOfList );

    return list;
  }
View Full Code Here

    return list;
  }

  public NoteList getNotesProjectList(int userID, DisplayList DLparam)
  {
    NoteList list = getNoteList(userID, (NoteList)DLparam);
    list.setListType("BottomNotes");
    NoteList dl1 = (NoteList)displayLists.get(new Long(list.getListID()));
    dl1.setListType("BottomNotes");
    return list;
  }
View Full Code Here

   */
  public NoteList getNoteList(int individualID, int startATparam, int EndAtparam,
      String searchString, String sortColumn, String noteType)
  {
    if ((searchString != null) && ((searchString.trim()).length() > 0)) {
      NoteList dl = new NoteList();
      dl.setStartAT(startATparam);
      dl.setEndAT(EndAtparam);
      dl.setSortMember(sortColumn);
      dl.setSortType('D');
      dl.setSearchString(searchString);
      dl.setListType("Note");
      dl.setNoteType(noteType);

      long currentListID = this.getNextListID();
      dl.setListID(currentListID);

      displayLists.put(new Long(currentListID), dl);

      return this.getNoteList(individualID, dl);

    } else {
      NoteList returnDL = null;
      try {
        HashMap hm = new HashMap();
        hm.put("startATparam", new Integer(startATparam));
        hm.put("EndAtparam", new Integer(EndAtparam));
        hm.put("searchString", searchString);
        hm.put("sortmem", sortColumn);
        hm.put("sortType", new Character('D'));
        hm.put("notetype", noteType);

        try {
          NoteHome aa = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note remote = (Note)aa.create();
          remote.setDataSource(this.dataSource);
          returnDL = remote.getNoteList(individualID, hm);
        } catch (Exception e) {
          System.out.println("[Exception] ListGenerator.getNoteList: " + e.toString());
          // e.printStackTrace();
        }
        returnDL.setNoteType(noteType);
        returnDL.setListType("Note");
        returnDL.setTotalNoOfRecords(returnDL.size());

        long currentListID = this.getNextListID();
        returnDL.setListID(currentListID);
        returnDL.setStartAT(startATparam);
        returnDL.setEndAT(EndAtparam);
        returnDL.setNoteType(noteType);

        NoteList emptyDL = createEmptyObject(returnDL);
        emptyDL.setTotalNoOfRecords(returnDL.getTotalNoOfRecords());
        emptyDL.setListID(currentListID);
        emptyDL.setListType("Note");
        emptyDL.setStartAT(returnDL.getStartAT());
        emptyDL.setEndAT(returnDL.getEndAT());
        emptyDL.setNoteType(noteType);
        displayLists.put(new Long(currentListID), emptyDL);

      } catch (Exception e) {
        e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of com.centraview.note.NoteList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.