public interface FileResource
Modifier and Type | Field and Description |
---|---|
static String |
ACCEPTED_TYPES_RESOURCE |
static String |
DOWNLOAD_TEMPLATE |
static String |
FILE_DOWNLOAD_TEMPLATE |
static String |
FILE_RESOURCE |
static String |
FILETYPE_RAW_SOURCE_DOCUMENT
Specifies to download the original source file that was uploaded, byte-for-byte.
|
static String |
FILETYPE_TRANSLATED_APPROVED
Specifies to download a completed version of a translated document in the
original source format, showing only approved translations.
|
static String |
FILETYPE_TRANSLATED_APPROVED_AND_FUZZY
Specifies to download a preview of the translated document in the original
source format, showing all non-empty translations (even if not approved).
|
static String |
SOURCE_DOWNLOAD_TEMPLATE |
static String |
SOURCE_UPLOAD_TEMPLATE |
static String |
TRANSLATION_UPLOAD_TEMPLATE |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
acceptedFileTypes() |
javax.ws.rs.core.Response |
download(String downloadId) |
javax.ws.rs.core.Response |
downloadSourceFile(String projectSlug,
String iterationSlug,
String fileType,
String docId) |
javax.ws.rs.core.Response |
downloadTranslationFile(String projectSlug,
String iterationSlug,
String locale,
String fileExtension,
String docId) |
javax.ws.rs.core.Response |
uploadSourceFile(String projectSlug,
String iterationSlug,
String docId,
DocumentFileUploadForm uploadForm) |
javax.ws.rs.core.Response |
uploadTranslationFile(String projectSlug,
String iterationSlug,
String localeId,
String docId,
String merge,
DocumentFileUploadForm uploadForm) |
static final String FILE_RESOURCE
static final String ACCEPTED_TYPES_RESOURCE
static final String DOWNLOAD_TEMPLATE
static final String FILE_DOWNLOAD_TEMPLATE
static final String TRANSLATION_UPLOAD_TEMPLATE
static final String SOURCE_UPLOAD_TEMPLATE
static final String SOURCE_DOWNLOAD_TEMPLATE
static final String FILETYPE_RAW_SOURCE_DOCUMENT
static final String FILETYPE_TRANSLATED_APPROVED_AND_FUZZY
static final String FILETYPE_TRANSLATED_APPROVED
javax.ws.rs.core.Response acceptedFileTypes()
javax.ws.rs.core.Response uploadSourceFile(String projectSlug, String iterationSlug, String docId, DocumentFileUploadForm uploadForm)
javax.ws.rs.core.Response uploadTranslationFile(String projectSlug, String iterationSlug, String localeId, String docId, String merge, DocumentFileUploadForm uploadForm)
javax.ws.rs.core.Response downloadSourceFile(String projectSlug, String iterationSlug, String fileType, String docId)
javax.ws.rs.core.Response downloadTranslationFile(String projectSlug, String iterationSlug, String locale, String fileExtension, String docId)
javax.ws.rs.core.Response download(String downloadId)
Copyright © 2013 Zanata Project. All Rights Reserved.