public class WorkspaceUtils extends Object
| Constructor and Description |
|---|
WorkspaceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.gcube.datacatalogue.ckanutillibrary.shared.ResourceBean> |
copyResourcesToUserCatalogueArea(String folderOrFileId,
String userName,
DatasetBean bean)
Copy into the .catalogue area folder the checked resources.
|
static Map<String,String> |
getGcubeItemProperties(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item)
Gets the gcube item properties.
|
static ResourceElementBean |
getTreeFromFolder(String workspaceFolderId,
org.gcube.common.homelibrary.home.workspace.Workspace ws)
Returns a tree object
|
static void |
handleWorkspaceResources(String folderId,
String userName,
DatasetBean bean)
This method receives a folder id within the user's workspace and set the list of resources in the dataset bean to be returned
|
public static void handleWorkspaceResources(String folderId, String userName, DatasetBean bean) throws Exception
folderId - owner - bean - userName - Exceptionpublic static Map<String,String> getGcubeItemProperties(org.gcube.common.homelibrary.home.workspace.WorkspaceItem item)
item - the itempublic static ResourceElementBean getTreeFromFolder(String workspaceFolderId, org.gcube.common.homelibrary.home.workspace.Workspace ws) throws Exception
workspaceFolderId - ws - Exceptionpublic static List<org.gcube.datacatalogue.ckanutillibrary.shared.ResourceBean> copyResourcesToUserCatalogueArea(String folderOrFileId, String userName, DatasetBean bean) throws Exception
folderId - userName - bean - ExceptionCopyright © 2018. All Rights Reserved.