public class WorkspaceUtils extends Object
| Constructor and Description |
|---|
WorkspaceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean> |
copyResourcesToUserCatalogueArea(String folderId,
String userName,
DatasetMetadataBean bean)
Copy into the .catalogue area folder the checked resources
|
static ResourceElementBean |
getTreeFromFolder(String workspaceFolderId,
org.gcube.common.homelibrary.home.workspace.Workspace ws)
Returns a tree object
|
static void |
handleWorkspaceResources(String folderId,
String userName,
DatasetMetadataBean 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 List<org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean> copyResourcesToUserCatalogueArea(String folderId, String userName, DatasetMetadataBean bean) throws Exception
folderId - userName - bean - Exceptionpublic static void handleWorkspaceResources(String folderId, String userName, DatasetMetadataBean bean) throws Exception
folderId - owner - bean - userName - Exceptionpublic static ResourceElementBean getTreeFromFolder(String workspaceFolderId, org.gcube.common.homelibrary.home.workspace.Workspace ws) throws Exception
workspaceFolderId - ws - ExceptionCopyright © 2016. All Rights Reserved.