Class TranslationStudio
java.lang.Object
com.idmedia.translationstudio.firstspirit.api.TranslationStudio
Obtain the TranslationStudio API via
get. This is your main starting point.
This class provides access to all necessary functions- Author:
- Phillip Austerfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IClientWorkflowAPIget(de.espirit.firstspirit.access.GuiScriptContext pContext) Obtain the APIstatic IDeepLGlossariesgetDeepLGlossaries(de.espirit.firstspirit.agency.SpecialistsBroker pContext) Get the DeepL Glossaries Operation APIstatic IFirstTranslationServicegetFirstTranslationService(de.espirit.firstspirit.agency.SpecialistsBroker pContext) RegisterImpstatic voidgetInlineTranslationHelperOCM(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.getScheduledApi(de.espirit.firstspirit.access.schedule.ScheduleContext pContext) Obtain access to the ScheduledAPI.static IScriptApigetScriptApi(de.espirit.firstspirit.agency.SpecialistsBroker pContext) Obtain the APIstatic IRestCommunicationgetTranslationStudioRestOperations(de.espirit.firstspirit.agency.SpecialistsBroker pContext) Obtain access to REST operations.static voidinstall(de.espirit.firstspirit.access.GuiScriptContext pContext, boolean bIsFragment) Run installerrequestContent2TranslationRequestForm(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 thegetget method to obtain the API interface.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 thegetget method to obtain the API interface.static TranslationRequestFormPagerequestPageTranslationRequestForm(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 thegetget method to obtain the API interface.static TranslationStudioRequestDatarequireTranslationStudioRequestData(boolean bIsPageRequest)
-
Constructor Details
-
TranslationStudio
public TranslationStudio()
-
-
Method Details
-
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
-
getScriptApi
@NotNull public static IScriptApi getScriptApi(@NotNull de.espirit.firstspirit.agency.SpecialistsBroker pContext) throws IllegalStateException Obtain the API- Parameters:
pContext- Context- Returns:
- API Instance
- Throws:
IllegalStateException
-
getDeepLGlossaries
@NotNull public static IDeepLGlossaries getDeepLGlossaries(@NotNull de.espirit.firstspirit.agency.SpecialistsBroker pContext) Get the DeepL Glossaries Operation API- Parameters:
pContext-- Returns:
-
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 thegetget method to obtain the API interface. Call} to submit your request.invalid @linkplain
{@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterDatasetOperation- 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 thegetget method to obtain the API interface. Call} to submit your request.invalid @linkplain
{@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterPageOperation- 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 thegetget method to obtain the API interface. Call} to submit your request.invalid @linkplain
{@linkplain WorkflowScriptContext(context).requestRegisterOperationFactory().requestRegisterPageFolderOperation- 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-
-