Package org.mapache.business.reply

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


             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

        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

TOP

Related Classes of org.mapache.business.reply.Reply

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.