Add new entity classes to read the SDI json payload in order to get all credentials
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-access/gcube-geonetwork-connector@153238 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
25262352bd
commit
7df9b6db33
|
@ -0,0 +1,17 @@
|
|||
package org.gcube.data.access.connector.rest.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class AvailableInstances {
|
||||
|
||||
private List<InstancesEntity> availableInstances;
|
||||
|
||||
public List<InstancesEntity> getAvailableInstances() {
|
||||
return availableInstances;
|
||||
}
|
||||
|
||||
public void setAvailableInstances(List<InstancesEntity> availableInstances) {
|
||||
this.availableInstances = availableInstances;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.gcube.data.access.connector.rest.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class GeoserverClusterConfigurationEntity {
|
||||
|
||||
private List<InstancesEntity> availableInstances;
|
||||
|
||||
public List<InstancesEntity> getAvailableInstances() {
|
||||
return availableInstances;
|
||||
}
|
||||
|
||||
public void setAvailableInstances(List<InstancesEntity> availableInstances) {
|
||||
this.availableInstances = availableInstances;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
package org.gcube.data.access.connector.rest.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class InstancesEntity {
|
||||
|
||||
private String baseEndpoint;
|
||||
private List<AccessibleCredentialsEntity> accessibleCredentials;
|
||||
private VersionEntity version;
|
||||
private String contextGroup;
|
||||
private String sharedGroup;
|
||||
private String publicGroup;
|
||||
|
||||
public String getBaseEndpoint() {
|
||||
return baseEndpoint;
|
||||
}
|
||||
|
||||
public void setBaseEndpoint(String baseEndpoint) {
|
||||
this.baseEndpoint = baseEndpoint;
|
||||
}
|
||||
|
||||
public List<AccessibleCredentialsEntity> getAccessibleCredentials() {
|
||||
return accessibleCredentials;
|
||||
}
|
||||
|
||||
public void setAccessibleCredentials(List<AccessibleCredentialsEntity> accessibleCredentials) {
|
||||
this.accessibleCredentials = accessibleCredentials;
|
||||
}
|
||||
|
||||
public VersionEntity getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
public void setVersion(VersionEntity version) {
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getContextGroup() {
|
||||
return contextGroup;
|
||||
}
|
||||
|
||||
public void setContextGroup(String contextGroup) {
|
||||
this.contextGroup = contextGroup;
|
||||
}
|
||||
|
||||
public String getSharedGroup() {
|
||||
return sharedGroup;
|
||||
}
|
||||
|
||||
public void setSharedGroup(String sharedGroup) {
|
||||
this.sharedGroup = sharedGroup;
|
||||
}
|
||||
|
||||
public String getPublicGroup() {
|
||||
return publicGroup;
|
||||
}
|
||||
|
||||
public void setPublicGroup(String publicGroup) {
|
||||
this.publicGroup = publicGroup;
|
||||
}
|
||||
|
||||
public class VersionEntity {
|
||||
|
||||
private String major;
|
||||
private String minor;
|
||||
private String build;
|
||||
|
||||
public String getMajor() {
|
||||
return major;
|
||||
}
|
||||
|
||||
public void setMajor(String major) {
|
||||
this.major = major;
|
||||
}
|
||||
|
||||
public String getMinor() {
|
||||
return minor;
|
||||
}
|
||||
|
||||
public void setMinor(String minor) {
|
||||
this.minor = minor;
|
||||
}
|
||||
|
||||
public String getBuild() {
|
||||
return build;
|
||||
}
|
||||
|
||||
public void setBuild(String build) {
|
||||
this.build = build;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package org.gcube.data.access.connector.rest.entity;
|
||||
|
||||
public class SDIEntity {
|
||||
|
||||
private String contextName;
|
||||
private InstancesEntity geonetworkConfiguration;
|
||||
private GeoserverClusterConfigurationEntity geoserverClusterConfiguration;
|
||||
|
||||
public String getContextName() {
|
||||
return contextName;
|
||||
}
|
||||
|
||||
public void setContextName(String contextName) {
|
||||
this.contextName = contextName;
|
||||
}
|
||||
|
||||
public InstancesEntity getGeonetworkConfiguration() {
|
||||
return geonetworkConfiguration;
|
||||
}
|
||||
|
||||
public void setGeonetworkConfiguration(InstancesEntity geonetworkConfiguration) {
|
||||
this.geonetworkConfiguration = geonetworkConfiguration;
|
||||
}
|
||||
|
||||
public GeoserverClusterConfigurationEntity getGeoserverClusterConfiguration() {
|
||||
return geoserverClusterConfiguration;
|
||||
}
|
||||
|
||||
public void setGeoserverClusterConfiguration(GeoserverClusterConfigurationEntity geoserverClusterConfiguration) {
|
||||
this.geoserverClusterConfiguration = geoserverClusterConfiguration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SDI [contextName=" + contextName + ", GeonetworkConfiguration=" + geonetworkConfiguration
|
||||
+ ", GeoserverClusterConfiguration=" + geoserverClusterConfiguration + "]";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue