Examples of checkAuthorisation()


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

        logFunction("user-current-list");

        log.debug("currentUserList");

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

            List<UserSession> userList = new ArrayList();

            for (Object obj : sessionRegistry.getAllPrincipals()) {
                log.debug(obj.getClass().getName() + " " + obj.toString());
View Full Code Here

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

        User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();

        logFunction("user-kick");

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

            HtmlTableWidget userListComponent = (HtmlTableWidget) getWidgetManager(session).getWidget("CURRENTUSERLIST");

            for ( String selectedRow : selected.getSelected().keySet()) {
                log.debug(selectedRow);
View Full Code Here

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

        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        log.debug("send message");

        User user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();

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

            HtmlTableWidget userListComponent = (HtmlTableWidget) getWidgetManager(session).getWidget("CURRENTUSERLIST");

            List<UserSession> sendMessageSessions = new ArrayList();
            for ( String selectedRow : selected.getSelected().keySet()) {
View Full Code Here

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

        long s = System.currentTimeMillis();
        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        User user = getUser();
        logFunction("user-rolelist");
        if (user.checkAuthorisation(UserModule.AUTH_USER)) {

            view.addWidget(new SimpleWidget(ZeroView.DIV_CONTENT, "user_rolelist"));

            FormWidget filter = (FormWidget) getWidgetManager(session).getWidget("ROLELIST_FILTER");           
            if (filter == null) {
View Full Code Here

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

                log.debug("fireClicked: " + event.getWidget().getModel().getData(event.getColumn(), event.getRow()));
                }
                });*/
                RoleTableModel model = new RoleTableModel(getRoles(user), getMessages(), request.getLocale());

                if (user.checkAuthorisation(UserModule.AUTH_USER_EDIT)) {
                    model.setSelectable(true);
                    DefaultTableModelColumn editColumn = new DefaultTableModelColumn("", "");
                    editColumn.setRenderer(new TableColumnRenderer() {

                        public String getTemplate() {
View Full Code Here

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

                ((RoleTableModel) roleWidget.getModel()).setCollection(getRoles(user));
            }

            view.addWidget(roleWidget);

            if (user.checkAuthorisation(UserModule.AUTH_ROLE_EDIT)) {
                view.getJson().element("edit", true);
            }
        }
        log.debug("role list: " + (System.currentTimeMillis() - s));
        return new ModelAndView(view, null);
View Full Code Here

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

                    log.debug("fireClicked: " + event.getWidget().getModel().getData(event.getColumn(), event.getRow()));
                }
            });*/
            DefaultTableModel<UserGroup> model = new DefaultTableModel<UserGroup>(userGroupList, getMessages(), request.getLocale());
       
        if (user.checkAuthorisation(UserModule.AUTH_USER_EDIT)) {
            model.setSelectable(true);
            DefaultTableModelColumn editColumn = new DefaultTableModelColumn("", "");
            editColumn.setRenderer(new TableColumnRenderer() {

            public String getTemplate() {
View Full Code Here

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

            ((DefaultTableModel<UserGroup>) userGroupListComponent.getModel()).setCollection(userGroupList);
        }       
               
        view.addWidget(userGroupListComponent);
       
        if (user.checkAuthorisation(UserModule.AUTH_USER_EDIT)) {
            view.getJson().element("edit", true);
        }
       
        return new ModelAndView(view, null);
    }
View Full Code Here

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

            HttpSession session,
            HttpServletRequest request) throws Exception {
        ZeroView view = new ZeroView(getMessages(), request.getLocale());

        User user = getUser();
        if (user.checkAuthorisation(UserModule.AUTH_ROLE_EDIT)) {


            Set<Permission> permissions = (Set<Permission>) session.getAttribute("permissions");
            try {
                for (String key : selected.getSelected().keySet()) {
View Full Code Here

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

        ZeroView view = new ZeroView(getMessages(), request.getLocale());
        log.debug("delete User Group");
          
        User user = getUser();
       
        if (user.checkAuthorisation(UserModule.AUTH_USER_EDIT)) {           
           
            HtmlTableWidget userGroupListComponent = (HtmlTableWidget) getWidgetManager(session).getWidget("USERGROUPLIST");
           
            for(String selectedRow : selected.getSelected().keySet()) {
                log.debug(selectedRow);
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.