Removed workspace-application-handler
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@134843 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
27d24dffaf
commit
9b1750ff8b
5
pom.xml
5
pom.xml
|
@ -240,11 +240,6 @@
|
||||||
<artifactId>aslsocial</artifactId>
|
<artifactId>aslsocial</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
|
||||||
<artifactId>workspace-application-handler</artifactId>
|
|
||||||
<version>[1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- Metadata publisher widget -->
|
<!-- Metadata publisher widget -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -41,7 +41,6 @@ import org.gcube.common.homelibrary.home.workspace.folder.items.GCubeItem;
|
||||||
import org.gcube.common.homelibrary.home.workspace.search.SearchItem;
|
import org.gcube.common.homelibrary.home.workspace.search.SearchItem;
|
||||||
import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashFolder;
|
import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashFolder;
|
||||||
import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashItem;
|
import org.gcube.common.homelibrary.home.workspace.trash.WorkspaceTrashItem;
|
||||||
import org.gcube.common.scope.api.ScopeProvider;
|
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.ApplicationProfileScopePerUrlReader;
|
import org.gcube.datacatalogue.ckanutillibrary.ApplicationProfileScopePerUrlReader;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogue;
|
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogue;
|
||||||
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogueFactory;
|
import org.gcube.datacatalogue.ckanutillibrary.DataCatalogueFactory;
|
||||||
|
@ -88,7 +87,6 @@ import org.gcube.portlets.user.workspace.shared.WorkspaceTrashOperation;
|
||||||
import org.gcube.portlets.user.workspace.shared.WorkspaceUserQuote;
|
import org.gcube.portlets.user.workspace.shared.WorkspaceUserQuote;
|
||||||
import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingEntryType;
|
import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingEntryType;
|
||||||
import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField;
|
import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField;
|
||||||
import org.gcube.portlets.user.workspaceapplicationhandler.ApplicationReaderFromGenericResource;
|
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.GroupBean;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.GroupBean;
|
||||||
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.OrganizationBean;
|
import org.gcube.portlets.widgets.ckandatapublisherwidget.shared.OrganizationBean;
|
||||||
import org.gcube.vomanagement.usermanagement.GroupManager;
|
import org.gcube.vomanagement.usermanagement.GroupManager;
|
||||||
|
@ -1381,49 +1379,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
||||||
@Override
|
@Override
|
||||||
public String getURLFromApplicationProfile(String oid) throws Exception {
|
public String getURLFromApplicationProfile(String oid) throws Exception {
|
||||||
|
|
||||||
String urlPortlet = "";
|
throw new Exception("Operation not supported");
|
||||||
|
|
||||||
ApplicationReaderFromGenericResource app = new ApplicationReaderFromGenericResource();
|
|
||||||
|
|
||||||
try{
|
|
||||||
|
|
||||||
if(oid==null)
|
|
||||||
throw new Exception(IDENTIFIER_IS_NULL);
|
|
||||||
|
|
||||||
PortalContextInfo info = WsUtil.getPortalContext(this.getThreadLocalRequest());
|
|
||||||
|
|
||||||
if(WsUtil.isVRE(info.getCurrentScope())){
|
|
||||||
|
|
||||||
ScopeProvider.instance.set(info.getCurrentScope());
|
|
||||||
// GET WORKSPACE
|
|
||||||
Workspace workspace = HomeLibrary.getUserWorkspace(info.getUsername());
|
|
||||||
// GET ITEM FROM WORKSPACE
|
|
||||||
WorkspaceItem item = workspace.getItem(oid);
|
|
||||||
|
|
||||||
// ITEM IS A WorkspaceItemType.FOLDER_ITEM?
|
|
||||||
if (item.getType().equals(WorkspaceItemType.FOLDER_ITEM)) {
|
|
||||||
FolderItem folderItem = (FolderItem) item;
|
|
||||||
|
|
||||||
if(folderItem.getFolderItemType().equals(FolderItemType.REPORT)){
|
|
||||||
setValueInSession("idreport", oid);
|
|
||||||
|
|
||||||
}else if(folderItem.getFolderItemType().equals(FolderItemType.REPORT_TEMPLATE)){
|
|
||||||
setValueInSession("idtemplate", oid);
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
//TODO DISMISSED
|
|
||||||
//urlPortlet = app.getURLFromApplicationProfile(oid, WsUtil.getPortalContext(this.getThreadLocalRequest().getSession()),this.getThreadLocalRequest().getSession());
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
workspaceLogger.error("getURLFromApplicationProfile", e);
|
|
||||||
throw new Exception("Sorry, an error occurred in retrieve application profile, try again");
|
|
||||||
}
|
|
||||||
|
|
||||||
return urlPortlet;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Reference in New Issue