2022-02-04 17:45:47 +01:00
|
|
|
package org.gcube.application.geoportal.common.model.configuration;
|
|
|
|
|
2022-03-10 18:15:10 +01:00
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
2022-02-04 17:45:47 +01:00
|
|
|
import org.bson.Document;
|
|
|
|
|
|
|
|
public class Index extends Document {
|
2022-09-20 12:19:39 +02:00
|
|
|
|
|
|
|
public static class KnownTypes{
|
|
|
|
public static final String GIS_CENTROIDS="GIS_CENTROIDS";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-03-10 18:15:10 +01:00
|
|
|
public static final String TYPE = "_type";
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
public String getType() {
|
|
|
|
return super.getString(TYPE);
|
|
|
|
}
|
|
|
|
|
|
|
|
public Index() {
|
|
|
|
super();
|
|
|
|
}
|
|
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
public Index(String type) {
|
|
|
|
this.put(TYPE, type);
|
|
|
|
}
|
2022-02-04 17:45:47 +01:00
|
|
|
}
|