Skip to content
Snippets Groups Projects
Commit 112a72fe authored by felmer's avatar felmer
Browse files

SP-650, BIS-421: Label attribute added to AggregationServiceDescription

SVN: 29170
parent d4df18ee
No related branches found
No related tags found
No related merge requests found
...@@ -203,6 +203,7 @@ public class QueryApiServer extends AbstractServer<IQueryApiServer> implements I ...@@ -203,6 +203,7 @@ public class QueryApiServer extends AbstractServer<IQueryApiServer> implements I
{ {
AggregationServiceDescription info = new AggregationServiceDescription(); AggregationServiceDescription info = new AggregationServiceDescription();
info.setServiceKey(service.getKey()); info.setServiceKey(service.getKey());
info.setLabel(service.getLabel());
info.setDataStoreCode(dataStore.getCode()); info.setDataStoreCode(dataStore.getCode());
info.setDataStoreBaseUrl(dataStore.getDownloadUrl()); info.setDataStoreBaseUrl(dataStore.getDownloadUrl());
services.add(info); services.add(info);
...@@ -234,7 +235,7 @@ public class QueryApiServer extends AbstractServer<IQueryApiServer> implements I ...@@ -234,7 +235,7 @@ public class QueryApiServer extends AbstractServer<IQueryApiServer> implements I
@Override @Override
public int getMinorVersion() public int getMinorVersion()
{ {
return 4; return 5;
} }
private QueryTableModel translate(TableModel result) private QueryTableModel translate(TableModel result)
......
...@@ -36,6 +36,8 @@ public class AggregationServiceDescription implements Serializable ...@@ -36,6 +36,8 @@ public class AggregationServiceDescription implements Serializable
private String serviceKey; private String serviceKey;
private String label;
private AggregationServiceType type; private AggregationServiceType type;
/** /**
...@@ -64,6 +66,16 @@ public class AggregationServiceDescription implements Serializable ...@@ -64,6 +66,16 @@ public class AggregationServiceDescription implements Serializable
return serviceKey; return serviceKey;
} }
/**
* Returns the label of the service.
*
* @since 1.5
*/
public String getLabel()
{
return label;
}
/** /**
* The type of the service. Non-null. * The type of the service. Non-null.
*/ */
...@@ -89,6 +101,11 @@ public class AggregationServiceDescription implements Serializable ...@@ -89,6 +101,11 @@ public class AggregationServiceDescription implements Serializable
this.serviceKey = key; this.serviceKey = key;
} }
public void setLabel(String label)
{
this.label = label;
}
public void setType(AggregationServiceType type) public void setType(AggregationServiceType type)
{ {
this.type = type; this.type = type;
...@@ -98,6 +115,6 @@ public class AggregationServiceDescription implements Serializable ...@@ -98,6 +115,6 @@ public class AggregationServiceDescription implements Serializable
public String toString() public String toString()
{ {
return "AggregationServiceDescription [dataStoreCode=" + dataStoreCode + ", serviceKey=" return "AggregationServiceDescription [dataStoreCode=" + dataStoreCode + ", serviceKey="
+ serviceKey + ", type=" + type + "]"; + serviceKey + ", label=" + label + ", type=" + type + "]";
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment