Package com.mossle.cms.domain

Examples of com.mossle.cms.domain.CmsFavorite


    @RequestMapping("cms-favorite-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            CmsFavorite cmsFavorite = cmsFavoriteManager.get(id);
            model.addAttribute("model", cmsFavorite);
        }

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


    @RequestMapping("cms-favorite-save")
    public String save(@ModelAttribute CmsFavorite cmsFavorite,
            RedirectAttributes redirectAttributes) {
        Long id = cmsFavorite.getId();
        CmsFavorite dest = null;

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

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

        CmsFavorite cmsFavorite = cmsFavoriteManager.findUnique(hql, params);

        boolean result = (cmsFavorite == null);

        return result;
    }
View Full Code Here

TOP

Related Classes of com.mossle.cms.domain.CmsFavorite

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.