Record Class DocumentUploadModel
java.lang.Object
java.lang.Record
org.exoplatform.documents.mcp.model.DocumentUploadModel
- Record Components:
uploadId- the upload's id, to send the pieces withparentFolderId- the folder the file is filed intoname- the file name it is filed undersize- the file's size, in bytesreceivedBytes- the bytes received so farnextIndex- the number of the next piece to send, from 0maxBytes- the largest file uploadedchunkChars- the base64 characters of one piece to send, the last one holding the restexpiresInMinutes- how long the upload is kept without a piecedocument- the document the file was filed as, once its last piece came
public record DocumentUploadModel(String uploadId, String parentFolderId, String name, long size, long receivedBytes, int nextIndex, long maxBytes, int chunkChars, long expiresInMinutes, DocumentModel document)
extends Record
An upload in pieces, as
start_document_upload and
append_document_upload_chunk return it.-
Constructor Summary
ConstructorsConstructorDescriptionDocumentUploadModel(String uploadId, String parentFolderId, String name, long size, long receivedBytes, int nextIndex, long maxBytes, int chunkChars, long expiresInMinutes, DocumentModel document) Creates an instance of aDocumentUploadModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechunkCharsrecord component.document()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresInMinutesrecord component.final inthashCode()Returns a hash code value for this object.longmaxBytes()Returns the value of themaxBytesrecord component.name()Returns the value of thenamerecord component.intReturns the value of thenextIndexrecord component.Returns the value of theparentFolderIdrecord component.longReturns the value of thereceivedBytesrecord component.longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.uploadId()Returns the value of theuploadIdrecord component.
-
Constructor Details
-
DocumentUploadModel
public DocumentUploadModel(String uploadId, String parentFolderId, String name, long size, long receivedBytes, int nextIndex, long maxBytes, int chunkChars, long expiresInMinutes, DocumentModel document) Creates an instance of aDocumentUploadModelrecord class.- Parameters:
uploadId- the value for theuploadIdrecord componentparentFolderId- the value for theparentFolderIdrecord componentname- the value for thenamerecord componentsize- the value for thesizerecord componentreceivedBytes- the value for thereceivedBytesrecord componentnextIndex- the value for thenextIndexrecord componentmaxBytes- the value for themaxBytesrecord componentchunkChars- the value for thechunkCharsrecord componentexpiresInMinutes- the value for theexpiresInMinutesrecord componentdocument- the value for thedocumentrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
uploadId
-
parentFolderId
Returns the value of theparentFolderIdrecord component.- Returns:
- the value of the
parentFolderIdrecord component
-
name
-
size
-
receivedBytes
public long receivedBytes()Returns the value of thereceivedBytesrecord component.- Returns:
- the value of the
receivedBytesrecord component
-
nextIndex
-
maxBytes
-
chunkChars
public int chunkChars()Returns the value of thechunkCharsrecord component.- Returns:
- the value of the
chunkCharsrecord component
-
expiresInMinutes
public long expiresInMinutes()Returns the value of theexpiresInMinutesrecord component.- Returns:
- the value of the
expiresInMinutesrecord component
-
document
-