Examples of groups()


Examples of org.jboss.seam.rest.validation.ValidateRequest.groups()

        Set<ConstraintViolation<Object>> violations = new HashSet<ConstraintViolation<Object>>();

        MethodMetadata method = metadata.getMethodMetadata(ctx.getMethod());
        ValidateRequest interceptorBinding = method.getInterceptorBinding();
        Class<?>[] groups = interceptorBinding.groups();

        // validate JAX-RS resource fields
        if (interceptorBinding.validateResourceFields()) {
            log.debugv("Validating JAX-RS resource {0}", ctx.getTarget());
            violations.addAll(validator.validate(ctx.getTarget(), groups));
View Full Code Here

Examples of org.nemesis.forum.ProfileManager.groups()

        int nb=manager.getGroupCount();
       
       
        GroupBean gb=null;
        Group group = null
        Iterator groupIterator = manager.groups(start,maxPageItems);
        while( groupIterator.hasNext() ) {
          group = (Group)groupIterator.next();
         
          if(!SecurityTools.isGroupAdmin(getAuthToken(request),group)){
            nb--;
View Full Code Here

Examples of org.sonar.server.issue.index.IssueAuthorizationDoc.groups()

    // Check in index
    IssueAuthorizationDoc issueAuthorizationDoc = index.getNullableByKey(project.uuid());
    assertThat(issueAuthorizationDoc).isNotNull();
    assertThat(issueAuthorizationDoc.project()).isEqualTo(project.uuid());
    assertThat(issueAuthorizationDoc.users()).containsExactly(user.getLogin());
    assertThat(issueAuthorizationDoc.groups()).isEmpty();
  }

  @Test
  public void remove_component_user_permission() throws Exception {
    MockUserSession.set().setLogin("admin").addProjectPermissions(UserRole.ADMIN, project.key());
View Full Code Here

Examples of org.sonatype.nexus.validation.Validate.groups()

    final ClassLoader tccl = Thread.currentThread().getContextClassLoader();
    try {
      Thread.currentThread().setContextClassLoader(getClass().getClassLoader());
      final Validate validate = mi.getMethod().getAnnotation(Validate.class);

      validateParameters(mi.getThis(), mi.getMethod(), mi.getArguments(), validate.groups());

      final Object result = mi.proceed();

      validateReturnValue(mi.getThis(), mi.getMethod(), result, validate.groups());
View Full Code Here

Examples of org.testng.annotations.AfterClass.groups()

          new String[0], new String[0],
          false, false,
          true, false,
          bs.alwaysRun(),
          bs.dependsOnGroups(), bs.dependsOnMethods(),
          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
    else if (annotationClass == IAfterMethod.class) {
      AfterMethod bs = (AfterMethod) a;
      result = createConfigurationTag(cls, a,
View Full Code Here

Examples of org.testng.annotations.AfterClass.groups()

          new String[0], new String[0],
          false, false,
          false, true,
          bs.alwaysRun(),
          bs.dependsOnGroups(), bs.dependsOnMethods(),
          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
   
    return result;
  }
View Full Code Here

Examples of org.testng.annotations.AfterGroups.groups()

          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
    else if (annotationClass == IAfterGroups.class) {
      AfterGroups bs = (AfterGroups) a;
      final String[] groups= bs.value().length > 0 ? bs.value() : bs.groups();
      result = createConfigurationTag(cls, a,
          false, false,
          false, false,
          new String[0], groups,
          false, false,
View Full Code Here

Examples of org.testng.annotations.AfterGroups.groups()

          new String[0], groups,
          false, false,
          false, false,
          bs.alwaysRun(),
          bs.dependsOnGroups(), bs.dependsOnMethods(),
          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
    else if (annotationClass == IBeforeClass.class) {
      BeforeClass bs = (BeforeClass) a;
      result = createConfigurationTag(cls, a,
View Full Code Here

Examples of org.testng.annotations.AfterGroups.groups()

          new String[0], new String[0],
          true, false,
          false, false,
          bs.alwaysRun(),
          bs.dependsOnGroups(), bs.dependsOnMethods(),
          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
    else if (annotationClass == IAfterClass.class) {
      AfterClass bs = (AfterClass) a;
      result = createConfigurationTag(cls, a,
View Full Code Here

Examples of org.testng.annotations.AfterGroups.groups()

          new String[0], new String[0],
          false, true,
          false, false,
          bs.alwaysRun(),
          bs.dependsOnGroups(), bs.dependsOnMethods(),
          bs.description(), bs.enabled(), bs.groups(),
          bs.inheritGroups(), null);
    }
    else if (annotationClass == IBeforeMethod.class) {
      BeforeMethod bs = (BeforeMethod) a;
      result = createConfigurationTag(cls, a,
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.