Class GetAvailableResourcesParams.Builder
- java.lang.Object
-
- de.xima.fc.workflow.GetAvailableResourcesParams.Builder
-
- Enclosing class:
- GetAvailableResourcesParams
public static final class GetAvailableResourcesParams.Builder extends Object
A simple builder for configuring aGetAvailableResourcesParams
POJO.- Since:
- 8.1.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAvailableResourcesParams
build()
Creates a new params instance with the current configuration of this builder.GetAvailableResourcesParams.Builder
contentType(String contentType)
Sets the content types to which to limit the search.GetAvailableResourcesParams.Builder
contentTypes(String... contentTypes)
Sets the content types to which to limit the search.GetAvailableResourcesParams.Builder
contentTypes(Set<String> contentTypes)
Sets the content types to which to limit the search.GetAvailableResourcesParams.Builder
extension(String extension)
Sets the file extension to which to limit the search.GetAvailableResourcesParams.Builder
extensions(String... extensions)
Sets the file extension to which to limit the search.GetAvailableResourcesParams.Builder
extensions(Set<String> extensions)
Sets the file extension to which to limit the search.GetAvailableResourcesParams.Builder
includeAttachmentSearch(boolean includeAttachmentSearch)
Whether to include attachments from an attachment file name search, i.e.GetAvailableResourcesParams.Builder
includeClientFile(boolean includeClientFile)
Whether to include client files, i.e.GetAvailableResourcesParams.Builder
includeExternal(boolean includeExternal)
Whether to include external files, i.e.GetAvailableResourcesParams.Builder
includeFiredTrigger(boolean includeFiredTrigger)
Whether to include attachments from fired triggers, i.e.GetAvailableResourcesParams.Builder
includeFormFile(boolean includeFormFile)
Whether to include attachments from form files, i.e.GetAvailableResourcesParams.Builder
includePreviousNode(boolean includePreviousNode)
Whether to include attachments from previously executed workflow nodes, i.e.GetAvailableResourcesParams.Builder
includeUpload(boolean includeUpload)
Whether to include attachments from upload elements, i.e.
-
-
-
Method Detail
-
build
public GetAvailableResourcesParams 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
public GetAvailableResourcesParams.Builder contentType(String 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
public GetAvailableResourcesParams.Builder contentTypes(Set<String> 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
public GetAvailableResourcesParams.Builder contentTypes(String... 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
public GetAvailableResourcesParams.Builder extension(String 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
public GetAvailableResourcesParams.Builder extensions(Set<String> 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
public GetAvailableResourcesParams.Builder extensions(String... 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
public GetAvailableResourcesParams.Builder includeAttachmentSearch(boolean includeAttachmentSearch)
Whether to include attachments from an attachment file name search, i.e.attachment items
of typeATTACHMENT_SEARCH
.- Parameters:
includeAttachmentSearch
- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-
includeClientFile
public GetAvailableResourcesParams.Builder includeClientFile(boolean includeClientFile)
Whether to include client files, i.e.attachment items
of typeCLIENT
.- Parameters:
includeClientFile
- Whether to include attachments from client files.- Returns:
- This builder instance for chaining method calls.
-
includeExternal
public GetAvailableResourcesParams.Builder includeExternal(boolean includeExternal)
Whether to include external files, i.e.attachment items
of typeEXTERNAL
.- Parameters:
includeExternal
- Whether to include attachments from external files.- Returns:
- This builder instance for chaining method calls.
-
includeFiredTrigger
public GetAvailableResourcesParams.Builder includeFiredTrigger(boolean includeFiredTrigger)
Whether to include attachments from fired triggers, i.e.attachment items
of typeFIRED_TRIGGER
.- Parameters:
includeFiredTrigger
- Whether to include attachments from fired triggers.- Returns:
- This builder instance for chaining method calls.
-
includeFormFile
public GetAvailableResourcesParams.Builder includeFormFile(boolean includeFormFile)
Whether to include attachments from form files, i.e.attachment items
of typeFORM
.- Parameters:
includeFormFile
- Whether to include attachments from form files.- Returns:
- This builder instance for chaining method calls.
-
includePreviousNode
public GetAvailableResourcesParams.Builder includePreviousNode(boolean includePreviousNode)
Whether to include attachments from previously executed workflow nodes, i.e.attachment items
of typeFILE_PROVIDE_ACTION
.- Parameters:
includePreviousNode
- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-
includeUpload
public GetAvailableResourcesParams.Builder includeUpload(boolean includeUpload)
Whether to include attachments from upload elements, i.e.attachment items
of typeUPLOAD
.- Parameters:
includeUpload
- Whether to include attachments from previous nodes.- Returns:
- This builder instance for chaining method calls.
-
-