Examples of CmsComment


Examples of com.mossle.cms.domain.CmsComment

    @RequestMapping("cms-comment-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            CmsComment cmsComment = cmsCommentManager.get(id);
            model.addAttribute("model", cmsComment);
        }

        return "cms/cms-comment-input";
    }
View Full Code Here

Examples of com.mossle.cms.domain.CmsComment

    @RequestMapping("cms-comment-save")
    public String save(@ModelAttribute CmsComment cmsComment,
            RedirectAttributes redirectAttributes) {
        Long id = cmsComment.getId();
        CmsComment dest = null;

        if (id != null) {
            dest = cmsCommentManager.get(id);
            beanMapper.copy(cmsComment, dest);
        } else {
View Full Code Here

Examples of com.mossle.cms.domain.CmsComment

        if (id != null) {
            hql = "from CmsComment where name=? and id<>?";
            params = new Object[] { name, id };
        }

        CmsComment cmsComment = cmsCommentManager.findUnique(hql, params);

        boolean result = (cmsComment == null);

        return result;
    }
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.