Examples of Message


Examples of domain.Message

            errors.rejectValue("client", "message.emptyclient");
            return showForm(request, errors, getFormView());
        }
        //end check DTO

        Message mss = new Message();
        mss.setClient(dto.getClient());
        mss.setDate(new Date());
        Client sender = getDao().getById(Collaborator.class, getUserInfo().getCurrentCollaboratorId()).getClient();
        mss.setSender(sender);
        mss.setSubject(dto.getSubject());
        mss.setText(dto.getText());
        getDao().save(mss);
        return new ModelAndView("redirect:/operator/message/outbox.htm");
    }
View Full Code Here

Examples of edu.drexel.cs544.mcmuc.actions.Message

            System.err.println("Message does not have action.");
            e.printStackTrace();
        }

        if (actionString.equalsIgnoreCase(Message.action)) {
            action = new Message(jo);
            action.process(this);
        } else if (actionString.equalsIgnoreCase(Presence.action)) {
            try {
                action = new Presence(jo);
                action.process(this);
View Full Code Here

Examples of ee.widespace.forum.Message

  try {
    stmt.setInt( 1, forumID );
    ResultSet rset = stmt.executeQuery();
    try {
      while ( rset.next() ) {
        Message msg   = new Message();
        msg.messageID = rset.getInt(1);
        msg.subject   = rset.getString(2);
        msg.name      = rset.getString(3);
        msg.date    = rset.getString(4);
        msg.spacer    = spacer + spacer;
View Full Code Here

Examples of enterprise.web.tookit.message.Message

      user.validateUserToInsert();

      this.getServiceUserBean().createUser(user);

      listMessages = new ArrayList<Message>();
      listMessages.add(new Message(Boolean.FALSE, StatusCodeMessage.CREATED.getIdStatusMessage(),
          "Usu�rio criado com sucesso."));

      listMessages.add(new Message());

    } catch (ValidationException e) {
      LOG.error("", e);
      listMessages = new ArrayList<Message>();
      listMessages.add(new Message(Boolean.TRUE, StatusCodeMessage.INTERNAL_SERVER_ERROR.getIdStatusMessage(), e
          .getMessage()));
    } catch (Exception e) {
      LOG.error("", e);
      listMessages = new ArrayList<Message>();
      listMessages.add(new Message(Boolean.TRUE, StatusCodeMessage.INTERNAL_SERVER_ERROR.getIdStatusMessage(),
          "Ocorreu um erro ao gravar o usu�rio."));
    }

    return listMessages;
  }
View Full Code Here

Examples of etc.aloe.data.Message

                });

        segments = new SegmentSet();

        Segment seg0 = new Segment();
        seg0.add(new Message(0, new Date(), "Alice", "it's"));
        seg0.add(new Message(1, new Date(), "Bob", "cow"));
        seg0.add(new Message(2, new Date(), "Alice", "time"));
        seg0.setTrueLabel(Boolean.TRUE);
        segments.add(seg0);

        Segment seg1 = new Segment();
        seg1.add(new Message(3, new Date(), "Bob", "noooooooo"));
        seg1.setTrueLabel(Boolean.FALSE);
        segments.add(seg1);

        Segment seg2 = new Segment();
        seg2.add(new Message(4, new Date(), "Bob", "once"));
        seg2.add(new Message(5, new Date(), "Alice", "upon"));
        seg2.setTrueLabel(Boolean.FALSE);
        segments.add(seg2);

        basicExamples = segments.getBasicExamples();
    }
View Full Code Here

Examples of etch.bindings.java.msg.Message

   
    lengthBudget = buf.avail();
   
    try
    {
      Message msg = startMessage();
      readKeysAndValues( msg );
      endMessage( msg );
      return msg;
    }
    finally
View Full Code Here

Examples of etch.compiler.ast.Message

    if (!named.isMessage())
      throw new ParseException( String.format(
        "Authorize method name %s is not a method at %d",
        method.image, lineno() ) );
   
    Message authMsg = (Message) named;
   
    if (authMsg.type().type().kind != EtchGrammarConstants.BOOLEAN)
      throw new ParseException( String.format(
        "Authorize method %s result type is not boolean at %d",
        method.image, lineno() ) );
   
    List<Parameter> authParams = authMsg.getParameters();
    if (authParams.size() != argList.size())
      throw new ParseException( String.format(
        "Authorize method %s parameter list size does not match the number of supplied arguments at %d",
        method.image, lineno() ) );
   
View Full Code Here

Examples of eu.mosaic_cloud.interoperability.core.Message

   
    final DFSPayloads.CopyFile.Builder copyFileBuilder = DFSPayloads.CopyFile.newBuilder();
    copyFileBuilder.setToken(token);
    copyFileBuilder.setFromPath(sourceFullPath);
    copyFileBuilder.setToPath(destinationFullPath);
    final Message message = new Message(DFSMessage.COPY, copyFileBuilder.build());
   
    return (this.sendRequest(message, token, Void.class));
  }
View Full Code Here

Examples of eu.olol.jrc.util.Message

    }

    @Override
    public void update(Observable o, Object arg) {
        if (arg instanceof Message) {
            Message p = (Message) arg;

            // Send the post to the users in the channel
            for (Integer peerId : channels.get(p.getChannel()).getUsers()) {
                peers.get(peerId).send(p);
            }
        } else if (arg instanceof Control) {
            handleControl((ClientHandler) o, (Control) arg);
        }
View Full Code Here

Examples of eu.planets_project.ifr.core.wee.api.ReportingLog.Message

            //hack to change from file uri to relative path
            links.add(new Parameter("File " + (i + 1), String.format("<a href='%s'>%s</a>", /*url*/strings[strings.length - 1],
                    strings[strings.length - 1])));
        }
        Parameter[] array = links.toArray(new Parameter[] {});
        return new Message("Results", array);
    }
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.