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.LoggerLOGGERprotected com.flowable.core.content.api.MetadataServicemetadataServiceprotected com.flowable.core.content.api.RenditionServicerenditionServiceprotected SimpleContentTypeMappersimpleTypeMapper -
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 booleancanConvertToRestVariable(java.lang.Object value)java.lang.ObjectconvertToRestVariable(java.lang.Object value)java.lang.ObjectfromRestValue(java.lang.Object value)intgetOrder()java.lang.StringgetRestTypeName()java.lang.Class<?>getVariableType()protected static booleanisListOfContentItems(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:
fromRestValuein interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
convertToRestVariable
public java.lang.Object convertToRestVariable(java.lang.Object value)- Specified by:
convertToRestVariablein interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
canConvertToRestVariable
public boolean canConvertToRestVariable(java.lang.Object value)- Specified by:
canConvertToRestVariablein interfacecom.flowable.core.common.rest.variable.RestVariableConverter
-
getRestTypeName
public java.lang.String getRestTypeName()- Specified by:
getRestTypeNamein interfaceorg.flowable.common.rest.variable.RestVariableConverter
-
getVariableType
public java.lang.Class<?> getVariableType()- Specified by:
getVariableTypein interfaceorg.flowable.common.rest.variable.RestVariableConverter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
isListOfContentItems
protected static boolean isListOfContentItems(java.lang.Object value)
-