Package com.mossle.scope.domain

Examples of com.mossle.scope.domain.ScopeInfo


    @RequestMapping("scope-info-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            ScopeInfo scopeInfo = scopeInfoManager.get(id);
            model.addAttribute("model", scopeInfo);
        }

        List<UserRepoDTO> userRepoDtos = userRepoConnector.findAll();
        model.addAttribute("userRepoDtos", userRepoDtos);
View Full Code Here


    @RequestMapping("scope-info-save")
    public String save(@ModelAttribute ScopeInfo scopeInfo,
            RedirectAttributes redirectAttributes) {
        Long id = scopeInfo.getId();
        ScopeInfo dest = null;

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

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

        ScopeInfo scopeInfo = scopeInfoManager.findUnique(hql, params);

        boolean result = (scopeInfo == null);

        return result;
    }
View Full Code Here

TOP

Related Classes of com.mossle.scope.domain.ScopeInfo

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.