Interface IFulfillRequestedUploadRequest
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFulfillRequestedUploadRequest
public interface IFulfillRequestedUploadRequest extends Serializable
Basic data for fulfilling a pendingupload request. Requires at least one file that will be used to fulfill the request.- Since:
- 8.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EAttachmentSourceattachmentSource()Applies only when theupload requestdoes not reference anupload element.UUIDenforceChatUuid()When given, enforces that theuploadRequestUuid()matches the given chat UUID, i.e.booleanenforceExplicitContentType()When true, enforces that thefileshave an explicit content type.booleanenforceMatchingUser()UUIDenforceMessageUuid()When given, enforces that theuploadRequestUuid()matches the given message UUID, i.e.List<ISerializableFile>files()The files to use for fulfilling the upload request.booleaninitializeResponse()When true, initializes all fields in the response entities (i.e.booleanmakeFilesAccessibleToEndUser()Whether to make the newly created attachments accessible to the end user.IUseroathKeeper()The user who provided the upload to fulfill the request.UUIDuploadRequestUuid()The UUID of apendingupload request.
-
-
-
Method Detail
-
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
boolean enforceMatchingUser()
When true, enforces that theuserfulfilling the request matches one ofmembersof the chat containing the message with the upload request. Defaults to false.- Returns:
- When true, enforces that the user fulfilling the request matches one of the chat members.
-
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.
-
-