Interface IFulfillRequestedUploadRequest
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFulfillRequestedUploadRequest
Basic data for fulfilling a pending
upload request. Requires at least one file
that will be used to fulfill the request.- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionApplies only when theupload requestdoes not reference anupload element.When given, enforces that theuploadRequestUuid()matches the given chat UUID, i.e. that the chat contains the upload request.booleanWhen true, enforces that thefileshave an explicit content type.booleanWhen given, enforces that theuploadRequestUuid()matches the given message UUID, i.e. that the message contains the upload request.files()The files to use for fulfilling the upload request.booleanWhen true, initializes all fields in the response entities (i.e. ensures referenced child entities are loaded from the database).locale()The locale to use for the response.booleanWhether to make the newly created attachments accessible to the end user.The user who provided the upload to fulfill the request.The UUID of apendingupload request.
-
Method Details
-
attachmentSource
EAttachmentSource attachmentSource()Applies only when theupload requestdoes not reference anupload element. Thesourceof the attachments to create. Defaults toUNKNOWN. Note that when the upload request references an upload element, the source is always set toFORM_UPLOAD.- Returns:
- The source of the attachments to create.
-
enforceChatUuid
UUID enforceChatUuid()When given, enforces that theuploadRequestUuid()matches the given chat UUID, i.e. that the chat contains the upload request.- Returns:
- The UUID of the message to enforce.
-
enforceExplicitContentType
boolean enforceExplicitContentType()When true, enforces that thefileshave an explicit content type. Defaults to false.- Returns:
- Whether to enforce that the files have an explicit content type.
-
enforceMatchingUser
-
enforceMessageUuid
UUID enforceMessageUuid()When given, enforces that theuploadRequestUuid()matches the given message UUID, i.e. that the message contains the upload request.- Returns:
- The UUID of the message to enforce.
-
files
List<ISerializableFile> files()The files to use for fulfilling the upload request. When the files do not have an explicit content type, attempts to guess the type, unless an explicit content type isenforced.- Returns:
- The files to use for fulfilling the upload request.
-
initializeResponse
boolean initializeResponse()When true, initializes all fields in the response entities (i.e. ensures referenced child entities are loaded from the database). Defaults to false.- Returns:
- When true, initializes all fields in the response entities.
-
makeFilesAccessibleToEndUser
boolean makeFilesAccessibleToEndUser()Whether to make the newly created attachments accessible to the end user. Defaults to false.- Returns:
- Whether to make the newly created attachments accessible to the end user.
-
oathKeeper
IUser oathKeeper()The user who provided the upload to fulfill the request. Uses an (unspecified) default when not given.- Returns:
- The user who provided the upload to fulfill the request.
-
uploadRequestUuid
-
locale
-