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:
Francesco Mangiacrapa 2016-11-25 15:52:03 +00:00
parent 27d24dffaf
commit 9b1750ff8b
2 changed files with 1 additions and 50 deletions

View File

@ -240,11 +240,6 @@
<artifactId>aslsocial</artifactId>
<scope>provided</scope>
</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 -->
<dependency>

View File

@ -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.trash.WorkspaceTrashFolder;
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.DataCatalogue;
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.accounting.GxtAccountingEntryType;
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.OrganizationBean;
import org.gcube.vomanagement.usermanagement.GroupManager;
@ -1381,49 +1379,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
@Override
public String getURLFromApplicationProfile(String oid) throws Exception {
String urlPortlet = "";
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;
throw new Exception("Operation not supported");
}
/* (non-Javadoc)