Examples of RoleAssignment


Examples of org.jboss.as.console.client.administration.role.model.RoleAssignment

            @Override
            public void onSelectionChange(final SelectionChangeEvent event) {
                Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                    @Override
                    public void execute() {
                        RoleAssignment selected = selectionModel.getSelectedObject();
                        updateFormFields(selected);
                    }
                });
            }
        });
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.model.RoleAssignment

                            Principal principal = principalItem.getValue();
                            if (realm != null && realm.length() != 0) {
                                principal = new Principal(principal.getId() + "@" + realm, principal.getName(),
                                        principal.getType());
                            }
                            RoleAssignment roleAssignment = new RoleAssignment(principal);
                            roleAssignment.setRealm(realm);
                            if ("Include".equals(includeExcludeItem.getValue())) {
                                roleAssignment.addRoles(rolesItem.getValue());
                            } else if ("Exclude".equals(includeExcludeItem.getValue())) {
                                roleAssignment.addExcludes(rolesItem.getValue());
                            }
                            presenter.addRoleAssignment(roleAssignment);
                        }
                    }
                },
View Full Code Here

Examples of org.myphotodiary.model.RoleAssignment

      JsonUserAdminCmd.RoleRecordRsp jsonRsp = new JsonUserAdminCmd.RoleRecordRsp();
      try {
        // RBAC
        AccessController.checkAuthorization(request, Action.createUser, null);
       
        RoleAssignment role = ModelFactory.createRole(request, false, getServletContext(), null, null);
        jsonRsp.setResult("OK");
        jsonRsp.setRecord(role);
      }
      catch (ModelException ex) {
        getServletContext().log("Role creation failure", ex);
View Full Code Here

Examples of org.myphotodiary.model.RoleAssignment

      JsonUserAdminCmd.RoleRecordRsp jsonRsp = new JsonUserAdminCmd.RoleRecordRsp();
      try {
        // RBAC
        AccessController.checkAuthorization(request, Action.createUser, null);
       
        RoleAssignment role = ModelFactory.createRole(request, false, getServletContext(), null, null);
        jsonRsp.setResult("OK");
        jsonRsp.setRecord(role);
      }
      catch (ModelException ex) {
        getServletContext().log("Role creation failure", ex);
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.