Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.RepositoryDependentStatusResource


    resource.setLocalStatus("localStatus");
    resource.setProxyMode("proxyMode");
    resource.setRepoType("repoType");
    resource.setRemoteStatus("remoteStatus");

    RepositoryDependentStatusResource dep = new RepositoryDependentStatusResource();
    dep.setFormat("maven4");
    dep.setId("someid");
    dep.setLocalStatus("somestatus");
    dep.setRepoType("type");

    resource.addDependentRepo(dep);

    resourceResponse.setData(resource);
View Full Code Here


          result = (RepositoryStatusResourceResponse) this.get(context, request, response, null);

          for (ShadowRepository shadow : getRepositoryRegistry().getRepositoriesWithFacet(
              ShadowRepository.class)) {
            if (repository.getId().equals(shadow.getMasterRepository().getId())) {
              RepositoryDependentStatusResource dependent = new RepositoryDependentStatusResource();

              dependent.setId(shadow.getId());

              dependent.setRepoType(getRestRepoType(shadow));

              dependent.setFormat(shadow.getRepositoryContentClass().getId());

              dependent.setLocalStatus(shadow.getLocalStatus().toString());

              result.getData().addDependentRepo(dependent);
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.rest.model.RepositoryDependentStatusResource

Copyright © 2018 www.massapicom. 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.