public interface IDataSpaceClient
Modifier and Type | Interface and Description |
---|---|
static class |
IDataSpaceClient.Dataspace |
static interface |
IDataSpaceClient.ILocalDestination |
static interface |
IDataSpaceClient.ILocalSource |
static interface |
IDataSpaceClient.IRemoteDestination |
static interface |
IDataSpaceClient.IRemoteSource |
Modifier and Type | Method and Description |
---|---|
boolean |
create(IDataSpaceClient.IRemoteSource source)
Creates a new file or folder in the specified dataspace dataspace.
|
boolean |
delete(IDataSpaceClient.IRemoteSource source)
Deletes the specified directory or the file from the dataspace.
|
boolean |
download(IDataSpaceClient.IRemoteSource source,
IDataSpaceClient.ILocalDestination destination) |
RemoteSpace |
getGlobalSpace()
Returns a
RemoteSpace implementation instance which represents
the globalspace. |
RemoteSpace |
getUserSpace()
Returns a
RemoteSpace implementation instance which represents
the userspace |
org.ow2.proactive_grid_cloud_portal.dataspace.dto.ListFile |
list(IDataSpaceClient.IRemoteSource source)
Returns a
ListFile type object which contains the names of files
and directories in the specified location of the dataspace. |
Map<String,String> |
metadata(IDataSpaceClient.IRemoteSource source)
Returns the metadata map of the specified file in the dataspace.
|
boolean |
upload(IDataSpaceClient.ILocalSource source,
IDataSpaceClient.IRemoteDestination destination) |
boolean create(IDataSpaceClient.IRemoteSource source) throws NotConnectedException, PermissionException
source
- the remote source used to identify the type of file to create and its location.true
if the creation has succeeded, false
otherwise.NotConnectedException
- if the client is not logged in or the session has expiredPermissionException
- if the user does not have permission to upload the file to
the specified location in the serverboolean download(IDataSpaceClient.IRemoteSource source, IDataSpaceClient.ILocalDestination destination) throws NotConnectedException, PermissionException
boolean upload(IDataSpaceClient.ILocalSource source, IDataSpaceClient.IRemoteDestination destination) throws NotConnectedException, PermissionException
org.ow2.proactive_grid_cloud_portal.dataspace.dto.ListFile list(IDataSpaceClient.IRemoteSource source) throws NotConnectedException, PermissionException
ListFile
type object which contains the names of files
and directories in the specified location of the dataspace.NotConnectedException
- if the client is not logged in or the session has expiredPermissionException
- if the user does not have permission to upload the file to
the specified location in the serverboolean delete(IDataSpaceClient.IRemoteSource source) throws NotConnectedException, PermissionException
NotConnectedException
- if the client is not logged in or the session has expiredPermissionException
- if the user does not have permission to upload the file to
the specified location in the serverMap<String,String> metadata(IDataSpaceClient.IRemoteSource source) throws NotConnectedException, PermissionException
Map
NotConnectedException
- if the client is not logged in or the session has expiredPermissionException
- if the user does not have permission to upload the file to
the specified location in the serverRemoteSpace getGlobalSpace()
RemoteSpace
implementation instance which represents
the globalspace.RemoteSpace
RemoteSpace getUserSpace()
RemoteSpace
implementation instance which represents
the userspaceRemoteSpace