Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@94017 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-01 16:32:33 +00:00
parent c3406eb060
commit 5f77c14c1e
1 changed files with 7 additions and 3 deletions

View File

@ -33,6 +33,7 @@ import org.gcube.common.resources.gcore.ServiceEndpoint.Profile;
import org.gcube.common.resources.gcore.utils.Group;
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationProvider;
import org.gcube.data.analysis.tabulardata.commons.utils.AuthorizationToken;
import org.gcube.data.analysis.tabulardata.commons.webservice.exception.SecurityException;
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TaskStatus;
import org.gcube.data.analysis.tabulardata.commons.webservice.types.TemplateDescription;
import org.gcube.data.analysis.tabulardata.commons.webservice.types.operations.OperationDefinition;
@ -4338,11 +4339,14 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
String[] usersArray = users.toArray(new String[0]);
logger.debug("Share with Users: " + users);
service.share(serviceTR, usersArray);
} catch (SecurityException e) {
e.printStackTrace();
throw new TDGWTServiceException(e.getLocalizedMessage());
} catch (Throwable e) {
e.printStackTrace();
throw new TDGWTServiceException("Error in setShare: "
+ e.getLocalizedMessage());
throw new TDGWTServiceException("Error on service");
}
}