Package de.xima.fc.workflow.model.nodes
Class MultiFile
- java.lang.Object
-
- de.xima.fc.workflow.model.nodes.MultiFile
-
- All Implemented Interfaces:
IMultiFileProviding
,IReferencedFileList
,Serializable
@NotEmptyIf(field="urls",dependants="resources",target=MultiFile.class,payload=urls.class) @NotEmptyIf(field="searchFilename",dependants="resources",target=MultiFile.class,payload=searchFilename.class) public final class MultiFile extends Object implements Serializable, IMultiFileProviding
Models a list of file resources that may come from multiple sources, such as client file, project files or external files referenced via an URL.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MultiFile.resources
Custom label for thegetResources()
property.static interface
MultiFile.searchFilename
Custom label for thegetSearchFilename()
property.static interface
MultiFile.urls
Custom label for thegetUrls()
property.
-
Constructor Summary
Constructors Constructor Description MultiFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EAttachmentSource>
getAttachmentFilter()
int
getConnectionTimeout()
int
getReadTimeout()
List<ResourceItem>
getResources()
String
getSearchFilename()
List<String>
getUrls()
boolean
isResourceItemTypeSelected(EResourceItemType resourceItemType)
void
setAttachmentFilter(List<EAttachmentSource> attachmentFilter)
void
setConnectionTimeout(int connectionTimeout)
void
setReadTimeout(int readTimeout)
void
setResources(List<ResourceItem> resources)
void
setSearchFilename(String searchName)
void
setUrls(List<String> urls)
-
-
-
Method Detail
-
getAttachmentFilter
public List<EAttachmentSource> getAttachmentFilter()
- Specified by:
getAttachmentFilter
in interfaceIMultiFileProviding
- Specified by:
getAttachmentFilter
in interfaceIReferencedFileList
- Returns:
- restrictions of type
EAttachmentSource
for the search filename term. Is only used ifResourceItem.getType()
is anEResourceItemType.ATTACHMENT_SEARCH
resource
-
getConnectionTimeout
public int getConnectionTimeout()
- Specified by:
getConnectionTimeout
in interfaceIMultiFileProviding
- Specified by:
getConnectionTimeout
in interfaceIReferencedFileList
- Returns:
- a connection time-out for an external resource retrieval
-
getReadTimeout
public int getReadTimeout()
- Specified by:
getReadTimeout
in interfaceIMultiFileProviding
- Specified by:
getReadTimeout
in interfaceIReferencedFileList
- Returns:
- a read time-out for an external resource retrieval
-
getResources
public List<ResourceItem> getResources()
- Specified by:
getResources
in interfaceIMultiFileProviding
- Specified by:
getResources
in interfaceIReferencedFileList
- Returns:
- a list of
ResourceItem
s
-
getSearchFilename
public String getSearchFilename()
- Specified by:
getSearchFilename
in interfaceIMultiFileProviding
- Specified by:
getSearchFilename
in interfaceIReferencedFileList
- Returns:
null
, or the search filename term, ifResourceItem.getType()
is anEResourceItemType.ATTACHMENT_SEARCH
resource
-
getUrls
public List<String> getUrls()
- Specified by:
getUrls
in interfaceIMultiFileProviding
- Specified by:
getUrls
in interfaceIReferencedFileList
- Returns:
- empty
List
, or anList
with the resources paths.
-
isResourceItemTypeSelected
public boolean isResourceItemTypeSelected(EResourceItemType resourceItemType)
- Specified by:
isResourceItemTypeSelected
in interfaceIMultiFileProviding
- Parameters:
resourceItemType
- a String that can be converted into aEResourceItemType
- Returns:
true
if there is at least one element with the specified resource item type in the list ofresources
. Otherwise returnsfalse
-
setAttachmentFilter
public void setAttachmentFilter(List<EAttachmentSource> attachmentFilter)
- Parameters:
attachmentFilter
- restrictions of typeEAttachmentSource
for the search filename term. Is only used ifResourceItem.getType()
is anEResourceItemType.ATTACHMENT_SEARCH
resource
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
- Parameters:
connectionTimeout
- in seconds for an external retrieval of a resource
-
setReadTimeout
public void setReadTimeout(int readTimeout)
- Parameters:
readTimeout
- in seconds for an external retrieval of a resource
-
setResources
public void setResources(List<ResourceItem> resources)
- Parameters:
resources
- a list ofResourceItem
s
-
setSearchFilename
public void setSearchFilename(String searchName)
- Parameters:
searchName
-null
, or the search filename term, ifResourceItem.getType()
is anEResourceItemType.ATTACHMENT_SEARCH
resource
-
-