Package at.riemers.zero.base.model

Examples of at.riemers.zero.base.model.ZeroUser.checkAuthorisation()


    @RequestMapping(value = "/user/userAddRole.do", method = RequestMethod.POST)
    public ModelAndView addRoles(@ModelAttribute("selected") Selected selected, BindingResult result, SessionStatus status, HttpSession session, HttpServletRequest request) throws Exception {

        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        ZeroUser user = (ZeroUser) getUser();
        if (user.checkAuthorisation(UserModule.AUTH_USER)) {

            ZeroUser selectedUser = (ZeroUser) session.getAttribute(SESSION_USER_SELECTEDUSER);
            try {
                for (String roleId : selected.getSelected().keySet()) {
                    log.info("roleId: " + roleId);
View Full Code Here


    @RequestMapping(value = "/user/userDeleteRole.do", method = RequestMethod.POST)
    public ModelAndView deleteRoles(@ModelAttribute("userForm") UserForm userForm, BindingResult result, SessionStatus status, HttpSession session, HttpServletRequest request) throws Exception {
        log.debug("deleteRoles");
        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        ZeroUser user = (ZeroUser) getUser();
        if (user.checkAuthorisation(UserModule.AUTH_USER)) {

            ZeroUser selectedUser = (ZeroUser) session.getAttribute(SESSION_USER_SELECTEDUSER);
            try {
                for (String roleId : userForm.getSelectedRoles().keySet()) {
                    log.info("roleId: " + roleId);
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.