Class DefaultRequestUploadData
- java.lang.Object
-
- de.xima.fc.common.form_record.chat.DefaultRequestUploadData
-
- All Implemented Interfaces:
IRequestUploadData,Serializable
public final class DefaultRequestUploadData extends Object implements IRequestUploadData
POJO implementation ofIRequestUploadDatawith a builder.- Since:
- 8.2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultRequestUploadData.BuilderA builder forIRequestUploadData.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>acceptedUploadTypes()Types of files that are accepted for upload.static DefaultRequestUploadData.Builderbuilder()EUploadRequestFileMergeModefileMergeMode()How to handle existing files when the user uploads files to fulfill the upload request.StringformFieldName()Name of an upload form field associated with the upload request.LongmaxNumberOfFiles()Maximum number of files that may be uploaded.longminNumberOfFiles()Minimum number of files that must be uploaded.Stringname()Optional.LongrepetitionId()Optional.LonguploadSizeLimit()Maximum size of the upload in bytes.
-
-
-
Method Detail
-
acceptedUploadTypes
public Set<String> acceptedUploadTypes()
Description copied from interface:IRequestUploadDataTypes of files that are accepted for upload. May be null or empty if all types are accepted.- Specified by:
acceptedUploadTypesin interfaceIRequestUploadData- Returns:
- Types of files that are accepted for upload.
-
fileMergeMode
public EUploadRequestFileMergeMode fileMergeMode()
Description copied from interface:IRequestUploadDataHow to handle existing files when the user uploads files to fulfill the upload request.- Specified by:
fileMergeModein interfaceIRequestUploadData- Returns:
- How to handle existing files when the upload requests is fulfilled.
-
formFieldName
public String formFieldName()
Description copied from interface:IRequestUploadDataName of an upload form field associated with the upload request. May be null or empty if the upload request is not associated with a form field.- Specified by:
formFieldNamein interfaceIRequestUploadData- Returns:
- Name of the upload form field.
-
maxNumberOfFiles
public Long maxNumberOfFiles()
Description copied from interface:IRequestUploadDataMaximum number of files that may be uploaded. May be null if the number of files is not limited.- Specified by:
maxNumberOfFilesin interfaceIRequestUploadData- Returns:
- Maximum number of files that may be uploaded.
-
minNumberOfFiles
public long minNumberOfFiles()
Description copied from interface:IRequestUploadDataMinimum number of files that must be uploaded.- Specified by:
minNumberOfFilesin interfaceIRequestUploadData- Returns:
- Minimum number of files that must be uploaded.
-
name
public String name()
Description copied from interface:IRequestUploadDataOptional. Name of the upload request that may be displayed to the user.- Specified by:
namein interfaceIRequestUploadData- Returns:
- Name of the upload request.
-
repetitionId
public Long repetitionId()
Description copied from interface:IRequestUploadDataOptional. ID of the repetition of the upload request. May be null if the upload request is not repeated. Note that ID is not the ordinal index of the repetition, but a unique identifier. An ordinal index starts at 0 is continuous (0,1,2,3,4,...), while an ID may be any unique value.- Specified by:
repetitionIdin interfaceIRequestUploadData- Returns:
- ID of the repetition of the upload request.
-
uploadSizeLimit
public Long uploadSizeLimit()
Description copied from interface:IRequestUploadDataMaximum size of the upload in bytes. May be null if the size is not limited.- Specified by:
uploadSizeLimitin interfaceIRequestUploadData- Returns:
- Maximum size of the upload in bytes.
-
builder
public static DefaultRequestUploadData.Builder builder()
-
-