Package org.jboss.as.console.client.shared.flow

Examples of org.jboss.as.console.client.shared.flow.FunctionCallback


            node.get(ADDRESS).add("core-service", "management");
            node.get(ADDRESS).add("access", "authorization");
            node.get(OP).set(READ_CHILDREN_RESOURCES_OPERATION);
            node.get(CHILD_TYPE).set("role-mapping");
            node.get("recursive-depth").set("2");
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {

                @Override
                protected void onSuccess(final ModelNode result) {
                    List<ModelNode> roleMappings = result.get(RESULT).asList();
                    for (ModelNode node : roleMappings) {
View Full Code Here


                    node.get(ADDRESS).add("role-mapping", role);
                    node.get(OP).set(ModelDescriptionConstants.REMOVE);
                    steps.add(node);
                }
                comp.get(STEPS).set(steps);
                dispatcher.execute(new DMRAction(comp), new FunctionCallback(control));
            }
        }
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.includeExclude(role, principal, includeExclude);
            node.get(OP).set(READ_RESOURCE_OPERATION);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control){
                @Override
                protected void proceed() {
                    // principal exists - next function will skip its DMR operation
                    control.getContext().push(true);
                    control.proceed();
View Full Code Here

            String scope = role.getType() == HOST ? "hosts" : "server-groups";
            for (String s : role.getScope()) {
                node.get(scope).add(s);
            }
            node.get(OP).set(ADD);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

            compositeNode.get(OP).set(COMPOSITE);
            compositeNode.get(ADDRESS).setEmptyList();
            List<ModelNode> steps = new ArrayList<ModelNode>();
            steps.addAll(asList(baseRoleNode, scopeNode));
            compositeNode.get(STEPS).set(steps);
            dispatcher.execute(new DMRAction(compositeNode), new FunctionCallback(control));
        }
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.scopedRole(role);
            node.get(OP).set(ModelDescriptionConstants.REMOVE);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

                node.get("type").set(ModelType.STRING, principal.getType().name());
                if (realm != null && realm.length() != 0) {
                    node.get("realm").set(ModelType.STRING, realm);
                }
                node.get(OP).set(ADD);
                dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
            }
        }
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.includeExclude(role, principal, includeExclude);
            node.get(OP).set(REMOVE);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.includeExclude(role, principal, includeExclude);
            node.get(OP).set(REMOVE);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control));
        }
View Full Code Here

        @Override
        public void execute(final Control<FunctionContext> control) {
            ModelNode node = ModelHelper.roleMapping(role);
            node.get(OP).set(READ_RESOURCE_OPERATION);
            dispatcher.execute(new DMRAction(node), new FunctionCallback(control) {
                @Override
                protected void proceed() {
                    // role exists - next function will skip its DMR operation
                    control.getContext().push(true);
                    control.proceed();
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.shared.flow.FunctionCallback

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.