gcube-cms-suite/cms-plugin-framework/src/main/java/org/gcube/application/cms/plugins/reports/IndexDocumentReport.java

37 lines
1.4 KiB
Java
Raw Normal View History

2022-02-18 14:41:41 +01:00
package org.gcube.application.cms.plugins.reports;
2022-02-25 11:44:56 +01:00
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.Getter;
2022-02-23 17:13:22 +01:00
import lombok.NonNull;
2022-02-25 11:44:56 +01:00
import lombok.Setter;
2022-03-07 17:59:06 +01:00
import org.bson.Document;
2022-03-04 11:30:11 +01:00
import org.gcube.application.cms.plugins.faults.InvalidPluginRequestException;
2022-02-25 11:44:56 +01:00
import org.gcube.application.cms.plugins.faults.PluginExecutionException;
2022-02-18 14:41:41 +01:00
import org.gcube.application.cms.plugins.requests.IndexDocumentRequest;
2022-03-04 14:23:20 +01:00
import org.gcube.application.geoportal.common.model.document.Project;
2022-04-11 17:23:27 +02:00
import org.gcube.application.geoportal.common.model.document.identification.IdentificationReference;
import org.gcube.application.geoportal.common.model.document.identification.TemporalReference;
import java.util.ArrayList;
import java.util.List;
2022-02-18 14:41:41 +01:00
2022-02-25 11:44:56 +01:00
@Getter
@Setter
2022-02-18 14:41:41 +01:00
public class IndexDocumentReport extends DocumentHandlingReport<IndexDocumentRequest> {
2022-02-25 11:44:56 +01:00
2022-04-11 17:23:27 +02:00
// protected List<IdentificationReference> toSetIndexReferences=new ArrayList<>();
2022-02-25 11:44:56 +01:00
2022-03-04 11:30:11 +01:00
public IndexDocumentReport(@NonNull IndexDocumentRequest theRequest) throws InvalidPluginRequestException {
2022-02-23 17:13:22 +01:00
super(theRequest);
}
2022-02-25 11:44:56 +01:00
2022-04-11 17:23:27 +02:00
// @Override
// public Project prepareResult() throws JsonProcessingException, PluginExecutionException {
// Project toReturn= super.prepareResult();
// if(toSetSpatialReference != null) toReturn.setSpatialReference(toSetSpatialReference);
// if(toSetTemporalReference != null) toReturn.setTemporalReference(toSetTemporalReference);
// return toReturn;
// }
2022-02-18 14:41:41 +01:00
}