added set/get listWebContent to layers
This commit is contained in:
parent
f5fd25759a
commit
fbae6a6eba
|
@ -270,19 +270,6 @@ public class ConvertToDataViewModel {
|
|||
|
||||
}
|
||||
|
||||
// TO AVOID SERIALIZATION ISSUE AGAINST GWT
|
||||
// public static List<String> toListString(List<String> orginList){
|
||||
// if(orginList==null)
|
||||
// return null;
|
||||
//
|
||||
// List<String> destList = new ArrayList<String>(orginList.size());
|
||||
// for (String orgValue : orginList) {
|
||||
// destList.add(orgValue);
|
||||
// }
|
||||
//
|
||||
// return destList;
|
||||
// }
|
||||
|
||||
/**
|
||||
* To user.
|
||||
*
|
||||
|
@ -521,6 +508,7 @@ public class ConvertToDataViewModel {
|
|||
theLayerConessione.setLayerUUID(layerConcessione.getLayerUUID());
|
||||
theLayerConessione.setAuthors(layerConcessione.getAuthors());
|
||||
|
||||
layerConcessione.getActualContent()
|
||||
if (bounds == null)
|
||||
bounds = toBoundMap(layerConcessione.getBbox());
|
||||
|
||||
|
@ -537,6 +525,18 @@ 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>();
|
||||
|
||||
for (PersistedContent content : actContent) {
|
||||
if (content != null && content instanceof WorkspaceContent) {
|
||||
listWsContent.add(toWorkspaceContent((WorkspaceContent) content));
|
||||
}
|
||||
}
|
||||
theLayerConessione.setListWsContent(listWsContent);
|
||||
}
|
||||
|
||||
LOG.debug("Returning: " + theLayerConessione);
|
||||
return theLayerConessione;
|
||||
|
|
|
@ -5,13 +5,14 @@ import java.util.List;
|
|||
|
||||
import org.gcube.application.geoportalcommon.shared.gis.BoundsMap;
|
||||
import org.gcube.application.geoportalcommon.shared.products.BaseConcessioneDV;
|
||||
import org.gcube.application.geoportalcommon.shared.products.content.WorkspaceContentDV;
|
||||
|
||||
/**
|
||||
* The Class LayerConcessioneDV.
|
||||
*
|
||||
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||||
*
|
||||
* Sep 9, 2021
|
||||
* Sep 9, 2021
|
||||
*/
|
||||
public class LayerConcessioneDV extends SDILayerDescriptorDV implements Serializable {
|
||||
|
||||
|
@ -45,6 +46,8 @@ public class LayerConcessioneDV extends SDILayerDescriptorDV implements Serializ
|
|||
|
||||
private BaseConcessioneDV refersTo;
|
||||
|
||||
private List<WorkspaceContentDV> listWsContent;
|
||||
|
||||
/**
|
||||
* Instantiates a new layer concessione DV.
|
||||
*/
|
||||
|
@ -214,6 +217,25 @@ public class LayerConcessioneDV extends SDILayerDescriptorDV implements Serializ
|
|||
this.refersTo = refersTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the list ws content.
|
||||
*
|
||||
* @param listWsContent the new list ws content
|
||||
*/
|
||||
public void setListWsContent(List<WorkspaceContentDV> listWsContent) {
|
||||
this.listWsContent = listWsContent;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the list ws content.
|
||||
*
|
||||
* @return the list ws content
|
||||
*/
|
||||
public List<WorkspaceContentDV> getListWsContent() {
|
||||
return listWsContent;
|
||||
}
|
||||
|
||||
/**
|
||||
* To string.
|
||||
*
|
||||
|
@ -238,6 +260,10 @@ public class LayerConcessioneDV extends SDILayerDescriptorDV implements Serializ
|
|||
builder.append(scalaAcquisizione);
|
||||
builder.append(", authors=");
|
||||
builder.append(authors);
|
||||
builder.append(", refersTo=");
|
||||
builder.append(refersTo);
|
||||
builder.append(", listWsContent=");
|
||||
builder.append(listWsContent);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue