Examples of addRoleName()


Examples of com.caucho.server.security.SecurityConstraint.addRoleName()

          } else if (roles.length == 0
                     && transportGuarantee == ServletSecurity.TransportGuarantee.NONE) {
            constraint.addConstraint(new PermitEmptyRolesConstraint(true));
          } else {
            for (String role : roles)
              constraint.addRoleName(role);

            if (transportGuarantee == ServletSecurity.TransportGuarantee.CONFIDENTIAL)
              constraint.addConstraint(new TransportConstraint("CONFIDENTIAL"));
          }
View Full Code Here

Examples of com.caucho.server.security.SecurityConstraint.addRoleName()

      } else if (roles.length == 0
        && transportGuarantee == ServletSecurity.TransportGuarantee.NONE) {
        constraint.addConstraint(new PermitEmptyRolesConstraint(true));
      } else {
        for (String role : roles)
          constraint.addRoleName(role);

        if (transportGuarantee
          == ServletSecurity.TransportGuarantee.CONFIDENTIAL)
          constraint.addConstraint(new TransportConstraint("CONFIDENTIAL"));
      }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup.addRoleName()

    if (forUser != null) {
      for (Group group : adminService.getGroups(forUser)) {
        XGroup xGroup = (XGroup) XConverter.createX(group);
        xGroup.clearRoleNames();
        for (Role r: group.getRoles()) {
          xGroup.addRoleName(r.getName());
        }
        xGroups.add(xGroup);
      }
    }
    return xGroups.toArray(new XGroup[0]);
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XUser.addRoleName()

      user.clearRoles();
      user.clearRoleNames();
      XRole[] selecteRoles = getSelectedRoles();
      for(XRole role : selecteRoles) {
        user.addRoleID(role.getId());
        user.addRoleName(role.getId(), role.getName());
      }
    }
    return true;
  }
  public void saveAs(String name, XObject input) {   
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XUser.addRoleName()

              XUser newXUser = new XUser();
              final Object input = new TreeNode(null, newXUser);
              for (XRole r: result) {
                if (r.getName().equalsIgnoreCase("editor")) {
                  newXUser.addRoleID(r.getId());
                  newXUser.addRoleName(r.getId(), r.getName());
                }
                if (r.getName().equalsIgnoreCase("viewer")) {
                  newXUser.addRoleID(r.getId());
                  newXUser.addRoleName(r.getId(), r.getName());
                }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XUser.addRoleName()

                  newXUser.addRoleID(r.getId());
                  newXUser.addRoleName(r.getId(), r.getName());
                }
                if (r.getName().equalsIgnoreCase("viewer")) {
                  newXUser.addRoleID(r.getId());
                  newXUser.addRoleName(r.getId(), r.getName());
                }
              }
              final Workbench wb = (Workbench)Registry.get(Workbench.ID);
              wb.checkOpen(usrEditor, new Callback<Boolean>() {
                public void onSuccess(Boolean result) {
View Full Code Here

Examples of org.apache.archiva.redback.rbac.UserAssignment.addRoleName()

                else
                {
                    ua = rbacManager.createUserAssignment( principal );
                }

                ua.addRoleName( ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ) );
                rbacManager.saveUserAssignment( ua );
            }
            catch ( RbacManagerException e )
            {
                log.warn( "Unable to add role [{}] to {} user.", ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ), principal, e );
View Full Code Here

Examples of org.apache.archiva.redback.rbac.UserAssignment.addRoleName()

                    UserAssignment userAssignment = allUserAssignments.get( ua.getPrincipal() );
                    if ( userAssignment != null )
                    {
                        for ( String roleName : ua.getRoleNames() )
                        {
                            userAssignment.addRoleName( roleName );
                        }
                    }
                    allUserAssignments.put( ua.getPrincipal(), ua );
                }
                allFailed = false;
View Full Code Here

Examples of org.apache.archiva.redback.rbac.UserAssignment.addRoleName()

                else
                {
                    ua = rbacManager.createUserAssignment( principal );
                }

                ua.addRoleName( ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ) );
                rbacManager.saveUserAssignment( ua );
            }
            catch ( RbacManagerException e )
            {
                log.warn( "Unable to add role [{}] to {} user.", ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ), principal, e );
View Full Code Here

Examples of org.apache.archiva.redback.rbac.UserAssignment.addRoleName()

                else
                {
                    ua = rbacManager.createUserAssignment( principal );
                }

                ua.addRoleName( ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ) );
                rbacManager.saveUserAssignment( ua );
            }
            catch ( RbacManagerException e )
            {
                log.warn( "Unable to add role [" + ArchivaRoleConstants.toRepositoryObserverRoleName( repoId ) + "] to "
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.