Uses of Class
org.exoplatform.documents.mcp.model.DocumentModel
Packages that use DocumentModel
-
Uses of DocumentModel in org.exoplatform.documents.mcp
Methods in org.exoplatform.documents.mcp that return DocumentModelModifier and TypeMethodDescriptionDocumentMcpTool.addDocumentVersion(String documentId, String content, String base64, String url, String attachmentObjectType, String attachmentObjectId, String versionSummary, String uploadId) Uploads updated content onto an EXISTING file, creating a NEW version of it (the previous content stays retrievable via list_document_versions / restore_document_version).DocumentMcpTool.copyDocument(String documentId, String destinationFolderId) Copies a file into another folder; in a call limited to a space, the destination folder must be in that space.DocumentMcpTool.createDocument(String parentFolderId, String name, String content) Creates a text-based document (markdown, HTML, plain text, CSV, JSON…) from a chat-authoredcontentstring.DocumentMcpTool.createDocumentFromTemplate(String parentFolderId, String name, String documentType) Creates a NEW EMPTY office document (Word/Excel/PowerPoint, or ODF) from the platform's blank template, by delegating to the ecmsDocumentService.DocumentMcpTool.createFolder(String parentFolderId, String name) Creates a folder under a parent folder, or a chain of nested folders when the name is a path: each segment ofFinances/Factures/Entrantesbut the last reuses the child folder of that name when there is one and is created otherwise, and the last one is created.DocumentMcpTool.duplicateDocument(String documentId, String prefix) Duplicates a file or a folder in its own folder, with an optional prefix and a " (n)" counter, and returns the duplicate.DocumentMcpTool.getDocumentById(String documentId) Returns a document's metadata, with the user's rights on it.DocumentMcpTool.uploadDocument(String parentFolderId, String name, String base64, String url, String attachmentObjectType, String attachmentObjectId, String onConflict, String uploadId) Uploads a real / binary document (PDF, image, office file…) from exactly one of four sources: a file/image the user attached in the chat conversation (resolved server-side as the current user viaattachment_object_type/attachment_object_id), a file the user sent through an upload link (upload_id, filed from its staged file, never read into memory), a base64 payload, or an http(s) URL (fetched server-side behind an SSRF guard).Methods in org.exoplatform.documents.mcp that return types with arguments of type DocumentModelModifier and TypeMethodDescriptionDocumentMcpTool.getDocumentsByFolderId(String folderId, Boolean filesOnly, Boolean foldersOnly, Integer offset, Integer limit) Lists a page of a folder's children, folders first.DocumentMcpTool.listFolderChildren(String folderId, Integer offset, Integer limit, String updatedSince) Lists the direct children of a folder, folders first, or with a date only the children changed since then, the most recent first. -
Uses of DocumentModel in org.exoplatform.documents.mcp.model
Subclasses of DocumentModel in org.exoplatform.documents.mcp.modelMethods in org.exoplatform.documents.mcp.model that return DocumentModelModifier and TypeMethodDescriptionChunkedUpload.document()Returns the value of thedocumentrecord component.DocumentUploadModel.document()Returns the value of thedocumentrecord component.Methods in org.exoplatform.documents.mcp.model with parameters of type DocumentModelModifier and TypeMethodDescriptionChunkedUpload.filedAs(DocumentModel filed, Instant now) The upload filed.Constructors in org.exoplatform.documents.mcp.model with parameters of type DocumentModelModifierConstructorDescriptionChunkedUpload(String id, String userName, String folderId, String name, long size, org.exoplatform.documents.constant.UploadConflictAction conflictAction, Path file, long received, int nextIndex, String lastPieceDigest, Instant touched, boolean filing, DocumentModel document) Creates an instance of aChunkedUploadrecord class.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.