Class FileSets
- java.lang.Object
-
- org.gcube.application.geoportal.common.utils.FileSets
-
public class FileSets extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileSets.RequestBuilder
-
Constructor Summary
Constructors Constructor Description FileSets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TempFileasTemp(StorageUtils storage, InputStreamDescriptor descriptor)static TempFile[]asTemp(StorageUtils storage, InputStreamDescriptor... descriptors)static FileSets.RequestBuilderbuild(String parent, String fieldName, String fieldDefinition)static FileSets.RequestBuilderbuild(String parent, String fieldName, String fieldDefinition, TempFile... files)static RegisterFileSetRequestprepareRequest(StorageUtils storage, String parentPath, String fieldName, String fieldDefinition, File... toUpload)static RegisterFileSetRequestprepareRequestFromFolder(StorageUtils storage, String parentPath, String fieldName, String fieldDefinition, File directory)
-
-
-
Method Detail
-
build
public static FileSets.RequestBuilder build(String parent, String fieldName, String fieldDefinition)
-
build
public static FileSets.RequestBuilder build(String parent, String fieldName, String fieldDefinition, TempFile... files)
-
asTemp
public static TempFile asTemp(StorageUtils storage, InputStreamDescriptor descriptor) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
- Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundException
-
asTemp
public static TempFile[] asTemp(StorageUtils storage, InputStreamDescriptor... descriptors) throws org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendException, FileNotFoundException
- Throws:
org.gcube.contentmanagement.blobstorage.transport.backend.RemoteBackendExceptionFileNotFoundException
-
prepareRequestFromFolder
public static RegisterFileSetRequest prepareRequestFromFolder(StorageUtils storage, String parentPath, String fieldName, String fieldDefinition, File directory) throws FileNotFoundException
- Throws:
FileNotFoundException
-
prepareRequest
public static RegisterFileSetRequest prepareRequest(StorageUtils storage, String parentPath, String fieldName, String fieldDefinition, File... toUpload) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-