Class PlatformTranslationService
java.lang.Object
com.flowable.platform.service.translation.PlatformTranslationService
public class PlatformTranslationService
extends java.lang.Object
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Integer
defaultListResponseSize
protected TranslationService
translationService
-
Constructor Summary
Constructors Constructor Description PlatformTranslationService(TranslationService translationService)
-
Method Summary
Modifier and Type Method Description ScopedTranslationRepresentation
asScopedRepresentation(Translation translation)
java.util.List<ScopedTranslationRepresentation>
asScopedRepresentationList(java.util.List<Translation> translations)
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
convertToTranslationsMap(java.util.Collection<Translation> translations)
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>
fetchTranslations(java.lang.String scopeId, java.lang.String scopeType)
TranslationQuery
mapToQuery(TranslationQueryRequest request)
org.flowable.common.rest.api.DataResponse<ScopedTranslationRepresentation>
queryScopedTranslations(TranslationQueryRequest request)
-
Field Details
-
defaultListResponseSize
@Value("${flowable.platform.rest.default-list-response-size:100}") protected java.lang.Integer defaultListResponseSize -
translationService
-
-
Constructor Details
-
Method Details
-
queryScopedTranslations
public org.flowable.common.rest.api.DataResponse<ScopedTranslationRepresentation> queryScopedTranslations(TranslationQueryRequest request) -
mapToQuery
-
asScopedRepresentation
-
asScopedRepresentationList
public java.util.List<ScopedTranslationRepresentation> asScopedRepresentationList(java.util.List<Translation> translations) -
fetchTranslations
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> fetchTranslations(java.lang.String scopeId, java.lang.String scopeType) -
convertToTranslationsMap
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> convertToTranslationsMap(java.util.Collection<Translation> translations)
-