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
All Methods Instance Methods Concrete Methods 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 Detail
-
defaultListResponseSize
@Value("${flowable.platform.rest.default-list-response-size:100}") protected java.lang.Integer defaultListResponseSize
-
translationService
protected final TranslationService translationService
-
-
Constructor Detail
-
PlatformTranslationService
public PlatformTranslationService(TranslationService translationService)
-
-
Method Detail
-
queryScopedTranslations
public org.flowable.common.rest.api.DataResponse<ScopedTranslationRepresentation> queryScopedTranslations(TranslationQueryRequest request)
-
mapToQuery
public TranslationQuery mapToQuery(TranslationQueryRequest request)
-
asScopedRepresentation
public ScopedTranslationRepresentation asScopedRepresentation(Translation translation)
-
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)
-
-