Interface IDataStoreServerApi
- All Superinterfaces:
IRpcService
V3 data store server API. Detailed documentation on how to use the API together code examples in both Java and Javascript can be found at "openBIS
V3 API" openBIS WIKI page.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateDataSets(String sessionToken, List<FullDataSetCreation> newDataSets) Creates full data sets (i.e.createFastDownloadSession(String sessionToken, List<? extends IDataSetFileId> fileIds, FastDownloadSessionOptions options) Creates a download session for fast download of the requested files.createUploadedDataSet(String sessionToken, UploadedDataSetCreation newDataSet) Creates a data set which files have been already uploaded to data store server /store_share_file_upload servlet.downloadFiles(String sessionToken, List<? extends IDataSetFileId> fileIds, DataSetFileDownloadOptions downloadOptions) Downloads files with the providedIDataSetFileIdids.executeCustomDSSService(String sessionToken, ICustomDSSServiceId serviceId, CustomDSSServiceExecutionOptions options) Executes a custom data store server service with the providedICustomDSSServiceIdid.searchFiles(String sessionToken, DataSetFileSearchCriteria searchCriteria, DataSetFileFetchOptions fetchOptions) Searches for metadata of data set files basing on the providedDataSetFileSearchCriteria.Methods inherited from interface ch.systemsx.cisd.common.api.IRpcService
getMajorVersion, getMinorVersion
-
Field Details
-
SERVICE_NAME
Name of this service for which it is registered at the RPC name server.- See Also:
-
SERVICE_URL
Application part of the URL to access this service remotely.- See Also:
-
JSON_SERVICE_URL
- See Also:
-
MAJOR_VERSION
static final int MAJOR_VERSION- See Also:
-
MINOR_VERSION
static final int MINOR_VERSION- See Also:
-
-
Method Details
-
searchFiles
SearchResult<DataSetFile> searchFiles(String sessionToken, DataSetFileSearchCriteria searchCriteria, DataSetFileFetchOptions fetchOptions) Searches for metadata of data set files basing on the providedDataSetFileSearchCriteria.By default the returned data set files metdata contains only basic information. Any additional information to be fetched has to be explicitly requested via
DataSetFileFetchOptions.Required access rights:
PROJECT_OBSERVERor stronger- Throws:
UserFailureException- in case of any problems
-
downloadFiles
InputStream downloadFiles(String sessionToken, List<? extends IDataSetFileId> fileIds, DataSetFileDownloadOptions downloadOptions) Downloads files with the providedIDataSetFileIdids. The requested files are returned as a singleInputStream.DataSetFileDownloadReadercan be used to easily read individual files from that stream. Additional download options can be set viaDataSetFileDownloadOptions.Required access rights:
PROJECT_OBSERVERor stronger- Throws:
UserFailureException- in case of any problems
-
createFastDownloadSession
FastDownloadSession createFastDownloadSession(String sessionToken, List<? extends IDataSetFileId> fileIds, FastDownloadSessionOptions options) Creates a download session for fast download of the requested files.Required access rights:
PROJECT_OBSERVERor stronger- Throws:
UserFailureException- in case of any problems
-
createUploadedDataSet
Creates a data set which files have been already uploaded to data store server /store_share_file_upload servlet. Uploaded files and a data set to be created have to share the same upload id (the id can be set viauploadIDrequest parameter during the upload and viaUploadedDataSetCreationduring a data set creation).Required access rights:
PROJECT_USERor stronger- Throws:
UserFailureException- in case of any problems
-
createDataSets
Creates full data sets (i.e. both data set metadata as well as data set files metadata).Required access rights:
SPACE_ETL_SERVERor stronger- Throws:
UserFailureException- in case of any problems
-
executeCustomDSSService
Object executeCustomDSSService(String sessionToken, ICustomDSSServiceId serviceId, CustomDSSServiceExecutionOptions options) Executes a custom data store server service with the providedICustomDSSServiceIdid. Additional execution options (e.g. parameters) can be set viaCustomDSSServiceExecutionOptions.Required access rights:
PROJECT_OBSERVERor stronger- Throws:
UserFailureException- in case of any problems
-