getFilePath
Description...
Copy StorageApi.getFilePath(String fileId)
Parameters
Returns
Copy The file path for the input File ID
getFileIdByPath
Description...
Copy StorageApi.getFileIdByPath(String absoluteFilePath)
Parameters
Returns
Copy The File ID using file path
getFolderPath
This API provides the folder path
Copy StorageApi.getFolderPath(String folderId)
Parameters
Returns
Copy Folder path for the input folder ID
getSignedUrl
Description...
Copy 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
Copy filePath
duration
unit
bucketName
Returns
copyFileToBucket
Copy file to bucket
Copy StorageApi.copyFileToBucket(String sourceFilePath, String targetFilePath)
or
StorageApi.copyFileToBucket(String bucketName, String sourceFilePath, String targetFilePath)
or
StorageApi.copyFileToBucket(String bucketName, String serviceAccountPropName,
String sourceFilePath, String targetFilePath)
Parameters
Copy sourceFilePath
targetFilePath
bucketName
serviceAccountPropName
Returns
copyFileFromBucket
Copy file from bucket
Copy StorageApi.copyFileFromBucket(String sourceFilePath, String targetFilePath)
or
Storageapi.copyFileFromBucket(String bucketName, String sourceFilePath, String targetFilePath)
or
Storageapi.copyFileFromBucket(String bucketName, String serviceAccountPropName,
String sourceFilePath, String targetFilePath)
Parameters
Copy sourceFilePath
targetFilePath
bucketName
serviceAccountPropName
Returns
copyFileWithinBucket
Copy file to new location within bucket
Copy 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
Copy sourceFilePath
targetFilePath
makeCopy
bucketName
Returns
writeToBucket
Write data to bucket
Copy StorageApi.writeToBucket(byte[] bytes, String targetFilePath, String contentType)
or
StorageApi.writeToBucket(String bucketName, byte[] bytes, String targetFilePath, String contentType)
Parameters
Copy bytes
targetFilePath
contentType
bucketName
Returns
readFromBucket
Read file from bucket
Copy StorageApi.readFromBucket(String sourceFilePath)
or
StorageApi.readFromBucket(String bucketName, String sourceFilePath)
Parameters
Copy sourceFilePath
bucketName
Returns
listFiles
Get list of file names for the bucket folder.
Copy StorageApi.listFiles(String pathName, Boolean versioned)
or
StorageApi.listFiles(String bucketName, String pathName, Boolean versioned)
or
StorageApi.listFiles(String bucketName, String pathName,
Boolean versioned, String pageToken, Integer pageSize)
Parameters
Copy pathName
versioned
bucketName
pageToken
pageSize
Returns
saveFileObject
Save file object
Copy StorageApi.saveFileObject(Map<String, Object> fileObject)
Parameters
Returns
exists
Check if file exists.
Copy StorageApi.exists(String filePath)
Parameters
Returns
getFileList
Get list of files in folder
Copy StorageApi.getFileList(long folderId, String orderBy)
Parameters
Returns
Copy List<Map<String, Object>>
getFilesPages
Get files pages
Copy StorageApi.getFilesPage(String bucketName, String pathName,
Boolean versioned)
or
StorageApi.getFilesPage(String bucketName, String pathName,
Boolean versioned, String pageToken, Integer pageSize)
Parameters
Copy bucketName
pathName
versioned
pageToken
pageSize
Returns
getBucketName
Get default bucket name.
Copy StorageApi.getBucketName()
Parameters
Returns
shareWithTenants
Share with tenants
Copy StorageApi.shareWithTenants(Map<String, Object> params)
Parameters
Returns
copyLargeFileToBucket
copy large file to bucket
Copy StorageApi.copyLargeFileToBucket(String sourceFilePath, String targetFilePath)
or
StorageApi.copyLargeFileToBucket(String bucketName, String sourceFilePath,
String targetFilePath)
or
StorageApi.copyLargeFileToBucket((String bucketName, String serviceAccountPropName,
String sourceFilePath, String targetFilePath)
Parameters
Copy sourceFilePath
targetFilePath
bucketName
serviceAccountPropName
Returns
makePublic
make a file public
Copy StorageApi.makePublic(String bucketName, String filePath)
or
StorageApi.makePublic(String bucketName, String serviceAccountPropName,
String filePath)
Parameters
Copy bucketName
filePath
serviceAccountPropName
Returns
getContent
Get content of a doc
Copy StorageApi.getContent(Map<String, Object> doc)
Parameters
Returns
getBucketPath
Get bucket path using file object
Copy StorageApi.getBucketPath(Map<String, Object> fileObject)
Parameters
Returns
getBucketPath
Get path using fileId
Copy StorageApi.getBucketPath(String fileId)
Parameters
Returns
Last updated 11 months ago