Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@97610 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-06-20 15:53:24 +00:00
parent cf26fb2986
commit 8886da820e
1 changed files with 6 additions and 1 deletions

View File

@ -6009,7 +6009,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
new Long(tabResource.getTrId().getId()));
TabularResource tr = service.getTabularResource(tabularResourceId);
if(tr.isFinalized()){
throw new TDGWTServiceException(
"Tabular Resource is Final");
}
if (tabResource.getName() != null) {
NameMetadata name = new NameMetadata(tabResource.getName());
tr.setMetadata(name);