Class PlatformContentItemVariableConverter
java.lang.Object
com.flowable.platform.service.content.PlatformContentItemVariableConverter
- All Implemented Interfaces:
com.flowable.core.common.rest.variable.RestVariableConverter
,org.flowable.common.rest.variable.RestVariableConverter
,org.springframework.core.Ordered
public class PlatformContentItemVariableConverter
extends java.lang.Object
implements com.flowable.core.common.rest.variable.RestVariableConverter, org.springframework.core.Ordered
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOGGER
protected com.flowable.core.content.api.MetadataService
metadataService
protected com.flowable.core.content.api.RenditionService
renditionService
protected SimpleContentTypeMapper
simpleTypeMapper
-
Constructor Summary
Constructors Constructor Description PlatformContentItemVariableConverter(com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
-
Method Summary
Modifier and Type Method Description boolean
canConvertToRestVariable(java.lang.Object value)
java.lang.Object
convertToRestVariable(java.lang.Object value)
java.lang.Object
fromRestValue(java.lang.Object value)
int
getOrder()
java.lang.String
getRestTypeName()
java.lang.Class<?>
getVariableType()
protected static boolean
isListOfContentItems(java.lang.Object value)
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
renditionService
protected final com.flowable.core.content.api.RenditionService renditionService -
metadataService
protected final com.flowable.core.content.api.MetadataService metadataService -
simpleTypeMapper
-
-
Constructor Details
-
PlatformContentItemVariableConverter
public PlatformContentItemVariableConverter(com.flowable.core.content.api.RenditionService renditionService, com.flowable.core.content.api.MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
-
-
Method Details
-
fromRestValue
public java.lang.Object fromRestValue(java.lang.Object value)- Specified by:
fromRestValue
in interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
convertToRestVariable
public java.lang.Object convertToRestVariable(java.lang.Object value)- Specified by:
convertToRestVariable
in interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
canConvertToRestVariable
public boolean canConvertToRestVariable(java.lang.Object value)- Specified by:
canConvertToRestVariable
in interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
getRestTypeName
public java.lang.String getRestTypeName()- Specified by:
getRestTypeName
in interfaceorg.flowable.common.rest.variable.RestVariableConverter
-
getVariableType
public java.lang.Class<?> getVariableType()- Specified by:
getVariableType
in interfaceorg.flowable.common.rest.variable.RestVariableConverter
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
isListOfContentItems
protected static boolean isListOfContentItems(java.lang.Object value)
-