io.gdcc.xoai.serviceprovider.parameters.ListIdentifiersParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xoai-service-provider Show documentation
Show all versions of xoai-service-provider Show documentation
OAI-PMH service provider implementation. Use it as a harvesting client to read remote repositories.
The newest version!
/*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package io.gdcc.xoai.serviceprovider.parameters;
import java.time.Instant;
public class ListIdentifiersParameters {
public static ListIdentifiersParameters request() {
return new ListIdentifiersParameters();
}
private String metadataPrefix;
private String setSpec;
private Instant from;
private Instant until;
private String granularity;
public String getMetadataPrefix() {
return metadataPrefix;
}
public ListIdentifiersParameters withMetadataPrefix(String metadataPrefix) {
this.metadataPrefix = metadataPrefix;
return this;
}
public String getSetSpec() {
return setSpec;
}
public ListIdentifiersParameters withSetSpec(String setSpec) {
this.setSpec = setSpec;
return this;
}
public Instant getFrom() {
return from;
}
public ListIdentifiersParameters withFrom(Instant from) {
this.from = from;
return this;
}
public Instant getUntil() {
return until;
}
public ListIdentifiersParameters withUntil(Instant until) {
this.until = until;
return this;
}
public boolean areValid() {
return metadataPrefix != null;
}
public void withGranularity(String granularity) {
this.granularity = granularity;
}
public String getGranularity() {
return granularity;
}
}