Class AbstractTranslationService
- java.lang.Object
-
- com.adobe.granite.translation.core.common.AbstractTranslationService
-
- All Implemented Interfaces:
TranslationService
public abstract class AbstractTranslationService extends java.lang.Object implements TranslationService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAbstractTranslationService.TranslationServiceInfoImpl-
Nested classes/interfaces inherited from interface com.adobe.granite.translation.api.TranslationService
TranslationService.TranslationServiceInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultCategory()Gets the default category.TranslationService.TranslationServiceInfogetTranslationServiceInfo()Gets information on a translation service.voidsetDefaultCategory(java.lang.String defaultCategory)Sets the default category.voidupdateDueDate(java.lang.String strTranslationJobID, java.util.Date date)Update translation job due-date-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.granite.translation.api.TranslationService
addTranslationJobComment, addTranslationObjectComment, createTranslationJob, detectLanguage, getAllStoredTranslations, getFinalScope, getTranslatedObject, getTranslationJobCommentCollection, getTranslationJobStatus, getTranslationObjectCommentCollection, getTranslationObjectsStatus, getTranslationObjectStatus, isDirectionSupported, storeTranslation, storeTranslation, supportedLanguages, translateArray, translateString, updateTranslationJobMetadata, updateTranslationJobState, updateTranslationObjectsState, updateTranslationObjectState, uploadTranslationObject
-
-
-
-
Method Detail
-
getTranslationServiceInfo
public TranslationService.TranslationServiceInfo getTranslationServiceInfo()
Description copied from interface:TranslationServiceGets information on a translation service.- Specified by:
getTranslationServiceInfoin interfaceTranslationService- Returns:
- Returns a TranslationInfo object which contains the Name, Label, and Attribution Strings for this specific TranslationService implementation
-
getDefaultCategory
public java.lang.String getDefaultCategory()
Description copied from interface:TranslationServiceGets the default category.- Specified by:
getDefaultCategoryin interfaceTranslationService- Returns:
- Returns a the configured Default Category for this TranslationService instance
-
setDefaultCategory
public void setDefaultCategory(java.lang.String defaultCategory)
Description copied from interface:TranslationServiceSets the default category.- Specified by:
setDefaultCategoryin interfaceTranslationService- Parameters:
defaultCategory- The string representing the category which will be set as the default. This is the value the TranslationService will use if no category is specified elsewhere.
-
updateDueDate
public void updateDueDate(java.lang.String strTranslationJobID, java.util.Date date) throws TranslationExceptionDescription copied from interface:TranslationServiceUpdate translation job due-date- Specified by:
updateDueDatein interfaceTranslationService- Parameters:
strTranslationJobID- Translation Job IDdate- Due date- Throws:
TranslationException
-
-