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 class
AbstractTranslationService.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.String
getDefaultCategory()
Gets the default category.TranslationService.TranslationServiceInfo
getTranslationServiceInfo()
Gets information on a translation service.void
setDefaultCategory(java.lang.String defaultCategory)
Sets the default category.void
updateDueDate(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:TranslationService
Gets information on a translation service.- Specified by:
getTranslationServiceInfo
in 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:TranslationService
Gets the default category.- Specified by:
getDefaultCategory
in interfaceTranslationService
- Returns:
- Returns a the configured Default Category for this TranslationService instance
-
setDefaultCategory
public void setDefaultCategory(java.lang.String defaultCategory)
Description copied from interface:TranslationService
Sets the default category.- Specified by:
setDefaultCategory
in 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 TranslationException
Description copied from interface:TranslationService
Update translation job due-date- Specified by:
updateDueDate
in interfaceTranslationService
- Parameters:
strTranslationJobID
- Translation Job IDdate
- Due date- Throws:
TranslationException
-
-