Package com.mossle.user.persistence.domain

Examples of com.mossle.user.persistence.domain.UserRepo


    @RequestMapping("user-base-list")
    public String list(@ModelAttribute Page page,
            @RequestParam Map<String, Object> parameterMap, Model model) {
        List<PropertyFilter> propertyFilters = PropertyFilter
                .buildFromMap(parameterMap);
        UserRepo userRepo = userRepoManager.findUniqueBy("code",
                ScopeHolder.getScopeCode());
        propertyFilters.add(new PropertyFilter("EQL_userRepo.id", Long
                .toString(userRepo.getId())));
        page = userBaseManager.pagedQuery(page, propertyFilters);

        List<UserBase> userBases = (List<UserBase>) page.getResult();
        List<UserBaseWrapper> userBaseWrappers = new ArrayList<UserBaseWrapper>();
View Full Code Here


        if (id != null) {
            userBase = userBaseManager.get(id);
        } else {
            userBase = new UserBase();

            UserRepo userRepo = userRepoManager.findUniqueBy("code",
                    ScopeHolder.getScopeCode());
            userBase.setUserRepo(userRepo);
        }

        UserBaseWrapper userBaseWrapper = new UserBaseWrapper(userBase);
View Full Code Here

    @RequestMapping("user-repo-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            UserRepo userRepo = userRepoManager.get(id);
            model.addAttribute("model", userRepo);
        }

        return "user/user-repo-input";
    }
View Full Code Here

    @RequestMapping("user-repo-save")
    public String save(@ModelAttribute UserRepo userRepo,
            @RequestParam Map<String, Object> parameterMap,
            RedirectAttributes redirectAttributes) {
        UserRepo dest = null;
        Long id = userRepo.getId();

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

        if (id == null) {
            dest.setScopeId(ScopeHolder.getScopeId());
        }

        userRepoManager.save(dest);

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

        if (id == null) {
            dest.setScopeId(ScopeHolder.getScopeId());
        }

        UserRepo userRepo = userRepoManager.get(userRepoId);
        dest.setUserRepo(userRepo);
        userSchemaManager.save(dest);

        messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
                "保存成功");
View Full Code Here

TOP

Related Classes of com.mossle.user.persistence.domain.UserRepo

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.