Package at.riemers.zero.base.controller

Examples of at.riemers.zero.base.controller.Message


                ZeroUser selectedUser = ((DefaultTableModel<ZeroUser>) userListComponent.getModel()).get(row);
                if (selectedUser != null) {
                    if (!user.checkAuthorisation(
                            new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
                            new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
                        view.setMessage(new Message("zero.message.user.delete_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
                        return new ModelAndView(view, null);
                    }
                } else {
                    log.debug("username not found");
                }
View Full Code Here


                ZeroUser selectedUser = ((DefaultTableModel<ZeroUser>) userListComponent.getModel()).get(row);
                if (selectedUser != null) {
                    if (!user.checkAuthorisation(
                            new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
                            new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
                        view.setMessage(new Message("zero.message.user.delete_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
                        return new ModelAndView(view, null);
                    }
                } else {
                    log.debug("username not found");
                }
View Full Code Here

                ZeroUser selectedUser = ((DefaultTableModel<ZeroUser>) userListComponent.getModel()).get(row);
                if (selectedUser != null) {
                    if (!user.checkAuthorisation(
                            new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
                            new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
                        view.setMessage(new Message("zero.message.user.edit_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
                        return new ModelAndView(view, null);
                    }
                } else {
                    log.debug("username not found");
                }
View Full Code Here

                ZeroUser selectedUser = ((DefaultTableModel<ZeroUser>) userListComponent.getModel()).get(row);
                if (selectedUser != null) {
                    if (!user.checkAuthorisation(
                            new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
                            new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
                        view.setMessage(new Message("zero.message.user.edit_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
                        return new ModelAndView(view, null);
                    }
                } else {
                    log.debug("username not found");
                }
View Full Code Here

                if (selectedUser.getUserGroup() != null) {
                    if (!user.checkAuthorisation(
                            new Permission(UserModule.AUTH_USER, selectedUser.getUserGroup().getGroupKey()),
                            new Permission(UserModule.AUTH_USER_EDIT, "", false))) {
                        view.setMessage(new Message("zero.message.user.edit_no_permission", Message.MSG_ERROR, selectedUser.getUsername()));
                        return new ModelAndView(view, null);
                    }
                }

View Full Code Here

            ZeroUser selectedUser = userDao.findById(selected);
            if (selectedUser != null) {
                String template = "password_notification.vm";               
                sendPasswordNotification(getMessages().getMessage("base.user.send_password_subject", null, getLocale(request)), "SEND PASSWORD", selectedUser.getPerson().getEmail(), template, selectedUser);
                view.setMessage(new Message("base.user.password_sent", Message.MSG_INFO));
            }

        }
        return new ModelAndView(view, null);
    }
View Full Code Here

        return false;
    }

    @Override
    public Message getValueRangeMessage() {
        return new Message("zero.message.valuerange", Message.MSG_ERROR, Integer.toString(minimum), Integer.toString(maximum));
    }
View Full Code Here

                email.setReferenceId(widget.getReferenceId());
                emailDao.makePersistent(email);
                count ++;
            }

            view.setMessage(new Message("base.email.added", Message.MSG_INFO, Integer.toString(count)));

        }
        return new ModelAndView(view, null);
    }
View Full Code Here

TOP

Related Classes of at.riemers.zero.base.controller.Message

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.