Package com.centraview.note

Examples of com.centraview.note.Note


      if (newIndividualID != 0)
      {
        if (addNote)
        {
          NoteHome noteHome = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
          Note noteRemote = (Note)noteHome.create();
          noteRemote.setDataSource(dataSource);

          NoteVO noteVO = new NoteVO();

          // the "title" of the note will be the first 22 characters of the content,
          // plus "...", unless the content is less than 22 characters, in which case
          // it will be the same as the content...
          String title = "";
          if (notes.length() > 22)
          {
            title = notes.substring(0, 22) + "...";
          }else{
            title = notes;
          }
         
          noteVO.setTitle(title);
          noteVO.setDetail(notes);
          noteVO.setPriority(NoteVO.NP_MEDIUM);
          noteVO.setCreatedBy(individualID);
          noteVO.setOwner(individualID);
          noteVO.setRelateEntity(finalEntityID);
          noteVO.setRelateIndividual(newIndividualID);
         
          try
          {
            noteRemote.addNote(individualID, noteVO);
          }catch(NoteException ne){
            // TODO: clean up this NoteException handling
            System.out.println("[Exception][ContactAdd] Note Exception caught!: " + ne);
            ne.printStackTrace();
          }
View Full Code Here


      {
        // ok, here's the tricky part. We need to take this content,
        // parse it into individual notes, and figure out which to
        // change/delete/create. This could prove troublesome...
        NoteHome noteHome = (NoteHome)CVUtility.getHomeObject("com.centraview.note.NoteHome", "Note");
        Note noteRemote = (Note)noteHome.create();
        noteRemote.setDataSource(dataSource);

        NoteVO noteVO = new NoteVO();

        // the "title" of the note will be the first 22 characters of the content,
        // plus "...", unless the content is less than 22 characters, in which case
        // it will be the same as the content...
        String noteTitle = "";
        if (noteContent.length() > 22)
        {
          noteTitle = noteContent.substring(0, 22) + "...";
        }else{
          noteTitle = noteContent;
        }
       
        noteVO.setTitle(noteTitle);
        noteVO.setDetail(noteContent);
        noteVO.setPriority(NoteVO.NP_MEDIUM);
        noteVO.setCreatedBy(individualID);
        noteVO.setOwner(individualID);
        noteVO.setRelateEntity(individualVO.getEntityID());
        noteVO.setRelateIndividual(contactID);
       
        try
        {
          noteRemote.addNote(individualID, noteVO);
        }catch(NoteException ne){
          // TODO: clean up this NoteException handling
          System.out.println("[Exception][ContactAdd] Note Exception caught!: " + ne);
          //ne.printStackTrace();
        }
View Full Code Here

        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);
View Full Code Here

        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();
        }
View Full Code Here

    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();
    }
View Full Code Here

    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();
    }
View Full Code Here

TOP

Related Classes of com.centraview.note.Note

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.