All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.nasa.pds.api.registry.model.Unlimited Maven / Gradle / Ivy

There is a newer version: 4.5.6
Show newest version
package gov.nasa.pds.api.registry.model;

import gov.nasa.pds.api.registry.LidvidsContext;

import java.util.List;

class Unlimited implements LidvidsContext {
  final private String lidvid;

  Unlimited(String id) {
    this.lidvid = id;
  }

  @Override
  public String getProductIdentifierStr() {
    return this.lidvid;
  }

  @Override
  public Integer getLimit() {
    return Integer.MAX_VALUE;
  }

  @Override
  public List getSortFields() {
    return List.of("ops:Harvest_Info/ops:harvest_date_time");
  }

  @Override
  public List getSearchAfterValues() {
    return List.of("");  // TODO: Check whether this actually works or if it needs to be set per-page in the contexts in which Unlimited is used
  }

  @Override
  public boolean getSingletonResultExpected() {
    return false;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy