Package at.riemers.zero.widgets

Examples of at.riemers.zero.widgets.PopupWidget


                    sendMessageSessions.add(selectedSession);
                }
            }
            session.setAttribute("sendMessageSessions", sendMessageSessions);
        }
        view.addWidget(new PopupWidget("user_send_message_popup", "admin.send_message", PopupWidget.TYPE_SAVE));
        return new ModelAndView(view, null);
    }
View Full Code Here


        //userForm.setLanguage(user.getLanguage());

        view.getJson().element("parameters", UserJSONizer.createParameters(getModuleManager(), (ZeroUser) user, true));

        view.getJson().element("form", userForm);
        PopupWidget popupWidget = new PopupWidget("user_settings_edit", "base.user.header.edit_settings", PopupWidget.TYPE_SAVE);
        if (checkAuthorisation(UserModule.AUTH_USER_CHANGE_PWD)) {
            view.getJson().element("canchangepwd", true);
        }
        view.addWidget(popupWidget);
View Full Code Here

            HttpSession session, HttpServletRequest request) throws Exception {


        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        if (checkAuthorisation(SystemModule.AUTH_RESOURCE_IMPORT)) {
            view.addWidget(new PopupWidget("system_importResources", "base.system.importResources", PopupWidget.TYPE_SAVE));
        }
        return new ModelAndView(view, null);
    }
View Full Code Here

        User user = getUser();

        if (user.checkAuthorisation(UserModule.AUTH_USER_EDIT)) {

            view.addWidget(new PopupWidget("user_permissionlist_select", "base.user.select_permission", PopupWidget.TYPE_SAVE));

            JSONArray jmodules = new JSONArray();
            view.getJson().element("modules", jmodules);
            for (Module module : getModuleManager().getModules()) {
                JSONObject jmodule = new JSONObject();
View Full Code Here

                String missingPermission = checkRoles(selectedUser);
                if (missingPermission != null && ignoreWarning == null) {
                    String[] param = new String[1];
                    param[0] = missingPermission;
                    view.getJson().element("warning", getMessages().getMessage("base.user.settings.permission_missing", param, getLocale(request)));
                    view.addWidget(new PopupWidget("user_warning", "base.user.warning", PopupWidget.TYPE_OVERLAY));
                    return new ModelAndView(view);
                }

                ZeroUser selectedUser2 = null;
                if (selectedUser.getId().equals("")) {
View Full Code Here

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

            view.addWidget(new PopupWidget("user_rolelist_select", "base.user.select_roles", PopupWidget.TYPE_SAVE));

            JSONArray jroles = new JSONArray();

            view.getJson().element("roles", jroles);
            List<Role> roles = roleDao.findAll();
View Full Code Here

TOP

Related Classes of at.riemers.zero.widgets.PopupWidget

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.