public class PlatformFormUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CONTENT_ITEM_DOWNLOAD_URL_PATTERN |
protected static String |
CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN |
Modifier and Type | Method and Description |
---|---|
protected static Map<String,Object> |
asMap(com.fasterxml.jackson.databind.node.ObjectNode objectNode,
CoreContentService contentService,
RenditionService renditionService,
SimpleContentTypeMapper simpleTypeMapper,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
static void |
copyAndTransformSavedFormInstanceValues(Map<String,Object> savedFormVariables,
Map<String,Object> variableMap,
CoreContentService contentService,
RenditionService renditionService,
MetadataService metadataService,
SimpleContentTypeMapper simpleTypeMapper,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
protected static void |
copyToMap(Map<String,Object> variableMap,
String formVariableName,
com.fasterxml.jackson.databind.JsonNode valueNode,
CoreContentService contentService,
RenditionService renditionService,
SimpleContentTypeMapper simpleTypeMapper,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
protected static ContentItem |
findContentItem(String contentItemId,
com.fasterxml.jackson.databind.JsonNode valueNode,
CoreContentService contentService) |
static ContentItem |
findContentItemInSavedFormInstanceValues(String contentItemId,
Map<String,Object> savedFormVariables,
CoreContentService contentService) |
protected static String |
getContentItemDownloadUrl(String contentItemId) |
protected static String |
getLatestRenditionUrlForContentItem(ContentItem contentItem,
String mimeType,
RenditionService renditionService) |
protected static String |
getRenditionItemDownloadUrl(String renditionItemId) |
static String |
getStartFormFieldValidation(Map<String,List<ExtensionElement>> extensionElements) |
static boolean |
isFormFieldValidationEnabled(VariableContainer variableContainer,
String formFieldValidationExpression) |
static ContentItemRepresentation |
transformContentItem(ContentItemEntity contentItem,
RenditionService renditionService,
MetadataService metadataService,
SimpleContentTypeMapper simpleTypeMapper) |
protected static ContentItemRepresentation |
transformContentItemWithFormMetadata(ContentItemEntity contentItem,
com.fasterxml.jackson.databind.node.ObjectNode itemNode,
CoreContentService contentService,
RenditionService renditionService,
SimpleContentTypeMapper simpleTypeMapper,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
protected static ContentItemRepresentation |
transformContentItemWithoutMetadata(ContentItemEntity contentItem,
RenditionService renditionService,
SimpleContentTypeMapper simpleTypeMapper) |
protected static final String CONTENT_ITEM_DOWNLOAD_URL_PATTERN
protected static final String CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
public static void copyAndTransformSavedFormInstanceValues(Map<String,Object> savedFormVariables, Map<String,Object> variableMap, CoreContentService contentService, RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public static ContentItem findContentItemInSavedFormInstanceValues(String contentItemId, Map<String,Object> savedFormVariables, CoreContentService contentService)
public static ContentItemRepresentation transformContentItem(ContentItemEntity contentItem, RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
protected static ContentItemRepresentation transformContentItemWithFormMetadata(ContentItemEntity contentItem, com.fasterxml.jackson.databind.node.ObjectNode itemNode, CoreContentService contentService, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected static ContentItemRepresentation transformContentItemWithoutMetadata(ContentItemEntity contentItem, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper)
public static boolean isFormFieldValidationEnabled(VariableContainer variableContainer, String formFieldValidationExpression)
public static String getStartFormFieldValidation(Map<String,List<ExtensionElement>> extensionElements)
protected static void copyToMap(Map<String,Object> variableMap, String formVariableName, com.fasterxml.jackson.databind.JsonNode valueNode, CoreContentService contentService, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected static ContentItem findContentItem(String contentItemId, com.fasterxml.jackson.databind.JsonNode valueNode, CoreContentService contentService)
protected static String getLatestRenditionUrlForContentItem(ContentItem contentItem, String mimeType, RenditionService renditionService)
protected static Map<String,Object> asMap(com.fasterxml.jackson.databind.node.ObjectNode objectNode, CoreContentService contentService, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)