public class WorkspaceUtils extends Object
| Constructor and Description |
|---|
WorkspaceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.gcube.datacatalogue.ckanutillibrary.models.ResourceBean> |
copyResourcesToUserCatalogueArea(List<ResourceBeanWrapper> resourcesToAdd,
String folderId,
String userName,
DatasetMetadataBean bean)
Copy into the .catalogue area folder the checked resources
|
static List<ResourceBeanWrapper> |
getWorkspaceResourcesInformation(List<String> resourceIds,
org.gcube.common.homelibrary.home.workspace.Workspace ws,
String username)
Build up the resource beans.
|
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(List<ResourceBeanWrapper> resourcesToAdd, String folderId, String userName, DatasetMetadataBean bean) throws Exception
resourcesToAdd - folderId - userName - bean - Exceptionpublic static void handleWorkspaceResources(String folderId, String userName, DatasetMetadataBean bean) throws Exception
folderId - owner - bean - userName - Exceptionpublic static List<ResourceBeanWrapper> getWorkspaceResourcesInformation(List<String> resourceIds, org.gcube.common.homelibrary.home.workspace.Workspace ws, String username)
resourceIds - ws - username - Copyright © 2016. All Rights Reserved.