Class TranslationStudio
- java.lang.Object
-
- com.idmedia.translationstudio.firstspirit.api.TranslationStudio
-
public final class TranslationStudio extends Object
Obtain the TranslationStudio API viaget
. This is your main starting point. This class provides access to all necessary functions- Author:
- Phillip Austerfield
-
-
Constructor Summary
Constructors Constructor Description TranslationStudio()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IClientWorkflowAPI
get(de.espirit.firstspirit.access.GuiScriptContext pContext)
Obtain the APIstatic IFirstTranslationService
getFirstTranslationService(de.espirit.firstspirit.agency.SpecialistsBroker pContext)
RegisterImpstatic void
getInlineTranslationHelperOCM(de.espirit.firstspirit.agency.SpecialistsBroker pContext, de.espirit.firstspirit.access.store.pagestore.DataProvider pElement, de.espirit.firstspirit.access.Language pCurrentLanguage)
Access the TranslationHelper Plugin via OCM interface.The translationhelper component itself is not supported.static ITranslationStudioScheduledApi
getScheduledApi(de.espirit.firstspirit.access.schedule.ScheduleContext pContext)
Obtain access to the ScheduledAPI.static IRestCommunication
getTranslationStudioRestOperations(de.espirit.firstspirit.agency.SpecialistsBroker pContext)
Obtain access to REST operations.static void
install(de.espirit.firstspirit.access.GuiScriptContext pContext, boolean bIsFragment)
Run installerstatic TranslationRequestFormContent2
requestContent2TranslationRequestForm(de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate multiple datasets You can submit a translation request via theget
get method to obtain the API interface.static TranslationStudioRequestFormPageFolder
requestPageFolderTranslationRequestForm(de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate a page folder with its pages You can submit a translation request via theget
get method to obtain the API interface.static TranslationRequestFormPage
requestPageTranslationRequestForm(de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate a single page with its sections You can submit a translation request via theget
get method to obtain the API interface.static TranslationStudioRequestData
requireTranslationStudioRequestData(boolean bIsPageRequest)
-
-
-
Method Detail
-
get
@NotNull public static IClientWorkflowAPI get(@NotNull de.espirit.firstspirit.access.GuiScriptContext pContext) throws IllegalStateException
Obtain the API- Parameters:
pContext
- Context- Returns:
- API Instance
- Throws:
IllegalStateException
-
getFirstTranslationService
@NotNull public static IFirstTranslationService getFirstTranslationService(de.espirit.firstspirit.agency.SpecialistsBroker pContext) throws IllegalStateException
RegisterImp- Parameters:
pContext
-- Returns:
- Throws:
IllegalStateException
-
getTranslationStudioRestOperations
@NotNull public static IRestCommunication getTranslationStudioRestOperations(de.espirit.firstspirit.agency.SpecialistsBroker pContext) throws IllegalStateException
Obtain access to REST operations. This will also make sure the access key is used correctly.- Parameters:
pContext
-- Returns:
- Throws:
IllegalStateException
-
getScheduledApi
@NotNull public static ITranslationStudioScheduledApi getScheduledApi(de.espirit.firstspirit.access.schedule.ScheduleContext pContext) throws IllegalStateException
Obtain access to the ScheduledAPI.- Parameters:
pContext
-- Returns:
- Throws:
IllegalStateException
-
getInlineTranslationHelperOCM
@NotNull public static void getInlineTranslationHelperOCM(@NotNull de.espirit.firstspirit.agency.SpecialistsBroker pContext, @NotNull de.espirit.firstspirit.access.store.pagestore.DataProvider pElement, @NotNull de.espirit.firstspirit.access.Language pCurrentLanguage)
Access the TranslationHelper Plugin via OCM interface.The translationhelper component itself is not supported. We need this mechanism, therefore.- Parameters:
pContext
-pElement
- Current Element to be translated (page, section)pCurrentLanguage
- Current ContentCreator language
-
requestContent2TranslationRequestForm
@NotNull public static TranslationRequestFormContent2 requestContent2TranslationRequestForm(@NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, @NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate multiple datasets You can submit a translation request via theget
get method to obtain the API interface. Call {@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterDatasetOperation} to submit your request.- Parameters:
pTaskTicket
- Content2 of the requests tablepTaskList
- Content2 of the list table- Returns:
-
requestPageTranslationRequestForm
@NotNull public static TranslationRequestFormPage requestPageTranslationRequestForm(@NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, @NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate a single page with its sections You can submit a translation request via theget
get method to obtain the API interface. Call {@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterPageOperation} to submit your request.- Parameters:
pTaskTicket
- Content2 of the requests tablepTaskList
- Content2 of the list table- Returns:
-
requestPageFolderTranslationRequestForm
@NotNull public static TranslationStudioRequestFormPageFolder requestPageFolderTranslationRequestForm(@NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskTicket, @NotNull de.espirit.firstspirit.access.store.contentstore.Content2 pTaskList)
Create a form result object to translate a page folder with its pages You can submit a translation request via theget
get method to obtain the API interface. Call {@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterPageFolderOperation} to submit your request.- Parameters:
pTaskTicket
- Content2 of the requests tablepTaskList
- Content2 of the list table- Returns:
-
requireTranslationStudioRequestData
@NotNull public static TranslationStudioRequestData requireTranslationStudioRequestData(boolean bIsPageRequest)
-
install
@NotNull public static void install(@NotNull de.espirit.firstspirit.access.GuiScriptContext pContext, boolean bIsFragment)
Run installer- Parameters:
pContext
-bIsFragment
-
-
-