Trillo Java SDK
Search
K

StorageApi

getFilePath

Description...
StorageApi.getFilePath(String fileId)

Parameters

fileId

Returns

The file path for the input File ID

getFileIdByPath

Description...
StorageApi.getFileIdByPath(String absoluteFilePath)

Parameters

absoluteFilePath

Returns

The File ID

getFolderPath

This API provides the folder path
StorageApi.getFolderPath(String folderId)

Parameters

folderId

Returns

Folder path for the input folder ID

getSignedUrl

Description...
StorageApi.getSignedUrl(String filePath)
or
StorageApi.getSignedUrl(String filePath, long duration, TimeUnit unit)
or
StorageApi.getSignedUrl(String bucketName, String filePath)
or
StorageApi.getSignedUrl(String bucketName, String filePath, long duration, TimeUnit unit)

Parameters

filePath
duration
unit
bucketName

Returns

// Some code

copyFileToBucket

Description...
StorageApi.copyFileToBucket(String sourceFilePath, String targetFilePath)
or
StorageApi.copyFileToBucket(String bucketName, String sourceFilePath, String targetFilePath)

Parameters

sourceFilePath
targetFilePath
bucketName

Returns

// Some code

copyFileFromBucket

Description...
StorageApi.copyFileFromBucket(String sourceFilePath, String targetFilePath)
or
Storageapi.copyFileFromBucket(String bucketName, String sourceFilePath, String targetFilePath)

Parameters

sourceFilePath
targetFilePath
bucketName

Returns

// Some code

copyFileWithinBucket

Description...
StorageApi.copyFileWithinBucket(String sourceFilePath, String targetFilePath)
or
StorageApi.copyFileWithinBucket(String sourceFilePath, String targetFilePath, boolean makeCopy)
or
StorageApi.copyFileWithinBucket(String bucketName, String sourceFilePath, String targetFilePath)
or
StorageApi.copyFileWithinBucket(String bucketName, String sourceFilePath, String targetFilePath, boolean makeCopy)

Parameters

sourceFilePath
targetFilePath
makeCopy
bucketName

Returns

// Some code

writeToBucket

Description...
StorageApi.writeToBucket(byte[] bytes, String targetFilePath, String contentType)
or
StorageApi.writeToBucket(String bucketName, byte[] bytes, String targetFilePath, String contentType)

Parameters

bytes
targetFilePath
contentType
bucketName

Returns

// Some code

readFromBucket

Description...
StorageApi.readFromBucket(String sourceFilePath)
or
StorageApi.readFromBucket(String bucketName, String sourceFilePath)

Parameters

sourceFilePath
bucketName

Returns

// Some code

listFiles

Description...
StorageApi.listFiles(String pathName, Boolean versioned)
or
StorageApi.listFiles(String bucketName, String pathName, Boolean versioned)

Parameters

pathName
versioned
bucketName

Returns

// Some code

saveFileObject

Description...
StorageApi.saveFileObject(Map<String, Object> fileObject)

Parameters

fileObject

Returns

// Some code

uploadFile

Description...
StorageApi.uploadFile(String url, String bucketName, String sourceFilePath, String targetFilePath

Parameters

url
bucketName
sourceFilePath
targetFilePath

Returns

// Some code

downloadFile

Description...
StorageApi.downloadFile(String url, String bucketName, String sourceFilePath, String targetFilePath)

Parameters

url
bucketName
sourceFilePath
targetFilePath

Returns

// Some code