public class File extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
String |
action
The action to perform.
|
String |
crc32
File CRC32 checksum.
|
Date |
createdAt
File created date/time
|
Long |
createdByApiKeyId
ID of the API key that created the file/folder
|
Long |
createdByAs2IncomingMessageId
ID of the AS2 Incoming Message that created the file/folder
|
Long |
createdByAutomationId
ID of the Automation that created the file/folder
|
Long |
createdByBundleRegistrationId
ID of the Bundle Registration that created the file/folder
|
Long |
createdById
User ID of the User who created the file/folder
|
Long |
createdByInboxId
ID of the Inbox that created the file/folder
|
Long |
createdByRemoteServerId
ID of the Remote Server that created the file/folder
|
Long |
createdByRemoteServerSyncId
ID of the Remote Server Sync that created the file/folder
|
Map<String,String> |
customMetadata
Custom metadata map of keys and values.
|
String |
displayName
File/Folder display name
|
String |
downloadUri
Link to download file.
|
Boolean |
isLocked
Is this folder locked and unable to be modified?
|
Long |
lastModifiedByApiKeyId
ID of the API key that last modified the file/folder
|
Long |
lastModifiedByAutomationId
ID of the Automation that last modified the file/folder
|
Long |
lastModifiedByBundleRegistrationId
ID of the Bundle Registration that last modified the file/folder
|
Long |
lastModifiedById
User ID of the User who last modified the file/folder
|
Long |
lastModifiedByRemoteServerId
ID of the Remote Server that last modified the file/folder
|
Long |
lastModifiedByRemoteServerSyncId
ID of the Remote Server Sync that last modified the file/folder
|
Long |
length
Length of file.
|
String |
md5
File MD5 checksum.
|
String |
mimeType
MIME Type.
|
Boolean |
mkdirParents
Create parent directories if they do not exist?
|
Date |
mtime
File last modified date/time, according to the server.
|
Long |
part
Part if uploading a part.
|
Long |
parts
How many parts to fetch?
|
String |
path
File/Folder path.
|
String |
permissions
A short string representing the current user's permissions.
|
Preview |
preview
File preview
|
Long |
previewId
File preview ID
|
String |
priorityColor
Bookmark/priority color of file/folder
|
Date |
providedMtime
File last modified date/time, according to the client who set it.
|
String |
ref |
String |
region
Region location
|
Long |
restart
File byte offset to restart from.
|
Long |
size
File/Folder size
|
String |
structure
If copying folder, copy just the structure?
|
Boolean |
subfoldersLocked
Are subfolders locked and unable to be modified?
|
String |
type
Type: `directory` or `file`.
|
Boolean |
withRename
Allow file rename instead of overwrite?
|
| Constructor and Description |
|---|
File() |
| Modifier and Type | Method and Description |
|---|---|
FileUploadPart |
beginUpload()
Begin File Upload
Parameters:
mkdir_parents - boolean - Create parent directories if they do not exist?
|
static FileUploadPart |
beginUpload(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FileUploadPart |
beginUpload(String path,
HashMap<String,Object> parameters)
Begin File Upload
Parameters:
mkdir_parents - boolean - Create parent directories if they do not exist?
|
static FileUploadPart |
beginUpload(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
completeUpload(String path,
HashMap<String,Object> parameters) |
static File |
completeUpload(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
FileAction |
copy()
Copy file/folder
Parameters:
destination (required) - string - Copy destination path.
|
static FileAction |
copy(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FileAction |
copy(String path,
HashMap<String,Object> parameters)
Copy file/folder
Parameters:
destination (required) - string - Copy destination path.
|
static FileAction |
copy(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FileUploadPart |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FileUploadPart |
create(String path,
HashMap<String,Object> parameters)
Parameters:
path (required) - string - Path to operate on.
|
static FileUploadPart |
create(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
delete()
Parameters:
recursive - boolean - If true, will recursively delete folers.
|
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(String path,
HashMap<String,Object> parameters)
Parameters:
recursive - boolean - If true, will recursively delete folers.
|
static void |
delete(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
void |
destroy(HashMap<String,Object> parameters) |
static void |
destroy(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
File |
download()
Download file
Parameters:
action - string - Can be blank, `redirect` or `stat`.
|
static File |
download(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
download(String path,
HashMap<String,Object> parameters)
Download file
Parameters:
action - string - Can be blank, `redirect` or `stat`.
|
static File |
download(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
find(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
find(String path,
HashMap<String,Object> parameters)
Parameters:
path (required) - string - Path to operate on.
|
static File |
find(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
get() |
static File |
get(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
FilesInputStream |
getInputStream() |
FilesInputStream |
getInputStream(long start) |
FilesInputStream |
getInputStream(long start,
long end) |
FileAction |
move()
Move file/folder
Parameters:
destination (required) - string - Move destination path.
|
static FileAction |
move(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static FileAction |
move(String path,
HashMap<String,Object> parameters)
Move file/folder
Parameters:
destination (required) - string - Move destination path.
|
static FileAction |
move(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
void |
saveAsLocalFile(String path)
Save the File to disk.
|
File |
update()
Parameters:
custom_metadata - object - Custom metadata map of keys and values.
|
static File |
update(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static File |
update(String path,
HashMap<String,Object> parameters)
Parameters:
custom_metadata - object - Custom metadata map of keys and values.
|
static File |
update(String path,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic String path
public Long createdById
public Long createdByApiKeyId
public Long createdByAs2IncomingMessageId
public Long createdByAutomationId
public Long createdByBundleRegistrationId
public Long createdByInboxId
public Long createdByRemoteServerId
public Long createdByRemoteServerSyncId
public Map<String,String> customMetadata
public String displayName
public String type
public Long size
public Date createdAt
public Long lastModifiedById
public Long lastModifiedByApiKeyId
public Long lastModifiedByAutomationId
public Long lastModifiedByBundleRegistrationId
public Long lastModifiedByRemoteServerId
public Long lastModifiedByRemoteServerSyncId
public Date mtime
public Date providedMtime
public String crc32
public String md5
public String mimeType
public String region
public String permissions
public Boolean subfoldersLocked
public Boolean isLocked
public String downloadUri
public String priorityColor
public Long previewId
public Preview preview
public String action
public Long length
public Boolean mkdirParents
public Long part
public Long parts
public String ref
public Long restart
public String structure
public Boolean withRename
public FilesInputStream getInputStream() throws IOException
IOExceptionpublic FilesInputStream getInputStream(long start) throws IOException
IOExceptionpublic FilesInputStream getInputStream(long start, long end) throws IOException
IOExceptionpublic void saveAsLocalFile(String path) throws IOException
IOExceptionpublic static File completeUpload(String path, HashMap<String,Object> parameters) throws IOException
IOExceptionpublic static File completeUpload(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws IOException
IOExceptionpublic File download() throws IOException
IOExceptionpublic File update() throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void destroy(HashMap<String,Object> parameters) throws IOException
IOExceptionpublic FileAction copy() throws IOException
IOExceptionpublic FileAction move() throws IOException
IOExceptionpublic FileUploadPart beginUpload() throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic static File download(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static File download(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File download(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart create(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart create(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File update(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static File update(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File update(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File find(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static File find(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File find(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static File get() throws RuntimeException
RuntimeExceptionpublic static File get(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileAction copy(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static FileAction copy(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileAction copy(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileAction move(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static FileAction move(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileAction move(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart beginUpload(String path, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart beginUpload(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static FileUploadPart beginUpload(String path, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.