This commit is contained in:
Lucio Lelii 2017-02-22 10:40:15 +00:00
parent e4387860dd
commit 2dc8b8c41a
3 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,7 @@
<ReleaseNotes>
<Changeset component="org.gcube.data-analysis.r-connector.2.1.2" date="2017-02-22">
<Change>porting to tabular-data-cl 2.0.0</Change>
</Changeset>
<Changeset component="org.gcube.data-analysis.r-connector.2.1.0" date="2016-10-03">
<Change>porting to smartgears 2.0</Change>
</Changeset>

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.data.analysis</groupId>
<artifactId>r-connector</artifactId>
<version>2.1.1-SNAPSHOT</version>
<version>2.1.2-SNAPSHOT</version>
<name>RConnector</name>
<description>makes R available in the infrastructure</description>
@ -62,7 +62,7 @@
<dependency>
<groupId>org.gcube.data.analysis.tabulardata</groupId>
<artifactId>tabulardata-client-library</artifactId>
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
<version>[2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)</version>
</dependency>
<!-- jersey -->

View File

@ -16,10 +16,7 @@ import org.gcube.common.authorization.library.provider.SecurityTokenProvider;
import org.gcube.common.database.DatabaseEndpointIdentifier;
import org.gcube.common.database.DatabaseProvider;
import org.gcube.common.database.endpoint.DatabaseEndpoint;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.data.analysis.rconnector.Info.DataBaseInfo;
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.types.TabularResource;
import org.gcube.data.analysis.tabulardata.model.column.Column;
import org.gcube.data.analysis.tabulardata.model.column.type.IdColumnType;
@ -39,7 +36,6 @@ public class InfoRetriever {
@SuppressWarnings("unchecked")
public Info retrieve(String userName, Long tabularResourceId){
try {
AuthorizationProvider.instance.set(new AuthorizationToken(userName, ScopeProvider.instance.get()));
TabularResource tr = tabularResource().build().getTabularResource(tabularResourceId);
Table table = history().build().getLastTable(tabularResourceId);
if (table.contains(DatasetViewTableMetadata.class))