- Integrated the grouped custom layers configuration [#25110]

This commit is contained in:
Francesco Mangiacrapa 2023-05-15 15:49:58 +02:00
parent 57d4ab211a
commit f5785268ef
3 changed files with 149 additions and 1 deletions

View File

@ -0,0 +1,70 @@
package org.gcube.application.geoportalcommon.shared.geoportal.materialization;
import java.io.Serializable;
/**
* The Class CustomLayerDV.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* May 12, 2023
*/
public class CustomLayerDV implements Serializable {
String title;
String name;
String wms_url;
boolean display = false;
public CustomLayerDV() {
}
public String getTitle() {
return title;
}
public String getName() {
return name;
}
public String getWms_url() {
return wms_url;
}
public boolean isDisplay() {
return display;
}
public void setTitle(String title) {
this.title = title;
}
public void setName(String name) {
this.name = name;
}
public void setWms_url(String wms_url) {
this.wms_url = wms_url;
}
public void setDisplay(boolean display) {
this.display = display;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("CustomLayerDV [title=");
builder.append(title);
builder.append(", name=");
builder.append(name);
builder.append(", wms_url=");
builder.append(wms_url);
builder.append(", display=");
builder.append(display);
builder.append("]");
return builder.toString();
}
}

View File

@ -0,0 +1,78 @@
package org.gcube.application.geoportalcommon.shared.geoportal.materialization;
import java.io.Serializable;
import java.util.List;
import org.gcube.application.geoportalcommon.shared.geoportal.config.GeoportalConfigurationID;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The Class GroupedCustomLayersDV.
*
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
*
* May 12, 2023
*/
public class GroupedCustomLayersDV implements Serializable, GeoportalConfigurationID {
private String name;
private String description;
@JsonProperty(value = "layers")
private List<CustomLayerDV> listCustomLayers;
@Override
public String getID() {
// TODO Auto-generated method stub
return null;
}
@Override
public void setID(String configID) {
// TODO Auto-generated method stub
}
public GroupedCustomLayersDV() {
}
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public List<CustomLayerDV> getListCustomLayers() {
return listCustomLayers;
}
public void setName(String name) {
this.name = name;
}
public void setDescription(String description) {
this.description = description;
}
public void setListCustomLayers(List<CustomLayerDV> listCustomLayers) {
this.listCustomLayers = listCustomLayers;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("GroupedCustomLayersDV [name=");
builder.append(name);
builder.append(", description=");
builder.append(description);
builder.append(", listCustomLayers=");
builder.append(listCustomLayers);
builder.append("]");
return builder.toString();
}
}

View File

@ -92,7 +92,7 @@ public class UCD_Tests {
* *
* @return the client * @return the client
*/ */
//@Before @Before
public void getClient() { public void getClient() {
readContextSettings(); readContextSettings();
ScopeProvider.instance.set(CONTEXT); ScopeProvider.instance.set(CONTEXT);