Examples of Note


Examples of de.paulwein.notes.pojo.Note

  @Override
  public Note loadNote(Key key) throws DAOException {
    try {
      Entity entity = datastore.get(key);
      Note note = Transformer.entity2Note(entity);
      return note;
    } catch (EntityNotFoundException e) {
      e.printStackTrace();
      throw new DAOException();
    }
View Full Code Here

Examples of de.paulwein.notes.pojo.Note

    Query q = new Query(ENTITY_KIND_NOTE).setFilter(queryFilter);
    PreparedQuery prepq = datastore.prepare(q);
    List<Entity> notes = prepq.asList(FetchOptions.Builder.withDefaults());
    List<Note> results = new ArrayList<Note>();
    for(Entity eNote : notes){
      Note note = Transformer.entity2Note(eNote);
      results.add(note);
    }
    return results;
  }
View Full Code Here

Examples of de.paulwein.notes.pojo.Note

    Date date = (Date) entity.getProperty(NotesDAO.PROPERTY_DATE);
    String subject = (String) entity.getProperty(NotesDAO.PROPERTY_SUBJECT);
    String note = (String) entity.getProperty(NotesDAO.PROPERTY_NOTE);
    String userId = (String) entity.getProperty(NotesDAO.PROPERTY_USERID);
   
    Note n = new Note();
    n.setKey(key);
    n.setDate(date);
    n.setSubject(subject);
    n.setNote(note);
    n.setUserId(userId);
    return n;
  }
View Full Code Here

Examples of de.xanders.data.system.dao.Note

    /**
     * @see NoteService#getNoteById(java.lang.Long)
     */
    protected de.xanders.data.system.vo.NoteVO handleGetNoteById(java.lang.Long noteId)
        throws java.lang.Exception {
      Note note = this.getNoteDao().load(noteId);
      return this.getNoteDao().toNoteVO(note);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.notes.Note

    }

    @Override
    protected AddNoteToEntityResult execute(AddNoteToEntityAction action, OWLAPIProject project, ExecutionContext executionContext) {
        EventTag tag = project.getEventManager().getCurrentTag();
        Note note = project.getNotesManager().addNoteToEntity(action.getEntity(), action.getNoteContent(), executionContext.getUserId());
        return new AddNoteToEntityResult(project.getEventManager().getEventsFromTag(tag), note);
    }
View Full Code Here

Examples of eu.semberal.reminders.entity.Note

    private Long noteId;
    private SizeAndPosition sizeAndPosition;

    @DefaultHandler
    public Resolution saveNoteSizeAndPosition() {
        Note n = notesService.getNote(noteId);
        if (!n.getUser().equals(getContext().getUser())) return null;

        n.setSizeAndPosition(sizeAndPosition);
        try {
            notesService.saveNote(n);
        } catch (Exception e) {
            log.error(e.getMessage());
        }
View Full Code Here

Examples of fb4java.beans.Note

  JSONArray root = new JSONArray(response.getResponse());
  int numOfNotes = root.length();
  for (int a = 0; a < numOfNotes; a++) {
      JSONObject aNote = root.getJSONObject(a);
      rslt.add(new Note(aNote));
  }
  return rslt;
    }
View Full Code Here

Examples of fi.foyt.hibernate.gae.persistence.Note

    try {
      entityManager.getTransaction().begin();
     
      if ("POST".equals(req.getMethod())) {
        String text = req.getParameter("note");
        Note note = new Note();
        note.setText(text);
        entityManager.persist(note);
      }
     
      req.setAttribute("notes", entityManager.createQuery("from Note").getResultList());
     
View Full Code Here

Examples of fr.univ.jfc.java.grp7.commun.Note

      fno.setVisible(true);
    }
    if (ev.getSource() == ouvrir) { // Ouvrir une note personnelle
      index_model1 = listeNote.getSelectedIndex();
      if (index_model1 >= 0) {
        Note note = model1.getNoteAt(index_model1);
        FenetreNote fno = null;
        try {
          fno = new FenetreNote(user, model1, model2, model3, note, 1); // ouvre
          // fenetre
          // pr modif
          // note
        } catch (RemoteException e) {
          e.printStackTrace();
        } catch (SQLException e) {
          e.printStackTrace();
        }
        fno.setVisible(true);
        System.out.println("Ouverture Ma Note Position: "
            + index_model1);

      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }
    if (ev.getSource() == supprimer) { // Suprimmer une note personnelle
      index_model1 = listeNote.getSelectedIndex();
      if (index_model1 >= 0) {
        boolean res = false; // Oui ou Non si autoriser en ecriture sur
                    // la note
        try {
          Note note = model1.getNoteAt(index_model1);
          res = user.autoriserEnEcriture(user, note, 1);
          if (res) {
            reponse = JOptionPane.showConfirmDialog(null,
                "Etes vous sur de vouloir suprimmer "
                    + listeNote.getSelectedItem() + " ?",
                "Confirmer la supression",
                JOptionPane.YES_NO_OPTION);
            if (reponse == JOptionPane.YES_OPTION) {
              this.user.deleteNote(note);
              this.model1.setModel(user.listMyNotes());
            }
          } else {
            JOptionPane
                .showMessageDialog(
                    null,
                    "Vous n'avez pas les droits d'ecriture sur la note",
                    "Erreur", JOptionPane.ERROR_MESSAGE);
          }
        } catch (RemoteException e1) {
          e1.printStackTrace();
        } catch (SQLException e1) {
          e1.printStackTrace();
        }
        return;
      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }
    if (ev.getSource() == modif_droit) { // modifier droit note
                        // personelle
      index_model1 = listeNote.getSelectedIndex();
      if (index_model1 >= 0) {
        Note note = model1.getNoteAt(index_model1);
        FenetreDroitNote fend = null;

        try {
          fend = new FenetreDroitNote(user, note);
        } catch (RemoteException e) {
          e.printStackTrace();
        } catch (SQLException e) {
          e.printStackTrace();
        }

        fend.setVisible(true);
      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }

    if (ev.getSource() == ouvrir3) { // Ouvrir une note accessible
      index_model2 = listeNote2.getSelectedIndex();
      if (index_model2 >= 0) {
        Note note = model2.getNoteAt(index_model2);
        FenetreNote fno = null;
        try {
          fno = new FenetreNote(user, model1, model2, model3, note, 3); // ouvre
          // fenetre
          // pr modif
          // note
        } catch (RemoteException e) {
          e.printStackTrace();
        } catch (SQLException e) {
          e.printStackTrace();
        }
        fno.setVisible(true);
        System.out.println("Ouverture Note accessible Position: "
            + index_model2);

      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }
    if (ev.getSource() == supprimer3) { // Suprimmer une note accessible
      index_model2 = listeNote2.getSelectedIndex();
      if (index_model2 >= 0) {
        boolean res = false; // Oui ou Non si autoriser en ecriture sur
                    // la note
        try {
          Note note = model2.getNoteAt(index_model2);
          res = user.autoriserEnEcriture(user, note, 3);
          if (res) {
            reponse = JOptionPane.showConfirmDialog(null,
                "Etes vous sur de vouloir suprimmer "
                    + listeNote2.getSelectedItem() + " ?",
                "Confirmer la supression",
                JOptionPane.YES_NO_OPTION);
            if (reponse == JOptionPane.YES_OPTION) {
              this.user.deleteNote(note);
              this.model2.setModel(user.listNotesAccess(user
                  .getGroupeId(user.getUserId())));
            }
          } else {
            JOptionPane
                .showMessageDialog(
                    null,
                    "Vous n'avez pas les droits d'ecriture sur la note",
                    "Erreur", JOptionPane.ERROR_MESSAGE);
          }
        } catch (RemoteException e1) {
          e1.printStackTrace();
        } catch (SQLException e1) {
          e1.printStackTrace();
        }
        return;
      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }
    if (ev.getSource() == ouvrir2) { // Ouvrir une note de Groupe
      index_model3 = listeNote3.getSelectedIndex();
      if (index_model3 >= 0) {
        Note note = model3.getNoteAt(index_model3);
        FenetreNote fno = null;
        try {
          fno = new FenetreNote(user, model1, model2, model3, note, 2); // ouvre
          // fenetre
          // pr modif
          // note
        } catch (RemoteException e) {
          e.printStackTrace();
        } catch (SQLException e) {
          e.printStackTrace();
        }
        fno.setVisible(true);
        System.out.println("Ouverture Note accessible Position: "
            + index_model3);

      } else {
        JOptionPane.showMessageDialog(null, "aucune note", "Erreur",
            JOptionPane.ERROR_MESSAGE);
      }
    }
    if (ev.getSource() == supprimer2) { // Suprimmer une note de Groupe
                      // accessible
      index_model3 = listeNote3.getSelectedIndex();
      if (index_model3 >= 0) {
        boolean res = false; // Oui ou Non si autoriser en ecriture sur
                    // la note
        try {
          Note note = model3.getNoteAt(index_model3);
          res = user.autoriserEnEcriture(user, note, 2);
          if (res) {
            reponse = JOptionPane.showConfirmDialog(null,
                "Etes vous sur de vouloir suprimmer "
                    + listeNote3.getSelectedItem() + " ?",
View Full Code Here

Examples of info.ineighborhood.cardme.Note

   * Create note
   * @param noteContent
   * @return note
   */
  private static Note createNote(String noteContent){
    Note note = new NoteImpl();
    note.setEncodingType(EncodingType.QUOTED_PRINTABLE);
    note.setNote(noteContent);
    return note;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.