
org.dspace.health.ReportInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
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 org.dspace.health;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.temporal.ChronoUnit;
/**
* Information about a report run accessible by each check.
*
* @author LINDAT/CLARIN dev team
*/
public class ReportInfo {
private boolean verbose_;
private LocalDate from_;
private LocalDate till_;
public ReportInfo(int for_last_n_days) {
till_ = LocalDate.now(ZoneOffset.UTC);
// get info from the last n days
from_ = till_.minus(for_last_n_days, ChronoUnit.DAYS);
// filter output
verbose_ = false;
}
public void verbose(boolean verbose) {
verbose_ = verbose;
}
public boolean verbose() {
return verbose_;
}
public LocalDate from() {
return from_;
}
public LocalDate till() {
return till_;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy