Interface ITranslationRequestFormSpecific
- All Known Subinterfaces:
ITranslationRequestFormSpecificFull
public interface ITranslationRequestFormSpecific
- Author:
- Phillip Austerfield invalid input: '<'phillip.austerfield@idmedia.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomInformation(String sFieldName, String sValue) Add a custom information attributevoidaddTranslatableEntity(de.espirit.firstspirit.access.store.contentstore.Content2 pContent2, de.espirit.firstspirit.access.store.contentstore.Dataset pDataset, de.espirit.firstspirit.access.store.contentstore.Dataset pDatasetTarget, String sDisplayName) Add a dataset to be translated and assign target dataset to receive the translated content.voidaddTranslatableEntity(de.espirit.firstspirit.access.store.contentstore.Content2 pContent2, de.espirit.firstspirit.access.store.contentstore.Dataset pDataset, String sDisplayName) Add a Dataset to be translatedvoidaddTranslatablePage(de.espirit.firstspirit.access.store.globalstore.GCAPage pPage, de.espirit.firstspirit.access.store.IDProvider pElement, String sDisplayName) Add a GCA page/section to be translatedvoidaddTranslatablePage(de.espirit.firstspirit.access.store.pagestore.Page pPage, de.espirit.firstspirit.access.store.IDProvider pElement, String sDisplayName) Add a page/section to be translatedbooleanaddTranslationLanguage(de.espirit.firstspirit.access.Language pSourceLanguage, de.espirit.firstspirit.access.Language pTargetLanguage, String sConnectorGuid) Add a language combination to be translated using a given connector.booleanaddTranslationLanguage(de.espirit.firstspirit.access.store.globalstore.GCAPage pPage) Add a language mappings page that holds all relevant information on source/target langauge and connector.booleanisEmpty()Check if given form is emptyvoidsetDueDate(Date pDate) Set the due date (optionally)voidsetTranslateImmediately(boolean bImmediately) Either translate immediately (default) or use quotes.voidsetUserToNotify(long lUserId) Notify given userbooleanSubmit files to TranslationStudio
-
Method Details
-
addTranslationLanguage
boolean addTranslationLanguage(@NotNull de.espirit.firstspirit.access.store.globalstore.GCAPage pPage) Add a language mappings page that holds all relevant information on source/target langauge and connector.- Parameters:
pPage-- Returns:
- validation result
-
addTranslationLanguage
boolean addTranslationLanguage(@NotNull de.espirit.firstspirit.access.Language pSourceLanguage, @NotNull de.espirit.firstspirit.access.Language pTargetLanguage, @NotNull String sConnectorGuid) Add a language combination to be translated using a given connector.- Parameters:
pSourceLanguage- Source LanguagepTargetLanguage- Target LanguagesConnectorGuid- Connector Guid- Returns:
- validation result
-
addTranslatablePage
void addTranslatablePage(@NotNull de.espirit.firstspirit.access.store.pagestore.Page pPage, @NotNull de.espirit.firstspirit.access.store.IDProvider pElement, @NotNull String sDisplayName) Add a page/section to be translated- Parameters:
pPage- PagepElement- Element (Page or Section) to be translatedsDisplayName- Display name of given element (or empty String)
-
addTranslatablePage
void addTranslatablePage(@NotNull de.espirit.firstspirit.access.store.globalstore.GCAPage pPage, @NotNull de.espirit.firstspirit.access.store.IDProvider pElement, @NotNull String sDisplayName) Add a GCA page/section to be translated- Parameters:
pPage- PagepElement- Element (Page or Section) to be translatedsDisplayName- Display name of given element (or empty String)
-
addTranslatableEntity
void addTranslatableEntity(@NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pContent2, @NotNull de.espirit.firstspirit.access.store.contentstore.Dataset pDataset, @NotNull String sDisplayName) Add a Dataset to be translated- Parameters:
pContent2- Content2 ObjectpDataset- DatasetsDisplayName- Display name of given element (or empty String)
-
addTranslatableEntity
void addTranslatableEntity(@NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pContent2, @NotNull de.espirit.firstspirit.access.store.contentstore.Dataset pDataset, @NotNull de.espirit.firstspirit.access.store.contentstore.Dataset pDatasetTarget, @NotNull String sDisplayName) Add a dataset to be translated and assign target dataset to receive the translated content. This will only be valid if the source dataset contains 100% language independent fields.- Parameters:
pContent2- Content2 ObjectpDataset- Dataset Source dataset to be translatedpDatasetTarget- Target dataset to receive translated contentsDisplayName- Display name of given element (or empty String)
-
addCustomInformation
Add a custom information attribute- Parameters:
sFieldName- NamesValue- Value
-
isEmpty
boolean isEmpty()Check if given form is empty- Returns:
-
setUserToNotify
void setUserToNotify(long lUserId) Notify given user- Parameters:
lUserId-
-
setDueDate
Set the due date (optionally)- Parameters:
pDate-
-
setTranslateImmediately
void setTranslateImmediately(boolean bImmediately) Either translate immediately (default) or use quotes.- Parameters:
bImmediately-
-
submitTranslation
Submit files to TranslationStudio- Returns:
- Success state
- Throws:
IOException- Exception if TranslationStudio could not be reached
-