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:
parent
c3406eb060
commit
5f77c14c1e
|
@ -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;
|
||||
|
@ -4339,10 +4340,13 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue