Added FileSetPathsDV

This commit is contained in:
Francesco Mangiacrapa 2021-09-29 11:36:13 +02:00
parent c53fc1acb6
commit e4a9f3e4e5
2 changed files with 86 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import org.gcube.application.geoportalcommon.shared.products.model.RelazioneScav
import org.gcube.application.geoportalcommon.shared.products.model.UploadedImageDV;
import org.gcube.application.geoportalcommon.shared.products.model.ValidationReportDV;
import org.gcube.application.geoportalcommon.shared.products.model.ValidationReportDV.ValidationStatus;
import org.gcube.application.geoportalcommon.shared.products.paths.FileSetPathsDV;
import org.gcube.application.geoportalcommon.util.DateUtils;
import org.gcube.application.geoportalcommon.util.URLParserUtil;
import org.slf4j.Logger;
@ -524,7 +525,7 @@ public class ConvertToDataViewModel {
theLayerConessione.setTopicCategory(layerConcessione.getTopicCategory());
theLayerConessione.setValutazioneQualita(layerConcessione.getValutazioneQualita());
theLayerConessione.setRefersTo(refersToBaseConcessione);
List<PersistedContent> actContent = layerConcessione.getActualContent();
if (actContent != null && actContent.size() > 0) {
List<WorkspaceContentDV> listWsContent = new ArrayList<WorkspaceContentDV>();
@ -564,6 +565,24 @@ public class ConvertToDataViewModel {
return theOtherContent;
}
public static FileSetPathsDV getFileSetPaths() {
FileSetPathsDV fsp = new FileSetPathsDV();
LOG.info("readFileSetPaths called");
List<String> fileSetPaths = new ArrayList<String>();
fileSetPaths.add(Concessione.Paths.ABSTRACT_RELAZIONE);
fileSetPaths.add(Concessione.Paths.RELAZIONE);
fileSetPaths.add(Concessione.Paths.IMMAGINI);
fileSetPaths.add(Concessione.Paths.POSIZIONAMENTO);
fileSetPaths.add(Concessione.Paths.PIANTE);
fsp.setFileSetPaths(fileSetPaths);
return fsp;
}
/**
* To bound map.
*

View File

@ -0,0 +1,66 @@
package org.gcube.application.geoportalcommon.shared.products.paths;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* The Class FileSetPathsDV.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* Sep 29, 2021
*/
public class FileSetPathsDV implements Serializable {
/**
*
*/
private static final long serialVersionUID = 7494678009053802818L;
List<String> fileSetPaths = new ArrayList<String>();
/**
* Instantiates a new file set paths DV.
*/
public FileSetPathsDV() {
}
/**
* Instantiates a new file set paths DV.
*
* @param fileSetPaths the file set paths
*/
public FileSetPathsDV(List<String> fileSetPaths) {
super();
this.fileSetPaths = fileSetPaths;
}
/**
* Gets the file set paths.
*
* @return the file set paths
*/
public List<String> getFileSetPaths() {
return fileSetPaths;
}
/**
* Sets the file set paths.
*
* @param fileSetPaths the new file set paths
*/
public void setFileSetPaths(List<String> fileSetPaths) {
this.fileSetPaths = fileSetPaths;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("FileSetPathsDV [fileSetPaths=");
builder.append(fileSetPaths);
builder.append("]");
return builder.toString();
}
}