Class TranslationServiceImpl

    • Field Summary

      • Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl

        commandExecutor
      • Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl

        configuration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TranslationQuery createTranslationQuery()  
      void deleteByScopeIdAndScopeType​(java.lang.String scopeId, java.lang.String scopeType)
      Delete translation values for the given scope id and scope type.
      java.util.List<Translation> findByScopeIdAndScopeType​(java.lang.String scopeId, java.lang.String scopeType)
      Find all translations for the given scope id and scope type.
      Translation save​(java.lang.String scopeId, java.lang.String scopeType, java.lang.String key, java.lang.String locale, java.lang.String value)
      Create or update a translation for the given scoped object.
      Translation updateValue​(java.lang.String translationId, java.lang.String value)
      Update the translation with the given value
      • Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl

        getCommandExecutor, setCommandExecutor
      • Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl

        getConfiguration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • save

        public Translation save​(java.lang.String scopeId,
                                java.lang.String scopeType,
                                java.lang.String key,
                                java.lang.String locale,
                                java.lang.String value)
        Description copied from interface: TranslationService
        Create or update a translation for the given scoped object.
        Specified by:
        save in interface TranslationService
        Parameters:
        scopeId - the id of the scoped object for the translation
        scopeType - the type of the scoped object for the translation
        key - the key of the translation
        locale - the locale of the translation
        value - the translation value
        Returns:
        the created or updated translation
      • updateValue

        public Translation updateValue​(java.lang.String translationId,
                                       java.lang.String value)
        Description copied from interface: TranslationService
        Update the translation with the given value
        Specified by:
        updateValue in interface TranslationService
        Parameters:
        translationId - the id of the translation that should be updated
        value - the new value of the translation
        Returns:
        The updated translation
      • findByScopeIdAndScopeType

        public java.util.List<Translation> findByScopeIdAndScopeType​(java.lang.String scopeId,
                                                                     java.lang.String scopeType)
        Description copied from interface: TranslationService
        Find all translations for the given scope id and scope type.
        Specified by:
        findByScopeIdAndScopeType in interface TranslationService
        Parameters:
        scopeId - the scope id for which to find translations
        scopeType - the scope type for which to find translations
        Returns:
        the translations for the given scope
      • deleteByScopeIdAndScopeType

        public void deleteByScopeIdAndScopeType​(java.lang.String scopeId,
                                                java.lang.String scopeType)
        Description copied from interface: TranslationService
        Delete translation values for the given scope id and scope type.
        Specified by:
        deleteByScopeIdAndScopeType in interface TranslationService
        Parameters:
        scopeId - the scope id for which to find translations
        scopeType - the scope type for which to find translations