Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@94370 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-04 14:52:41 +00:00
parent 71bc530f3f
commit f1cdaed18e
1 changed files with 16 additions and 1 deletions

View File

@ -4891,7 +4891,22 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
templateData.setName(desc.getName());
templateData.setDescription(desc.getDescription());
templateData.setAgency(desc.getAgency());
templateData.setCategory(desc.getTemplate().getCategory().name());
switch (desc.getTemplate().getCategory()){
case CODELIST:
templateData.setCategory("Codelist");
break;
case DATASET:
templateData.setCategory("Dataset");
break;
case GENERIC:
templateData.setCategory("Generic");
break;
default:
templateData.setCategory("No set");
break;
};
templateDataList.add(templateData);
}
logger.debug("Retrieved TemplateData List");