Class AutomaticTranslationComponentPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.automatic.translation.api.AutomaticTranslationComponentPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public abstract class AutomaticTranslationComponentPlugin extends org.exoplatform.container.component.BaseComponentPlugin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.exoplatform.commons.api.settings.SettingService
     

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AutomaticTranslationComponentPlugin(org.exoplatform.commons.api.settings.SettingService settingService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setApiKey(String apiKey)
     
    abstract String
    translate(String message, Locale targetLocale)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • settingService

      protected org.exoplatform.commons.api.settings.SettingService settingService
  • Constructor Details

    • AutomaticTranslationComponentPlugin

      protected AutomaticTranslationComponentPlugin(org.exoplatform.commons.api.settings.SettingService settingService)
  • Method Details

    • setApiKey

      public void setApiKey(String apiKey)
    • getApiKey

      public String getApiKey()
    • translate

      public abstract String translate(String message, Locale targetLocale)