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 aGetAvailableResourcesParamsPOJO.- Since:
 - 8.1.0
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAvailableResourcesParamsbuild()Creates a new params instance with the current configuration of this builder.GetAvailableResourcesParams.BuildercontentType(String contentType)Sets the content types to which to limit the search.GetAvailableResourcesParams.BuildercontentTypes(String... contentTypes)Sets the content types to which to limit the search.GetAvailableResourcesParams.BuildercontentTypes(Set<String> contentTypes)Sets the content types to which to limit the search.GetAvailableResourcesParams.Builderextension(String extension)Sets the file extension to which to limit the search.GetAvailableResourcesParams.Builderextensions(String... extensions)Sets the file extension to which to limit the search.GetAvailableResourcesParams.Builderextensions(Set<String> extensions)Sets the file extension to which to limit the search.GetAvailableResourcesParams.BuilderincludeAttachmentSearch(boolean includeAttachmentSearch)Whether to include attachments from an attachment file name search, i.e.GetAvailableResourcesParams.BuilderincludeClientFile(boolean includeClientFile)Whether to include client files, i.e.GetAvailableResourcesParams.BuilderincludeExternal(boolean includeExternal)Whether to include external files, i.e.GetAvailableResourcesParams.BuilderincludeFiredTrigger(boolean includeFiredTrigger)Whether to include attachments from fired triggers, i.e.GetAvailableResourcesParams.BuilderincludeFormFile(boolean includeFormFile)Whether to include attachments from form files, i.e.GetAvailableResourcesParams.BuilderincludePreviousNode(boolean includePreviousNode)Whether to include attachments from previously executed workflow nodes, i.e.GetAvailableResourcesParams.BuilderincludeUpload(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 itemsof 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 itemsof 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 itemsof 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 itemsof 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 itemsof 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 itemsof 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 itemsof typeUPLOAD.- Parameters:
 includeUpload- Whether to include attachments from previous nodes.- Returns:
 - This builder instance for chaining method calls.
 
 
 - 
 
 -