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
Deprecated.
|
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 |
SERVICE_PATH |
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)
Downloads a previously generated file.
|
javax.ws.rs.core.Response |
downloadSourceFile(String projectSlug,
String iterationSlug,
String fileType,
String docId)
Downloads a single source file.
|
javax.ws.rs.core.Response |
downloadTranslationFile(String projectSlug,
String iterationSlug,
String locale,
String fileExtension,
String docId)
Downloads a single translation file.
|
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 SERVICE_PATH
@Deprecated 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)
projectSlug - iterationSlug - fileType - use 'raw' for original source if available, or 'pot' to
generate pot from source stringsdocId - javax.ws.rs.core.Response downloadTranslationFile(String projectSlug, String iterationSlug, String locale, String fileExtension, String docId)
projectSlug - Project identifier.iterationSlug - Project iteration identifier.locale - Translations for this locale will be contained in the
downloaded document.fileType - File type to be downloaded. (Options: 'po', 'half_baked',
'baked')docId - Document identifier to fetch translations for.javax.ws.rs.core.Response download(String downloadId)
downloadId - The Zanata generated download id.Copyright © 2014 Zanata Project. All Rights Reserved.