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.LoggerLOGGERprotected MetadataServicemetadataServiceprotected RenditionServicerenditionServiceprotected SimpleContentTypeMappersimpleTypeMapper-
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 booleancanConvertToRestVariable(Object value)ObjectconvertToRestVariable(Object value)ObjectfromRestValue(Object value)intgetOrder()StringgetRestTypeName()Class<?>getVariableType()protected static booleanisListOfContentItems(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:
fromRestValuein interfaceRestVariableConverter
-
convertToRestVariable
public Object convertToRestVariable(Object value)
- Specified by:
convertToRestVariablein interfaceRestVariableConverter
-
canConvertToRestVariable
public boolean canConvertToRestVariable(Object value)
- Specified by:
canConvertToRestVariablein interfaceRestVariableConverter
-
getRestTypeName
public String getRestTypeName()
- Specified by:
getRestTypeNamein interfaceRestVariableConverter
-
getVariableType
public Class<?> getVariableType()
- Specified by:
getVariableTypein interfaceRestVariableConverter
-
isListOfContentItems
protected static boolean isListOfContentItems(Object value)
-
-