Package org.apache.syncope.console.pages.Roles

Examples of org.apache.syncope.console.pages.Roles.RoleSummaryUpdateEvent


    @Override
    public void onEvent(final IEvent<?> event) {
        super.onEvent(event);

        if (event.getPayload() instanceof RoleSummaryUpdateEvent) {
            final RoleSummaryUpdateEvent update = (RoleSummaryUpdateEvent) event.getPayload();

            fragment = new Fragment("rolePanel", (update.getSelectedNodeId() == 0
                    ? "rootPanel" : "roleViewPanel"), this);

            if (update.getSelectedNodeId() == 0) {
                actionLink = new TreeActionLinkPanel("actionLink", update.getSelectedNodeId(),
                        new CompoundPropertyModel(this.selectedNode), window, pageRef);
                actionLink.setOutputMarkupId(true);
                fragment.addOrReplace(actionLink);
            } else {
                this.selectedNode = restClient.readRole(update.getSelectedNodeId());
                roleTabPanel = new RoleTabPanel("nodeViewPanel", this.selectedNode, window, pageRef);
                roleTabPanel.setOutputMarkupId(true);
                fragment.addOrReplace(roleTabPanel);
            }

            replace(fragment);
            update.getTarget().add(this);
        }
    }
View Full Code Here


            protected void onNodeLinkClicked(final Object node, final BaseTree baseTree, final AjaxRequestTarget target) {

                DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) node;
                RoleTO unitObject = (RoleTO) treeNode.getUserObject();

                send(getPage(), Broadcast.BREADTH, new RoleSummaryUpdateEvent(target, unitObject.getId()));

            }
        };

        MetaDataRoleAuthorizationStrategy.authorize(tree, ENABLE, xmlRolesReader.getAllAllowedRoles("Roles", "read"));
View Full Code Here

            updateTree();

            update.getTarget().add(treeContainer);

            send(getPage(), Broadcast.BREADTH,
                    new RoleSummaryUpdateEvent(update.getTarget(), update.getSelectedNodeId()));
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.syncope.console.pages.Roles.RoleSummaryUpdateEvent

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.