This repository has been archived on 2021-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-17 18:04:00 +01:00
|
|
|
package org.gcube.application.geoportal.common.model.legacy;
|
|
|
|
|
2020-11-18 15:16:53 +01:00
|
|
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
|
|
|
|
2020-11-17 18:04:00 +01:00
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import lombok.Getter;
|
|
|
|
import lombok.Setter;
|
|
|
|
|
|
|
|
@Getter
|
|
|
|
@Setter
|
|
|
|
@EqualsAndHashCode
|
2020-11-18 15:16:53 +01:00
|
|
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
|
|
|
|
@JsonSubTypes({
|
|
|
|
@Type(value = GeoServerContent.class),
|
|
|
|
@Type(value = WorkspaceContent.class),
|
|
|
|
})
|
2020-11-17 18:04:00 +01:00
|
|
|
public abstract class PersistedContent {
|
|
|
|
|
|
|
|
//Generic Info
|
|
|
|
private long id;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String toString() {
|
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
|
builder.append("PersistedContent [id=");
|
|
|
|
builder.append(id);
|
|
|
|
builder.append("]");
|
|
|
|
return builder.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|