Class PlatformFormUtil
- java.lang.Object
-
- com.flowable.platform.service.util.PlatformFormUtil
-
public class PlatformFormUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
CONTENT_ITEM_DOWNLOAD_URL_PATTERN
protected static String
CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
CONTENT_ITEM_DOWNLOAD_URL_PATTERN
protected static final String CONTENT_ITEM_DOWNLOAD_URL_PATTERN
- See Also:
- Constant Field Values
-
CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
protected static final String CONTENT_RENDITION_ITEM_DOWNLOAD_URL_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
copyAndTransformSavedFormInstanceValues
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)
-
findContentItemInSavedFormInstanceValues
public static ContentItem findContentItemInSavedFormInstanceValues(String contentItemId, Map<String,Object> savedFormVariables, CoreContentService contentService)
-
transformContentItem
public static ContentItemRepresentation transformContentItem(ContentItemEntity contentItem, RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)
-
transformContentItemWithFormMetadata
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)
-
transformContentItemWithoutMetadata
protected static ContentItemRepresentation transformContentItemWithoutMetadata(ContentItemEntity contentItem, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper)
-
isFormFieldValidationEnabled
public static boolean isFormFieldValidationEnabled(VariableContainer variableContainer, String formFieldValidationExpression)
-
getStartFormFieldValidation
public static String getStartFormFieldValidation(Map<String,List<ExtensionElement>> extensionElements)
-
copyToMap
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)
-
findContentItem
protected static ContentItem findContentItem(String contentItemId, com.fasterxml.jackson.databind.JsonNode valueNode, CoreContentService contentService)
-
getLatestRenditionUrlForContentItem
protected static String getLatestRenditionUrlForContentItem(ContentItem contentItem, String mimeType, RenditionService renditionService)
-
asMap
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)
-
-