Interface ITranslatableFile
- All Superinterfaces:
ITranslatableFileIdProvider,ITranslatableFileXliff,ITranslatableXmlFile
- All Known Subinterfaces:
ITranslatableFileEditable
- All Known Implementing Classes:
TranslatableFile
public interface ITranslatableFile
extends ITranslatableXmlFile, ITranslatableFileIdProvider, ITranslatableFileXliff
This Interface provides necessary data to identify a file which was uploaded
into the TMS System.
- Author:
- I-D Media AG
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalFile(String sFile) Add a file to the list of preview files@NotNull StringconcatinageDisplayNames(int nMaxLength) Get the display names of the CMS file(s) included in this XML filelong@NotNull StringGet the CMS project name (if available)Get a list of custom field maps.@NotNull List<org.json.simple.JSONObject> Get the values of the custom fields associated with the files in this translatable fileGet the display names of the CMS file(s) included in this XML file@NotNull StringReturns the target language (initialized in constructor) e.g de_de, fr_fr ...longgetJobId()Get associated job idGet the requester's idDeprecated.booleanAre preview files available in this package.booleanIndicates that this is an urgent translation@NotNull org.json.simple.JSONObjecttoJson()Store itself as JSONMethods inherited from interface com.idmedia.translationstudio.api.connector.dao.ITranslatableFileIdProvider
getCmsPageIdsMethods inherited from interface com.idmedia.translationstudio.api.connector.dao.ITranslatableFileXliff
getXliffFile, hasXliff, setXliffFileMethods inherited from interface com.idmedia.translationstudio.api.connector.dao.ITranslatableXmlFile
getAdditionalFiles, getDeadline, getFullQualifiedFilePath, getPreviewFiles, getProjectId, getSourceLanguage, getTargetLanguage
-
Method Details
-
getInitialLanguage
Returns the target language (initialized in constructor) e.g de_de, fr_fr ...- Returns:
- Language Code
-
getJobId
long getJobId()Get associated job id- Returns:
-
isUrgendTranslation
boolean isUrgendTranslation()Indicates that this is an urgent translation- Returns:
-
getCustomFieldValues
Get the values of the custom fields associated with the files in this translatable file- Returns:
- List, never
null
-
getCustomFields
Get a list of custom field maps. Each FirstSpirit FORM field represents a single entry in the map- Returns:
-
addAdditionalFile
Add a file to the list of preview files- Parameters:
sFile- File to be added
-
hasPreviewFiles
boolean hasPreviewFiles()Are preview files available in this package.- Returns:
-
toJson
@NotNull @NotNull org.json.simple.JSONObject toJson()Store itself as JSON -
getCmsProjectId
long getCmsProjectId() -
getCmsProjectName
Get the CMS project name (if available)- Returns:
-
getDisplayNames
Get the display names of the CMS file(s) included in this XML file- Returns:
-
concatinageDisplayNames
Get the display names of the CMS file(s) included in this XML file- Parameters:
nMaxLength-- Returns:
-
getTickets
Deprecated. -
getRequestUids
-
getRequesterUsers
Get the requester's id- Returns:
- List
-