Package org.jboss.as.console.client.rbac

Examples of org.jboss.as.console.client.rbac.Role


        private void addManagementModelRoleAssignment(final Principals principals, final RoleAssignments assignments,
                final Roles roles, final Property property) {
            boolean add = true;
            String roleName = property.getName();
            Role role = roles.getRole(roleName);
            if (role != null) {
                RoleAssignment.ManagementModel managementModel = new RoleAssignment.ManagementModel(role);
                ModelNode assignmentNode = property.getValue();
                if (assignmentNode.hasDefined("include")) {
                    List<Property> inclusions = assignmentNode.get("include").asPropertyList();
View Full Code Here


    }

    public String asString() {
        StringBuilder builder = new StringBuilder("[");
        for (Iterator<Role> iterator = value.iterator(); iterator.hasNext(); ) {
            Role role = iterator.next();
            builder.append(role.getName());
            if (iterator.hasNext()) {
                builder.append(", ");
            }
        }
        builder.append("]");
View Full Code Here

    static public class RolesCell extends AbstractCell<List<Role>> {

        @Override
        public void render(final Context context, final List<Role> roles, final SafeHtmlBuilder builder) {
            for (Iterator<Role> roleIter = roles.iterator(); roleIter.hasNext(); ) {
                Role role = roleIter.next();
                asSafeHtml(builder, role);
                if (roleIter.hasNext()) {
                    builder.append(SafeHtmlUtils.fromString(", "));
                }
            }
View Full Code Here

TOP

Related Classes of org.jboss.as.console.client.rbac.Role

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.