Package com.puppetlabs.geppetto.forge.v3.model

Examples of com.puppetlabs.geppetto.forge.v3.model.Release


      return null;
    int limit = pagination.getLimit();
    if(limit > offset)
      limit = offset;
    offset -= limit;
    return new PaginationInfo(offset - limit, limit);
  }
View Full Code Here


  private ProgressMonitor currentMonitor;

  @Override
  public void abortCurrentRequest() {
    ProgressMonitor monitor = currentMonitor;
    if(monitor != null)
      monitor.cancel();
    client.abortCurrentRequest();
  }
View Full Code Here

    return client.get(getEndpointSegment(), params, getPaginatedResultType());
  }

  @Override
  public List<T> listAll(Query<T> query, SortBy<T> sortBy, boolean includeDeleted) throws IOException {
    ProgressMonitor monitor = new NullProgressMonitor();
    currentMonitor = monitor;
    try {
      PaginatedResult<T> page = list(query, sortBy, null, includeDeleted);
      monitor.beginTask(page.getTotal());

      int total = page.getTotal();
      if(total == 0)
        return Collections.emptyList();
View Full Code Here

  @Override
  protected void configure() {
    bind(ForgeClient.class).to(ForgeHttpClient.class);
    install(new V1Module());
    install(new V2Module());
    install(new V3Module());
    bind(MetadataRepository.class).to(MetadataRepositoryImpl.class);
  }
View Full Code Here

    }
    return null;
  }

  public static Version getModuleVersion(Module module) {
    Release release = module.getCurrentRelease();
    return release == null
        ? null
        : release.getVersion();
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.v3.model.Release

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.