Package de.xima.fc.workflow
Class GetAvailableResourcesParams
- java.lang.Object
-
- de.xima.fc.workflow.GetAvailableResourcesParams
-
- All Implemented Interfaces:
Serializable
public final class GetAvailableResourcesParams extends Object implements Serializable
POJO with parameters forIWorkflowProvider.getAvailableResources(NodeKey, GetAvailableResourcesParams).- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetAvailableResourcesParams.BuilderA simple builder for configuring aGetAvailableResourcesParamsPOJO.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetAvailableResourcesParams.Builderbuilder()Creates a new builder for configuring aGetAvailableResourcesParamsinstance.Set<String>contentTypes()A list of content types for filtering the returned resources.static GetAvailableResourcesParamsdefaults()Gets a params instance with the defaults, which includes all types of attachments.booleanequals(Object o)Set<String>extensions()A list of extensions for filtering the returned resources.inthashCode()booleanincludeAttachmentSearch()Whether to include attachments from an attachment file name search, i.e.booleanincludeClientFile()Whether to include client files, i.e.booleanincludeExternal()Whether to include external files, i.e.booleanincludeFiredTrigger()Whether to include attachments from fired triggers, i.e.booleanincludeFormFile()Whether to include attachments from form files, i.e.booleanincludePreviousNode()Whether to include attachments from previously executed workflow nodes, i.e.booleanincludeUpload()Whether to include attachments from upload elements, i.e.
-
-
-
Method Detail
-
contentTypes
public Set<String> contentTypes()
A list of content types for filtering the returned resources. 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. SoSet.of("text/plain,image/jpg")is the same asSet.of("text/plain", "image/jpg").- Returns:
- The list of content types.
-
extensions
public Set<String> extensions()
A list of extensions for filtering the returned resources. 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. SoSet.of("pdf,docx")is the same asSet.of("pdf", "docx").- Returns:
- The list of extensions.
-
includeAttachmentSearch
public boolean includeAttachmentSearch()
Whether to include attachments from an attachment file name search, i.e.attachment itemsof typeATTACHMENT_SEARCH.- Returns:
- Whether to include attachments form previous nodes.
-
includeClientFile
public boolean includeClientFile()
Whether to include client files, i.e.attachment itemsof typeCLIENT.- Returns:
- Whether to include attachments from client files.
-
includeExternal
public boolean includeExternal()
Whether to include external files, i.e.attachment itemsof typeEXTERNAL.- Returns:
- Whether to include attachments from external files.
-
includeFiredTrigger
public boolean includeFiredTrigger()
Whether to include attachments from fired triggers, i.e.attachment itemsof typeFIRED_TRIGGER.- Returns:
- Whether to include attachments from fired triggers.
-
includeFormFile
public boolean includeFormFile()
Whether to include attachments from form files, i.e.attachment itemsof typeFORM.- Returns:
- Whether to include attachments from form files.
-
includePreviousNode
public boolean includePreviousNode()
Whether to include attachments from previously executed workflow nodes, i.e.attachment itemsof typeFILE_PROVIDE_ACTION.- Returns:
- Whether to include attachments form previous nodes.
-
includeUpload
public boolean includeUpload()
Whether to include attachments from upload elements, i.e.attachment itemsof typeUPLOAD.- Returns:
- Whether to include attachments form previous nodes.
-
builder
public static GetAvailableResourcesParams.Builder builder()
Creates a new builder for configuring aGetAvailableResourcesParamsinstance. The returned builder starts with thedefaults().- Returns:
- A new builder for a params instance.
-
defaults
public static GetAvailableResourcesParams defaults()
Gets a params instance with the defaults, which includes all types of attachments.- Returns:
- A params instance with the defaults.
-
-