Class TranslationStorage

java.lang.Object
io.meeds.social.translation.storage.TranslationStorage
Direct Known Subclasses:
CachedTranslationStorage

public class TranslationStorage extends Object
  • Field Details

    • METADATA_TYPE

      public static final org.exoplatform.social.metadata.model.MetadataType METADATA_TYPE
  • Constructor Details

    • TranslationStorage

      public TranslationStorage(org.exoplatform.social.metadata.MetadataService metadataService)
  • Method Details

    • getTranslationField

      public io.meeds.social.translation.model.TranslationField getTranslationField(String objectType, String objectId, String fieldName)
    • getTranslationLabels

      public Map<Locale,String> getTranslationLabels(String objectType, String objectId, String fieldName)
    • getTranslationLabel

      public String getTranslationLabel(String objectType, String objectId, String fieldName, Locale locale)
    • saveTranslationLabels

      public void saveTranslationLabels(String objectType, String objectId, String fieldName, Map<Locale,String> labels, long audienceId, long spaceId)
    • saveTranslationLabel

      public void saveTranslationLabel(String objectType, String objectId, String fieldName, Locale locale, String label, long audienceId, long spaceId)
    • deleteTranslationLabels

      public void deleteTranslationLabels(String objectType, String objectId)
    • deleteTranslationLabel

      public void deleteTranslationLabel(String objectType, String objectId, String fieldName, Locale locale)
    • distinctByKey

      public <T> Predicate<T> distinctByKey(Function<? super T,Object> keyExtractor)