Package io.camunda.client.impl.util
Class DocumentBuilder
java.lang.Object
io.camunda.client.impl.util.DocumentBuilder
- All Implemented Interfaces:
DocumentBuilderStep1,DocumentBuilderStep1.DocumentBuilderStep2
- Direct Known Subclasses:
CreateDocumentBatchCommandImpl.DocumentBuilderStep2BatchImpl,CreateDocumentCommandImpl
public class DocumentBuilder
extends Object
implements DocumentBuilderStep1, DocumentBuilderStep1.DocumentBuilderStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.command.DocumentBuilderStep1
DocumentBuilderStep1.DocumentBuilderStep2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent(byte[] content) Sets the content of the document.content(InputStream content) Sets the content of the document.Sets the content of the document.contentType(String contentType) Sets the content type of the document.customMetadata(String key, Object value) Adds a custom key-value pair to the document metadata.customMetadata(Map<String, Object> customMetadata) Adds custom key-value pairs to the document metadata.Sets the file name of the document.timeToLive(Duration timeToLive) Sets the time-to-live of the document.
-
Constructor Details
-
DocumentBuilder
public DocumentBuilder()
-
-
Method Details
-
content
Description copied from interface:DocumentBuilderStep1Sets the content of the document.- Specified by:
contentin interfaceDocumentBuilderStep1- Parameters:
content- the content of the document as stream
-
content
Description copied from interface:DocumentBuilderStep1Sets the content of the document.- Specified by:
contentin interfaceDocumentBuilderStep1- Parameters:
content- the content of the document as byte array
-
content
Description copied from interface:DocumentBuilderStep1Sets the content of the document.- Specified by:
contentin interfaceDocumentBuilderStep1- Parameters:
content- the content of the document as string
-
contentType
Description copied from interface:DocumentBuilderStep1.DocumentBuilderStep2Sets the content type of the document.- Specified by:
contentTypein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
contentType- the content type of the document
-
fileName
Description copied from interface:DocumentBuilderStep1.DocumentBuilderStep2Sets the file name of the document.- Specified by:
fileNamein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
name- the file name of the document
-
timeToLive
Description copied from interface:DocumentBuilderStep1.DocumentBuilderStep2Sets the time-to-live of the document. The document will be automatically deleted after the time-to-live is exceeded.Depending on the document store, a maximum and a default time-to-live strategy may be enforced.
- Specified by:
timeToLivein interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
timeToLive- the time-to-live of the document
-
customMetadata
Description copied from interface:DocumentBuilderStep1.DocumentBuilderStep2Adds a custom key-value pair to the document metadata.- Specified by:
customMetadatain interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
key- custom metadata keyvalue- custom metadata value
-
customMetadata
Description copied from interface:DocumentBuilderStep1.DocumentBuilderStep2Adds custom key-value pairs to the document metadata.- Specified by:
customMetadatain interfaceDocumentBuilderStep1.DocumentBuilderStep2- Parameters:
customMetadata- custom metadata key-value pairs
-
getMetadata
-
getContent
-