public class PlatformContentItemVariableConverter extends Object implements RestVariableConverter, Ordered
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOGGER |
protected MetadataService |
metadataService |
protected RenditionService |
renditionService |
protected SimpleContentTypeMapper |
simpleTypeMapper |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
PlatformContentItemVariableConverter(RenditionService renditionService,
MetadataService metadataService,
SimpleContentTypeMapper simpleTypeMapper) |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertVariableValue, getVariableValue
protected static final org.slf4j.Logger LOGGER
protected final RenditionService renditionService
protected final MetadataService metadataService
protected final SimpleContentTypeMapper simpleTypeMapper
public PlatformContentItemVariableConverter(RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
public boolean canConvertToRestVariable(Object value)
public String getRestTypeName()
getRestTypeName
in interface RestVariableConverter
public Class<?> getVariableType()
getVariableType
in interface RestVariableConverter
protected static boolean isListOfContentItems(Object value)