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 StringCONTENT_ITEM_DOWNLOAD_URL_PATTERNprotected static StringCONTENT_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 voidcopyAndTransformSavedFormInstanceValues(Map<String,Object> savedFormVariables, Map<String,Object> variableMap, CoreContentService contentService, RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)protected static voidcopyToMap(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 ContentItemfindContentItem(String contentItemId, com.fasterxml.jackson.databind.JsonNode valueNode, CoreContentService contentService)static ContentItemfindContentItemInSavedFormInstanceValues(String contentItemId, Map<String,Object> savedFormVariables, CoreContentService contentService)protected static StringgetContentItemDownloadUrl(String contentItemId)protected static StringgetLatestRenditionUrlForContentItem(ContentItem contentItem, String mimeType, RenditionService renditionService)protected static StringgetRenditionItemDownloadUrl(String renditionItemId)static StringgetStartFormFieldValidation(Map<String,List<ExtensionElement>> extensionElements)static booleanisFormFieldValidationEnabled(VariableContainer variableContainer, String formFieldValidationExpression)static ContentItemRepresentationtransformContentItem(ContentItemEntity contentItem, RenditionService renditionService, MetadataService metadataService, SimpleContentTypeMapper simpleTypeMapper)protected static ContentItemRepresentationtransformContentItemWithFormMetadata(ContentItemEntity contentItem, com.fasterxml.jackson.databind.node.ObjectNode itemNode, CoreContentService contentService, RenditionService renditionService, SimpleContentTypeMapper simpleTypeMapper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)protected static ContentItemRepresentationtransformContentItemWithoutMetadata(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)
-
-