Examples of Reply


Examples of org.directwebremoting.extend.Reply

                accessControl.assertGeneralExecutionIsPossible(c.getScriptName(), c.getMethodDeclaration());
            }

            Replies replies = remoter.execute(calls);

            Reply reply = replies.getReply(0);

            // The existence of a throwable indicates that something went wrong
            if (reply.getThrowable() != null)
            {
                Throwable ex = reply.getThrowable();
                JsonRpcError error = new JsonRpcError(calls, ex.getMessage(), ERROR_CODE_SERVER, null);
                writeResponse(error, response, SC_INTERNAL_SERVER_ERROR);
                return;
            }

            JsonRpcResponse answer = new JsonRpcResponse(calls.getVersion(), calls.getId(), reply.getReply());
            writeResponse(answer, response, HttpServletResponse.SC_OK);
        }
        catch (JsonRpcCallException ex)
        {
            writeResponse(new JsonRpcError(ex), response, ex.getHttpStatusCode());
View Full Code Here

Examples of org.eclipse.bpel.model.Reply

    return activityElement;
  }

  protected Element reply2XML(Activity activity) {
    Reply reply = (Reply)activity;
    Element activityElement = createBPELElement("reply");
    if (reply.getPartnerLink() != null )
      activityElement.setAttribute("partnerLink", reply.getPartnerLink().getName());
    if (reply.getPortType() != null )
      activityElement.setAttribute("portType", bpelNamespacePrefixManager.qNameToString(reply, reply.getPortType().getQName()));
    if (reply.getOperation() != null )
      activityElement.setAttribute("operation", getOperationSignature(reply.getOperation()));
    if (reply.getVariable() != null )
      activityElement.setAttribute("variable", reply.getVariable().getName());
    if (reply.getFaultName() != null) {
      activityElement.setAttribute("faultName", bpelNamespacePrefixManager.qNameToString(reply, reply.getFaultName()));
    }
    if (reply.getCorrelations() != null)
      activityElement.appendChild(correlations2XML(reply.getCorrelations()));
     
    Iterator it = reply.getToPart().iterator();
    while (it.hasNext()) {
      ToPart toPart = (ToPart)it.next();
      activityElement.appendChild(toPart2XML(toPart));
    }
View Full Code Here

Examples of org.jboss.errai.bus.client.api.base.Reply

            break;
          case Message:
            parmValues[i] = message;
            break;
          case Conversation:
            parmValues[i] = new Reply() {
              final Message replyMessage = MessageBuilder.createConversation(message).getMessage();

              public void setValue(Object value) {
                replyMessage.set(MessageParts.Value, value);
              }
View Full Code Here

Examples of org.mapache.business.reply.Reply

    public String getContent() {
        return _content;
    }

    public String reply() {
         Reply newReply = new Reply();
         newReply.setContent(_content);
         newReply.setUserEmail(_userEmail);
         newReply.setUserName(_userName);
         newReply.setUserHomePage(_userHomePage);
         try {
             getBlogController().createReply(newReply,_topic.getTopicID());
             _content = _userEmail = _userName = _userHomePage = null;
         } catch (MapacheException e) {
              e.printStackTrace();
View Full Code Here

Examples of org.mapache.business.reply.Reply

             throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR,MapacheUIUtils.getTranslation("error_please_select_topic",null),MapacheUIUtils.getTranslation("error_please_select_topic",null)),null);
         }
    }

    public String createReply() {
        Reply newReply = new Reply();
        newReply.setContent(_content);
        newReply.setUserEmail(_email);
        newReply.setUserName(_author);
        newReply.setUserHomePage(_homepage);
        try {
            getBusinessController().createReply(newReply,_topic.getTopicID());
            FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO,MapacheUIUtils.getTranslation("info_reply_created",null),MapacheUIUtils.getTranslation("info_reply_created",null)));
            _createMode = false;
        } catch (MapacheException e) {
View Full Code Here

Examples of org.mapache.business.reply.Reply

        while(resultSet.next()){
            replies.add(fetchRecordInReplyObject(resultSet));
        }
    }
    private Reply fetchRecordInReplyObject(ResultSet record) throws SQLException {
        Reply reply = new Reply();
        reply.setReplyID(record.getInt("CommentID"));
        reply.setContent(record.getString("Comment"));
        reply.setCreationDate(FormatterUtil.stringToDate(record.getString("CreationDate")));
        reply.setUserName(record.getString("UserName"));
        reply.setUserEmail(record.getString("UserEmail"));
        reply.setUserHomePage(record.getString("UserHomePage"));
        return reply;
    }
View Full Code Here

Examples of org.osforce.connect.entity.discussion.Reply

      model.put("forum", forum);
    } else if(StringUtils.equals(Topic.NAME, activity.getEntity())) {
      Topic topic = topicService.getTopic(activity.getLinkedId());
      model.put("topic", topic);
    } else if(StringUtils.equals(Reply.NAME, activity.getEntity())) {
      Reply reply = replyService.getReply(activity.getLinkedId());
      model.put("reply", reply);
    } else if(StringUtils.equals(TeamMember.NAME, activity.getEntity())) {
      TeamMember teamMember = memberService.getMember(activity.getLinkedId());
      model.put("teamMember", teamMember);
    } else if(StringUtils.equals(Event.NAME, activity.getEntity())) {
View Full Code Here

Examples of org.osforce.connect.entity.discussion.Reply

    if(reply.getTopicId()!=null) {
      Topic topic = topicDao.get(reply.getTopicId());
      reply.setTopic(topic);
    }
    if(reply.getQuoteId()!=null) {
      Reply quote = replyDao.get(reply.getQuoteId());
      reply.setQuote(quote);
    }
    Date now = new Date();
    reply.setEntered(now);
    if(reply.getId()==null) {
View Full Code Here

Examples of org.osforce.connect.entity.discussion.Reply

    updateTopic(topic);
  }

  public void updateTopic(Topic topic) {
    if(topic.getAnswerId()!=null) {
      Reply answer = replyDao.get(topic.getAnswerId());
      topic.setAnswer(answer);
    }
    if(topic.getEnteredId()!=null) {
      User enteredBy = userDao.get(topic.getEnteredId());
      topic.setEnteredBy(enteredBy);
View Full Code Here

Examples of org.osforce.connect.entity.discussion.Reply

  }

  @Override
  protected void doTask(Map<Object, Object> context) throws Exception {
    Long replyId = (Long) context.get("replyId");
    Reply reply = replyService.getReply(replyId);
    String template = (String) context.get("template");
    Activity activity = new Activity();
    activity.setLinkedId(replyId);
    activity.setEntity(Reply.NAME);
    activity.setType(Reply.NAME);
    activity.setDescription(template);
    activity.setFormat(Activity.FORMAT_FTL);
    activity.setProjectId(reply.getTopic().getForum().getProjectId());
    activity.setEnteredId(reply.getModifiedId());
    activityService.createActivity(activity);
  }
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.