public interface Downloadable
Modifier and Type | Method and Description |
---|---|
long |
getContainerId() |
default String |
getDownloadPath()
Returns a download path for the current Downloadable, with default options.
|
default String |
getDownloadPath(boolean addVersionInfo,
boolean addApiRevision)
Returns a download path for the current Downloadable
|
default String |
getDownloadPath(String attachmentPath,
boolean addVersionInfo)
Returns the download path of the attachment for a given attachmentPath prefix.
|
default String |
getDownloadPath(String attachmentPath,
boolean addVersionInfo,
boolean addApiRevision)
Returns a download path for the current Downloadable
|
default String |
getDownloadPathWithoutEncoding()
Returns the download path without any encoding, version info or API revision
|
default String |
getDownloadPathWithoutVersion()
Returns the download path without any version info.
|
default String |
getDownloadPathWithoutVersionOrApiRevision()
Returns the download path without any version info or API revision.
|
String |
getFileName() |
Optional<Date> |
getLastModified() |
int |
getVersion() |
long getContainerId()
String getFileName()
int getVersion()
default String getDownloadPath(String attachmentPath, boolean addVersionInfo, boolean addApiRevision)
attachmentPath
- Container specific prefix for the download path - e.g. "/download/attachments/1234"addVersionInfo
- Whether to add version information to the attachment path - e.g. "?version=1"addApiRevision
- Whether to add api revision information to the attachment path - e.g. "?api=v2"default String getDownloadPath(boolean addVersionInfo, boolean addApiRevision)
addVersionInfo
- Whether to add version information to the attachment path - e.g. "?version=1"addApiRevision
- Whether to add api revision information to the attachment path - e.g. "?api=v2"default String getDownloadPath()
default String getDownloadPathWithoutVersion()
default String getDownloadPathWithoutVersionOrApiRevision()
default String getDownloadPath(String attachmentPath, boolean addVersionInfo)
default String getDownloadPathWithoutEncoding()
Copyright © 2003–2016 Atlassian. All rights reserved.