Examples of MsgInfo


Examples of com.mossle.msg.domain.MsgInfo

public class DefaultMsgConnector implements MsgConnector {
    private MsgInfoManager msgInfoManager;

    public void send(String subject, String content, String receiverId,
            String senderId) {
        MsgInfo msgInfo = new MsgInfo();
        msgInfo.setName(subject);
        msgInfo.setContent(content);
        msgInfo.setReceiverId(receiverId);
        msgInfo.setSenderId(senderId);
        msgInfo.setCreateTime(new Date());
        msgInfo.setStatus(0);
        msgInfoManager.save(msgInfo);
    }
View Full Code Here

Examples of com.mossle.msg.domain.MsgInfo

    @RequestMapping("msg-info-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            MsgInfo msgInfo = msgInfoManager.get(id);

            model.addAttribute("model", msgInfo);
        }

        return "msg/msg-info-input";
View Full Code Here

Examples of com.mossle.msg.domain.MsgInfo

    @RequestMapping("msg-info-save")
    public String save(@ModelAttribute MsgInfo msgInfo,
            @RequestParam("username") String username,
            RedirectAttributes redirectAttributes) {
        MsgInfo dest = null;
        Long id = msgInfo.getId();

        if (id != null) {
            dest = msgInfoManager.get(id);
            beanMapper.copy(msgInfo, dest);
        } else {
            dest = msgInfo;

            String userId = SpringSecurityUtils.getCurrentUserId();
            dest.setSenderId(userId);

            UserDTO userDto = userConnector.findByUsername(username, "1");

            if (userDto == null) {
                throw new IllegalStateException("user not exists : " + username);
            }

            dest.setReceiverId(userDto.getId());
            dest.setCreateTime(new Date());
            dest.setStatus(0);
        }

        msgInfoManager.save(dest);

        messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
View Full Code Here

Examples of com.mossle.msg.domain.MsgInfo

    }

    @RequestMapping("msg-info-view")
    public String view(@RequestParam("id") Long id, Model model) {
        String userId = SpringSecurityUtils.getCurrentUserId();
        MsgInfo msgInfo = msgInfoManager.get(id);

        if ((msgInfo.getStatus() == 0)
                && userId.equals(msgInfo.getReceiverId())) {
            msgInfo.setStatus(1);
            msgInfoManager.save(msgInfo);
        }

        model.addAttribute("model", msgInfo);
View Full Code Here

Examples of eas.statistics.logging.MsgInfo

        if (stufe == LOG_OUTPUT) {
            msg = new MsgOutput(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_DEBUG) {
            msg = new MsgDebug(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_INFO) {
            msg = new MsgInfo(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_WARNING) {
            msg = new MsgWarning(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_ERROR) {
            msg = new MsgError(s, System.currentTimeMillis(), zusatz);
        } else if (stufe == LOG_STAGE1) {
View Full Code Here

Examples of eas.statistics.logging.MsgInfo

                    msg.getWeiteres());
            AbstractMsg mee = new MsgError(
                    msg.getText(),
                    msg.getZeitstempel().getTimeInMillis(),
                    msg.getWeiteres());
            AbstractMsg mei = new MsgInfo(
                    msg.getText(),
                    msg.getZeitstempel().getTimeInMillis(),
                    msg.getWeiteres());
            AbstractMsg meo = new MsgOutput(
                    msg.getText(),
                    msg.getZeitstempel().getTimeInMillis(),
                    msg.getWeiteres());
            AbstractMsg mes = new MsgStage1(
                    msg.getText(),
                    msg.getZeitstempel().getTimeInMillis(),
                    msg.getWeiteres());
            AbstractMsg mew = new MsgWarning(
                    msg.getText(),
                    msg.getZeitstempel().getTimeInMillis(),
                    msg.getWeiteres());
           
            if (msg.getLogStufe().equals(med.getType())) {
                this.gespPars.addMsg(med);
            } else if (msg.getLogStufe().equals(mee.getType())) {
                this.gespPars.addMsg(mee);
            } else if (msg.getLogStufe().equals(mei.getType())) {
                this.gespPars.addMsg(mei);
            } else if (msg.getLogStufe().equals(meo.getType())) {
                this.gespPars.addMsg(meo);
            } else if (msg.getLogStufe().equals(mes.getType())) {
                this.gespPars.addMsg(mes);
View Full Code Here

Examples of fmg.fmg8.statistik.logging.MsgInfo

            if (stufe == LOG_OUTPUT) {
                msg = new MsgOutput(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_DEBUG) {
                msg = new MsgDebug(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_INFO) {
                msg = new MsgInfo(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_WARNING) {
                msg = new MsgWarning(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_ERROR) {
                msg = new MsgError(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_STAGE1) {
View Full Code Here

Examples of fmg.fmg8.statistik.logging.MsgInfo

            if (stufe == LOG_OUTPUT) {
                msg = new MsgOutput(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_DEBUG) {
                msg = new MsgDebug(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_INFO) {
                msg = new MsgInfo(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_WARNING) {
                msg = new MsgWarning(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_ERROR) {
                msg = new MsgError(s, System.currentTimeMillis(), zusatz);
            } else if (stufe == LOG_STAGE1) {
View Full Code Here

Examples of kartoMNT.karto.outils.MsgInfo

                    dispose();

                }
            catch (NumberFormatException ne)
                {
                    MsgInfo msg=new MsgInfo(frameParent,MsgInfo.ERROR,MsgInfo.OK,ResourceManager.get("fillError"));

                }


        }
View Full Code Here

Examples of kartoMNT.karto.outils.MsgInfo

                carroyage.setProj(calibration,getLignesDeNiveaux().getXMax(),getLignesDeNiveaux().getYMax());
            }
        catch(Exception ex)
            {

                MsgInfo msg=new MsgInfo(frameParent,MsgInfo.ERROR,MsgInfo.OK,ResourceManager.get("calibError")
                                        +"\n("+ex.getMessage()+")");

                calibration=null;
            }
    }
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.