Apollo

##### Parent Project

- Ctrip Framework Parent

##### Modules

- Apollo BuildTools
- Apollo Core
- Apollo Client
- Apollo Common
- Apollo Biz
- Apollo ConfigService
- Apollo AdminService
- Apollo Portal
- Apollo Assembly
- Apollo Demo

##### Project Documentation

- Project Information
- Project Reports
  - Checkstyle
  - CPD
  - PMD
  - Cobertura Test Coverage

## CPD Results

The following document contains the results of PMD's CPD 5.3.5.

## Duplications

File | Project | Line
--- | --- | ---
com/ctrip/framework/apollo/common/entity/App.java | Apollo Common | 34
com/ctrip/framework/apollo/core/dto/AppDTO.java | Apollo Core | 27
      public String getAppId() {
        return appId;
      }

      public String getName() {
        return name;
      }

      public String getOrgId() {
        return orgId;
      }

      public String getOrgName() {
        return orgName;
      }

      public String getOwnerEmail() {
        return ownerEmail;
      }

      public String getOwnerName() {
        return ownerName;
      }

      public void setAppId(String appId) {
        this.appId = appId;
      }

      public void setName(String name) {
        this.name = name;
      }

      public void setOrgId(String orgId) {
        this.orgId = orgId;
      }

      public void setOrgName(String orgName) {
        this.orgName = orgName;
      }

      public void setOwnerEmail(String ownerEmail) {
        this.ownerEmail = ownerEmail;
      }

      public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
      }

File | Project | Line
--- | --- | ---
com/ctrip/framework/apollo/biz/entity/Commit.java | Apollo Biz | 31
com/ctrip/framework/apollo/core/dto/CommitDTO.java | Apollo Core | 13
      private String comment;

      public String getChangeSets() {
        return changeSets;
      }

      public void setChangeSets(String changeSets) {
        this.changeSets = changeSets;
      }

      public String getAppId() {
        return appId;
      }

      public void setAppId(String appId) {
        this.appId = appId;
      }

      public String getClusterName() {
        return clusterName;
      }

      public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
      }

      public String getNamespaceName() {
        return namespaceName;
      }

      public void setNamespaceName(String namespaceName) {
        this.namespaceName = namespaceName;
      }

      public String getComment() {
        return comment;
      }

      public void setComment(String comment) {
        this.comment = comment;
      }

File | Project | Line
--- | --- | ---
com/ctrip/framework/apollo/portal/auth/CtripUserService.java | Apollo Portal | 66
com/ctrip/framework/apollo/portal/auth/CtripUserService.java | Apollo Portal | 94
        UserServiceRequest request = assembleSearchUserRequest(keyword, offset, limit);

        HttpEntity<UserServiceRequest> entity = new HttpEntity<>(request);
        ResponseEntity<Map<String, List<UserServiceResponse>>> response =
            restTemplate.exchange(getUserServiceUrl(), HttpMethod.POST, entity, responseType);

        if (!response.getBody().containsKey("result")) {
          return Collections.emptyList();
        }

        List<UserInfo> result = Lists.newArrayList();
        result.addAll(
            response.getBody().get("result").stream().map(this::transformUserServiceResponseToUserInfo)
                .collect(Collectors.toList()));

        return result;
      }