Class TranslationServiceImpl

java.lang.Object
io.meeds.social.translation.service.TranslationServiceImpl
All Implemented Interfaces:
io.meeds.social.translation.service.TranslationService

public class TranslationServiceImpl extends Object implements io.meeds.social.translation.service.TranslationService
  • Constructor Details

    • TranslationServiceImpl

      public TranslationServiceImpl(TranslationStorage translationStorage, org.exoplatform.services.resources.LocaleConfigService localeConfigService, org.exoplatform.services.listener.ListenerService listenerService)
  • Method Details

    • addPlugin

      public void addPlugin(io.meeds.social.translation.plugin.TranslationPlugin translationPlugin)
      Specified by:
      addPlugin in interface io.meeds.social.translation.service.TranslationService
    • removePlugin

      public void removePlugin(String objectType)
      Specified by:
      removePlugin in interface io.meeds.social.translation.service.TranslationService
    • getTranslationField

      public io.meeds.social.translation.model.TranslationField getTranslationField(String objectType, long objectId, String fieldName, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getTranslationField in interface io.meeds.social.translation.service.TranslationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getTranslationField

      public io.meeds.social.translation.model.TranslationField getTranslationField(String objectType, long objectId, String fieldName)
      Specified by:
      getTranslationField in interface io.meeds.social.translation.service.TranslationService
    • getAllTranslationFields

      public Map<String,io.meeds.social.translation.model.TranslationField> getAllTranslationFields(String objectType, long objectId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getAllTranslationFields in interface io.meeds.social.translation.service.TranslationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getAllTranslationFields

      public Map<String,io.meeds.social.translation.model.TranslationField> getAllTranslationFields(String objectType, long objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getAllTranslationFields in interface io.meeds.social.translation.service.TranslationService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getTranslationLabel

      public String getTranslationLabel(String objectType, long objectId, String fieldName, Locale locale)
      Specified by:
      getTranslationLabel in interface io.meeds.social.translation.service.TranslationService
    • getTranslationLabelOrDefault

      public String getTranslationLabelOrDefault(String objectType, long objectId, String fieldName, Locale locale)
      Specified by:
      getTranslationLabelOrDefault in interface io.meeds.social.translation.service.TranslationService
    • saveTranslationLabels

      public void saveTranslationLabels(String objectType, long objectId, String fieldName, Map<Locale,String> labels, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveTranslationLabels in interface io.meeds.social.translation.service.TranslationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveTranslationLabels

      public void saveTranslationLabels(String objectType, long objectId, String fieldName, Map<Locale,String> labels) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveTranslationLabels in interface io.meeds.social.translation.service.TranslationService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • saveTranslationLabel

      public void saveTranslationLabel(String objectType, long objectId, String fieldName, Locale locale, String label) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      saveTranslationLabel in interface io.meeds.social.translation.service.TranslationService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deleteTranslationLabels

      public void deleteTranslationLabels(String objectType, long objectId, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      deleteTranslationLabels in interface io.meeds.social.translation.service.TranslationService
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deleteTranslationLabels

      public void deleteTranslationLabels(String objectType, long objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      deleteTranslationLabels in interface io.meeds.social.translation.service.TranslationService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • deleteTranslationLabel

      public void deleteTranslationLabel(String objectType, long objectId, String fieldName, Locale locale) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      deleteTranslationLabel in interface io.meeds.social.translation.service.TranslationService
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException