Examples of IssueAuthorizationDto


Examples of org.sonar.core.issue.db.IssueAuthorizationDto

      projects.add(project);

      // All project are visible by anyone
      // TODO set different groups/users to test search issues queries with more realistic data
      batchSession.enqueue(new InsertDto<IssueAuthorizationDto>(IndexDefinition.ISSUES_AUTHORIZATION.getIndexType(),
        new IssueAuthorizationDto().setProjectUuid(project.uuid()).setGroups(newArrayList(DefaultGroups.ANYONE)), false));

      for (int fileIndex = 0; fileIndex < NUMBER_FILES_PER_PROJECT; fileIndex++) {
        String index = projectIndex * PROJECTS_NUMBER + fileIndex + "";
        ComponentDto file = ComponentTesting.newFileDto(project)
          .setId(ids++)
View Full Code Here

Examples of org.sonar.core.issue.db.IssueAuthorizationDto

        Map<String, Object> row = (Map<String, Object>) context.getResultObject();
        String project = (String) row.get("project");
        String user = (String) row.get("permissionUser");
        String group = (String) row.get("permissionGroup");
        Date updatedAt = (Date) row.get("updatedAt");
        IssueAuthorizationDto issueAuthorizationDto = authorizationDtoMap.get(project);
        if (issueAuthorizationDto == null) {
          issueAuthorizationDto = new IssueAuthorizationDto()
            .setProjectUuid(project);
          issueAuthorizationDto.setUpdatedAt(updatedAt);
        }
        if (group != null) {
          issueAuthorizationDto.addGroup(group);
        }
        if (user != null) {
          issueAuthorizationDto.addUser(user);
        }
        authorizationDtoMap.put(project, issueAuthorizationDto);
      }

      @Override
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.