Class GetAvailableResourcesParams.Builder
- Enclosing class:
GetAvailableResourcesParams
GetAvailableResourcesParams POJO.- Since:
- 8.1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new params instance with the current configuration of this builder.contentType(String contentType) Sets the content types to which to limit the search.contentTypes(String... contentTypes) Sets the content types to which to limit the search.contentTypes(Set<String> contentTypes) Sets the content types to which to limit the search.Sets the file extension to which to limit the search.extensions(String... extensions) Sets the file extension to which to limit the search.extensions(Set<String> extensions) Sets the file extension to which to limit the search.includeAttachmentSearch(boolean includeAttachmentSearch) Whether to include attachments from an attachment file name search, i.e.includeClientFile(boolean includeClientFile) Whether to include client files, i.e.includeExternal(boolean includeExternal) Whether to include external files, i.e.includeFiredTrigger(boolean includeFiredTrigger) Whether to include attachments from fired triggers, i.e.includeFormFile(boolean includeFormFile) Whether to include attachments from form files, i.e.includePreviousNode(boolean includePreviousNode) Whether to include attachments from previously executed workflow nodes, i.e.includeUpload(boolean includeUpload) Whether to include attachments from upload elements, i.e.
-
Method Details
-
build
Creates a new params instance with the current configuration of this builder. Subsequent changes to this builder are not reflected by the returned instance.- Returns:
- A new params instance.
-
contentType
Sets the content types to which to limit the search.When no content types are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several content types. So
Set.of("text/plain,image/jpg")is the same asSet.of("text/plain", "image/jpg").- Parameters:
contentType- The content types to set.- Returns:
- This builder instance for chaining method calls.
-
contentTypes
Sets the content types to which to limit the search.When no content types are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several content types. So
Set.of("text/plain,image/jpg")is the same asSet.of("text/plain", "image/jpg").- Parameters:
contentTypes- The content types to set.- Returns:
- This builder instance for chaining method calls.
-
contentTypes
Sets the content types to which to limit the search.When no content types are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several content types. So
Set.of("text/plain,image/jpg")is the same asSet.of("text/plain", "image/jpg").- Parameters:
contentTypes- The content types to set.- Returns:
- This builder instance for chaining method calls.
-
extension
Sets the file extension to which to limit the search.When no extensions are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several extension. So
Set.of("pdf,docx")is the same asSet.of("pdf", "docx").- Parameters:
extension- The file extension to set.- Returns:
- This builder instance for chaining method calls.
-
extensions
Sets the file extension to which to limit the search.When no extensions are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several extension. So
Set.of("pdf,docx")is the same asSet.of("pdf", "docx").- Parameters:
extensions- The file extension to set.- Returns:
- This builder instance for chaining method calls.
-
extensions
Sets the file extension to which to limit the search.When no extensions are given, no filtering is applied, i.e.all resources are returned. When an item of this array contains a comma, it is split into several extension. So
Set.of("pdf,docx")is the same asSet.of("pdf", "docx").- Parameters:
extensions- The file extension to set.- Returns:
- This builder instance for chaining method calls.
-
includeAttachmentSearch
Whether to include attachments from an attachment file name search, i.e.attachment itemsof typeATTACHMENT_SEARCH.- Parameters:
includeAttachmentSearch- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-
includeClientFile
Whether to include client files, i.e.attachment itemsof typeCLIENT.- Parameters:
includeClientFile- Whether to include attachments from client files.- Returns:
- This builder instance for chaining method calls.
-
includeExternal
Whether to include external files, i.e.attachment itemsof typeEXTERNAL.- Parameters:
includeExternal- Whether to include attachments from external files.- Returns:
- This builder instance for chaining method calls.
-
includeFiredTrigger
Whether to include attachments from fired triggers, i.e.attachment itemsof typeFIRED_TRIGGER.- Parameters:
includeFiredTrigger- Whether to include attachments from fired triggers.- Returns:
- This builder instance for chaining method calls.
-
includeFormFile
Whether to include attachments from form files, i.e.attachment itemsof typeFORM.- Parameters:
includeFormFile- Whether to include attachments from form files.- Returns:
- This builder instance for chaining method calls.
-
includePreviousNode
Whether to include attachments from previously executed workflow nodes, i.e.attachment itemsof typeFILE_PROVIDE_ACTION.- Parameters:
includePreviousNode- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-
includeUpload
Whether to include attachments from upload elements, i.e.attachment itemsof typeUPLOAD.- Parameters:
includeUpload- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-