Class PlatformContentItemVariableConverter
- java.lang.Object
-
- com.flowable.platform.service.content.PlatformContentItemVariableConverter
-
- All Implemented Interfaces:
RestVariableConverter
,RestVariableConverter
,Ordered
public class PlatformContentItemVariableConverter extends Object implements RestVariableConverter, Ordered
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOGGER
protected MetadataService
metadataService
protected RenditionService
renditionService
protected SimpleContentTypeMapper
simpleTypeMapper
-
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
-
Constructor Summary
Constructors Constructor Description PlatformContentItemVariableConverter(RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvertToRestVariable(Object value)
Object
convertToRestVariable(Object value)
Object
fromRestValue(Object value)
int
getOrder()
String
getRestTypeName()
Class<?>
getVariableType()
protected static boolean
isListOfContentItems(Object value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.flowable.core.common.rest.variable.RestVariableConverter
convertVariableValue, getVariableValue
-
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
renditionService
protected final RenditionService renditionService
-
metadataService
protected final MetadataService metadataService
-
simpleTypeMapper
protected final SimpleContentTypeMapper simpleTypeMapper
-
-
Constructor Detail
-
PlatformContentItemVariableConverter
public PlatformContentItemVariableConverter(RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
-
-
Method Detail
-
fromRestValue
public Object fromRestValue(Object value)
- Specified by:
fromRestValue
in interfaceRestVariableConverter
-
convertToRestVariable
public Object convertToRestVariable(Object value)
- Specified by:
convertToRestVariable
in interfaceRestVariableConverter
-
canConvertToRestVariable
public boolean canConvertToRestVariable(Object value)
- Specified by:
canConvertToRestVariable
in interfaceRestVariableConverter
-
getRestTypeName
public String getRestTypeName()
- Specified by:
getRestTypeName
in interfaceRestVariableConverter
-
getVariableType
public Class<?> getVariableType()
- Specified by:
getVariableType
in interfaceRestVariableConverter
-
isListOfContentItems
protected static boolean isListOfContentItems(Object value)
-
-