|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDssServiceRpcGeneric
Generic functionality for interacting with the DSS.
Field Summary | |
---|---|
static java.lang.String |
DSS_SERVICE_NAME
|
Method Summary | |
---|---|
java.lang.String |
getDownloadUrlForFileForDataSet(java.lang.String sessionToken,
DataSetFileDTO fileOrFolder)
Returns an URL from which the requested file. |
java.lang.String |
getDownloadUrlForFileForDataSet(java.lang.String sessionToken,
java.lang.String dataSetCode,
java.lang.String path)
Returns an URL from which the requested file of the specified data set can be downloaded. |
java.io.InputStream |
getFileForDataSet(java.lang.String sessionToken,
DataSetFileDTO fileOrFolder)
Deprecated. use getDownloadUrlForFileForDataSet(String, DataSetFileDTO) . |
java.io.InputStream |
getFileForDataSet(java.lang.String sessionToken,
java.lang.String dataSetCode,
java.lang.String path)
Deprecated. use getDownloadUrlForFileForDataSet(String, String, String) . |
java.lang.String |
getPathToDataSet(java.lang.String sessionToken,
java.lang.String dataSetCode,
java.lang.String overrideStoreRootPathOrNull)
Get a path to the data set. |
java.lang.String |
getValidationScript(java.lang.String sessionToken,
java.lang.String dataSetTypeOrNull)
Get the validation script for the specified data set type. |
FileInfoDssDTO[] |
listFilesForDataSet(java.lang.String sessionToken,
DataSetFileDTO fileOrFolder)
Get an array of FileInfoDss objects that describe the file-system structure of the data set. |
FileInfoDssDTO[] |
listFilesForDataSet(java.lang.String sessionToken,
java.lang.String dataSetCode,
java.lang.String path,
boolean isRecursive)
Get an array of FileInfoDss objects that describe the file-system structure of the data set. |
java.lang.String |
putDataSet(java.lang.String sessionToken,
NewDataSetDTO newDataset,
java.io.InputStream inputStream)
Upload a new data set to the DSS. |
Methods inherited from interface ch.systemsx.cisd.common.api.IRpcService |
---|
getMajorVersion, getMinorVersion |
Field Detail |
---|
static final java.lang.String DSS_SERVICE_NAME
Method Detail |
---|
FileInfoDssDTO[] listFilesForDataSet(java.lang.String sessionToken, DataSetFileDTO fileOrFolder) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokenfileOrFolder
- The file or folder to get information on
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not valid@Deprecated java.io.InputStream getFileForDataSet(java.lang.String sessionToken, DataSetFileDTO fileOrFolder) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
getDownloadUrlForFileForDataSet(String, DataSetFileDTO)
.
sessionToken
- The session tokenfileOrFolder
- The file or folder to retrieve
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not validjava.lang.String getDownloadUrlForFileForDataSet(java.lang.String sessionToken, DataSetFileDTO fileOrFolder) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokenfileOrFolder
- The file or folder to retrieve
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not validFileInfoDssDTO[] listFilesForDataSet(java.lang.String sessionToken, java.lang.String dataSetCode, java.lang.String path, boolean isRecursive) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokendataSetCode
- The data set to retrieve file information aboutpath
- The path within the data set to retrieve file information aboutisRecursive
- Should the result include information for sub folders?
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not valid@Deprecated java.io.InputStream getFileForDataSet(java.lang.String sessionToken, java.lang.String dataSetCode, java.lang.String path) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
getDownloadUrlForFileForDataSet(String, String, String)
.
sessionToken
- The session tokendataSetCode
- The data set to retrieve file frompath
- The path within the data set to retrieve file information about
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not validjava.lang.String getDownloadUrlForFileForDataSet(java.lang.String sessionToken, java.lang.String dataSetCode, java.lang.String path) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokendataSetCode
- The data set to retrieve file frompath
- The path within the data set to retrieve file information about
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not validjava.lang.String putDataSet(java.lang.String sessionToken, NewDataSetDTO newDataset, java.io.InputStream inputStream) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokennewDataset
- The new data set that should be registeredinputStream
- An input stream on the file or folder to register
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when listing the files
java.lang.IllegalArgumentException
- Thrown if the dataSetCode or startPath are not validjava.lang.String getPathToDataSet(java.lang.String sessionToken, java.lang.String dataSetCode, java.lang.String overrideStoreRootPathOrNull) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
NOTE: This method shouldn't be called for a container data set. No file would exist with the returned path.
sessionToken
- The session tokendataSetCode
- The data set to retrieve file fromoverrideStoreRootPathOrNull
- The path to replace the store path (see return comment).
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- if an IOException occurs when listing the files.
java.lang.IllegalArgumentException
- if dataSetCode is a container dataset.java.lang.String getValidationScript(java.lang.String sessionToken, java.lang.String dataSetTypeOrNull) throws ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked, java.lang.IllegalArgumentException
sessionToken
- The session tokendataSetTypeOrNull
- The data set type the script should validate, or null to request the
generic validation script.
ch.systemsx.cisd.base.exceptions.IOExceptionUnchecked
- Thrown if an IOException occurs when accessing the script
java.lang.IllegalArgumentException
- Thrown if the data set type or startPath are not valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |