Package com.mossle.cal.domain

Examples of com.mossle.cal.domain.CalInfo


    @RequestMapping("cal-info-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            CalInfo calInfo = calInfoManager.get(id);
            model.addAttribute("model", calInfo);
        }

        return "cal/cal-info-input";
    }
View Full Code Here


    @RequestMapping("cal-info-save")
    public String save(@ModelAttribute CalInfo calInfo,
            @RequestParam Map<String, Object> parameterMap,
            RedirectAttributes redirectAttributes) {
        CalInfo dest = null;

        Long id = calInfo.getId();

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

            String userId = SpringSecurityUtils.getCurrentUserId();
            dest.setUserId(Long.parseLong(userId));
        }

        calInfoManager.save(dest);

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

TOP

Related Classes of com.mossle.cal.domain.CalInfo

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.