Uses of Class
com.logicaldoc.core.document.DocumentHistory
Package
Description
Automation subsystem that allows you to program your own logic inside the
platform.
The automation engine can be accessed through the class
Please note the special annotation
The automation engine can be accessed through the class
Automation
Please note the special annotation
AutomationDictionary
that is used to
automatically put in the Dictionary whatever bean you need.Machinery for converting documents to different formats.
-
Uses of DocumentHistory in com.logicaldoc.core.automation
Modifier and TypeMethodDescriptionDocTool.getHistories
(long docId, String event) Retrieve the list of events of a documentModifier and TypeMethodDescriptionDocTool.displayUrl
(DocumentHistory history) Builds the display url of a document(display permalink)DocTool.downloadUrl
(DocumentHistory history) Builds the download url of a document(download permalink)void
DocTool.store
(Document doc, DocumentHistory transaction) Saves / updates a document into the database -
Uses of DocumentHistory in com.logicaldoc.core.conversion
Modifier and TypeMethodDescriptionFormatConverterManager.convert
(Document document, String fileVersion, String format, DocumentHistory transaction) Converts a document into another format and saves the resulting file in the same foldervoid
FormatConverterManager.convertToFile
(Document document, String fileVersion, File out, DocumentHistory transaction) Converts a document and writes the content of the conversion into a file. -
Uses of DocumentHistory in com.logicaldoc.core.document
Modifier and TypeMethodDescriptionDocumentHistoryDAO.findByDocId
(long docId) This method selects all histories of a given document.HibernateDocumentHistoryDAO.findByDocId
(long docId) DocumentHistoryDAO.findByDocIdAndEvent
(long docId, String event) This method selects all histories of a given document.HibernateDocumentHistoryDAO.findByDocIdAndEvent
(long docId, String event) DocumentHistoryDAO.findByFolderId
(long folderId) This method selects all histories of a given folder.HibernateDocumentHistoryDAO.findByFolderId
(long folderId) DocumentHistoryDAO.findByPath
(String pathExpression, Date oldestDate, Collection<String> events, Integer max) This method finds all histories about a path (you can use expression)HibernateDocumentHistoryDAO.findByPath
(String pathExpression, Date oldestDate, Collection<String> events, Integer max) DocumentHistoryDAO.findByUserId
(long userId) This method selects all histories of a given user.HibernateDocumentHistoryDAO.findByUserId
(long userId) DocumentHistoryDAO.findByUserIdAndEvent
(long userId, String event, String sessionId) This method selects all histories of a given user and related to the given event.HibernateDocumentHistoryDAO.findByUserIdAndEvent
(long userId, String event, String sessionId) DocumentHistoryDAO.findNotNotified
(Integer max) This method selects all histories not notified yet.HibernateDocumentHistoryDAO.findNotNotified
(Integer max) Modifier and TypeMethodDescriptionvoid
DocumentInitializer.afterCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentListener.afterCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called after a document is checked invoid
DocumentValidator.afterCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentInitializer.afterSaveHistory
(Document document, DocumentHistory event, Map<String, Object> dictionary) void
DocumentListener.afterSaveHistory
(Document document, DocumentHistory event, Map<String, Object> dictionary) Called after an event has been storedvoid
DocumentValidator.afterSaveHistory
(Document document, DocumentHistory event, Map<String, Object> dictionary) void
DocumentInitializer.afterStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentListener.afterStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called after a document is stored in the databasevoid
DocumentValidator.afterStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentDAO.applyParentFolderSecurity
(long docId, DocumentHistory transaction) Replaces the document's security policies with those from the parent foldervoid
HibernateDocumentDAO.applyParentFolderSecurity
(long docId, DocumentHistory transaction) void
DocumentDAO.archive
(long docId, DocumentHistory transaction) Archives a documentvoid
HibernateDocumentDAO.archive
(long docId, DocumentHistory transaction) void
DocumentManager.archiveDocuments
(Set<Long> docIds, DocumentHistory transaction) Archives all the documents in a folder's treevoid
DocumentManagerImpl.archiveDocuments
(Set<Long> docIds, DocumentHistory transaction) long
DocumentManager.archiveFolder
(long folderId, DocumentHistory transaction) Archives all the documents in a folder's treelong
DocumentManagerImpl.archiveFolder
(long folderId, DocumentHistory transaction) void
DocumentInitializer.beforeCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentListener.beforeCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called before a document is checked invoid
DocumentValidator.beforeCheckin
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentInitializer.beforeStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentListener.beforeStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called before a document is stored in the databasevoid
DocumentValidator.beforeStore
(Document document, DocumentHistory transaction, Map<String, Object> dictionary) void
DocumentManager.checkin
(long docId, File file, String filename, boolean release, AbstractDocument docVO, DocumentHistory transaction) Checks in the given documentvoid
DocumentManager.checkin
(long docId, InputStream fileInputStream, String filename, boolean release, AbstractDocument docVO, DocumentHistory transaction) Checks in the given documentvoid
DocumentManagerImpl.checkin
(long docId, File file, String filename, boolean release, AbstractDocument docVO, DocumentHistory transaction) void
DocumentManagerImpl.checkin
(long docId, InputStream content, String filename, boolean release, AbstractDocument docVO, DocumentHistory transaction) void
DocumentManager.checkout
(long docId, DocumentHistory transaction) Checks out the given documentvoid
DocumentManagerImpl.checkout
(long docId, DocumentHistory transaction) DocumentManager.copyToFolder
(Document doc, Folder folder, DocumentHistory transaction, boolean links, boolean notes, boolean security) Copy a document to the specified folder.DocumentManagerImpl.copyToFolder
(Document doc, Folder folder, DocumentHistory transaction, boolean links, boolean notes, boolean security) DocumentManager.create
(File file, Document docVO, DocumentHistory transaction) Creates a new Document.DocumentManager.create
(InputStream content, Document docVO, DocumentHistory transaction) Creates a new Document.DocumentManagerImpl.create
(File file, Document docVO, DocumentHistory transaction) DocumentManagerImpl.create
(InputStream content, Document docVO, DocumentHistory transaction) DocumentManager.createAlias
(Document doc, Folder folder, String type, DocumentHistory transaction) Create an alias(shortcut) associated to the given doc to the specified folder.DocumentManagerImpl.createAlias
(Document doc, Folder folder, String aliasType, DocumentHistory transaction) DocumentManager.createTicket
(Ticket ticket, DocumentHistory transaction) Creates a new ticket.DocumentManagerImpl.createTicket
(Ticket ticket, DocumentHistory transaction) void
DocumentDAO.delete
(long docId, int delCode, DocumentHistory transaction) This method deletes the document object and insert a new document history entry.void
DocumentDAO.delete
(long docId, DocumentHistory transaction) Shortcut for delete(docId, 1, transaction)void
HibernateDocumentDAO.delete
(long docId, int delCode, DocumentHistory transaction) void
HibernateDocumentDAO.delete
(long docId, DocumentHistory transaction) void
DocumentDAO.deleteAll
(Collection<Document> documents, int delCode, DocumentHistory transaction) Deletes all documents form the database and modifies the custom ids of all documentsvoid
DocumentDAO.deleteAll
(Collection<Document> documents, DocumentHistory transaction) Shortcut for deleteAll(documents, 1, transaction)void
HibernateDocumentDAO.deleteAll
(Collection<Document> documents, int delCode, DocumentHistory transaction) void
HibernateDocumentDAO.deleteAll
(Collection<Document> documents, DocumentHistory transaction) DocumentManager.deleteVersion
(long versionId, DocumentHistory transaction) Deletes a specific version.DocumentManagerImpl.deleteVersion
(long versionId, DocumentHistory transaction) int
DocumentManager.enforceFilesIntoFolderStore
(long rootFolderId, DocumentHistory transaction) Moves all the files of the documents in the given tree from it's original location to the store defined in the owning folderint
DocumentManagerImpl.enforceFilesIntoFolderStore
(long rootFolderId, DocumentHistory transaction) long
DocumentManager.index
(long docId, String content, DocumentHistory transaction) Re-indexes an existing document in the full-text index.long
DocumentManagerImpl.index
(long docId, String content, DocumentHistory transaction) void
DocumentManager.lock
(long docId, int status, DocumentHistory transaction) Locks the given documentvoid
DocumentManagerImpl.lock
(long docId, int status, DocumentHistory transaction) void
DocumentDAO.makeImmutable
(long docId, DocumentHistory transaction) Marks the document, with the given docId, as immutable.void
DocumentManager.makeImmutable
(long docId, DocumentHistory transaction) Marks the document, with the given docId, as immutable and save the given document historyvoid
DocumentManagerImpl.makeImmutable
(long docId, DocumentHistory transaction) void
HibernateDocumentDAO.makeImmutable
(long docId, DocumentHistory transaction) DocumentManager.merge
(Collection<Document> documents, long targetFolderId, String fileName, DocumentHistory transaction) Merges a set of documents into a single PDF fileDocumentManagerImpl.merge
(Collection<Document> documents, long targetFolderId, String fileName, DocumentHistory transaction) void
DocumentManager.moveToFolder
(Document doc, Folder folder, DocumentHistory transaction) Moves a document to the specified folder.void
DocumentManagerImpl.moveToFolder
(Document doc, Folder folder, DocumentHistory transaction) void
DocumentManager.promoteVersion
(long docId, String version, DocumentHistory transaction) Promotes an old version to the current default one.void
DocumentManagerImpl.promoteVersion
(long docId, String version, DocumentHistory transaction) void
DocumentManager.rename
(long docId, String newName, DocumentHistory transaction) Rename an existing document filename.void
DocumentManagerImpl.rename
(long docId, String newName, DocumentHistory transaction) DocumentManager.replaceAlias
(long aliasId, DocumentHistory transaction) Replaces an alias with a copy of the original fileDocumentManagerImpl.replaceAlias
(long aliasId, DocumentHistory transaction) void
DocumentManager.replaceFile
(long docId, String fileVersion, File newFile, DocumentHistory transaction) Replaces the file of a given versionvoid
DocumentManager.replaceFile
(long docId, String fileVersion, InputStream newFile, DocumentHistory transaction) Replaces the file of a given versionvoid
DocumentManagerImpl.replaceFile
(long docId, String fileVersion, File newFile, DocumentHistory transaction) void
DocumentManagerImpl.replaceFile
(long docId, String fileVersion, InputStream content, DocumentHistory transaction) void
DocumentDAO.restore
(long docId, long folderId, DocumentHistory transaction) Restores a previously deleted documentvoid
HibernateDocumentDAO.restore
(long docId, long folderId, DocumentHistory transaction) void
DocumentDAO.saveDocumentHistory
(Document doc, DocumentHistory transaction) Saves a document's historyvoid
HibernateDocumentDAO.saveDocumentHistory
(Document doc, DocumentHistory transaction) void
DocumentDAO.setPassword
(long docId, String password, DocumentHistory transaction) Protects the document with a password.void
HibernateDocumentDAO.setPassword
(long docId, String password, DocumentHistory transaction) void
DocumentDAO.store
(Document doc, DocumentHistory transaction) This method persists the document object and insert a new document history entryvoid
DocumentNoteDAO.store
(DocumentNote note, DocumentHistory transaction) Stores a note and saves the document's historyvoid
HibernateDocumentDAO.store
(Document doc, DocumentHistory transaction) void
HibernateDocumentNoteDAO.store
(DocumentNote note, DocumentHistory transaction) void
HibernateRatingDAO.store
(Rating rating, DocumentHistory transaction) void
RatingDAO.store
(Rating rating, DocumentHistory transaction) Stores a rating and saves the document's historyvoid
DocumentDAO.unarchive
(long docId, DocumentHistory transaction) Restores a previously archived documentvoid
HibernateDocumentDAO.unarchive
(long docId, DocumentHistory transaction) void
DocumentManager.unlock
(long docId, DocumentHistory transaction) UNChecks out the given documentvoid
DocumentManagerImpl.unlock
(long docId, DocumentHistory transaction) void
DocumentDAO.unsetPassword
(long docId, DocumentHistory transaction) Removes the password protection from the document.void
HibernateDocumentDAO.unsetPassword
(long docId, DocumentHistory transaction) void
DocumentManager.update
(Document doc, Document docVO, DocumentHistory transaction) Updates an existing document and marks it to be re-indexedvoid
DocumentManagerImpl.update
(Document document, Document docVO, DocumentHistory transaction) int
HibernateRatingDAO.updateDocumentRating
(long docId, DocumentHistory transaction) int
RatingDAO.updateDocumentRating
(long docId, DocumentHistory transaction) Updates the document's rating with the votes average -
Uses of DocumentHistory in com.logicaldoc.core.ticket
Modifier and TypeMethodDescriptionvoid
HibernateTicketDAO.store
(Ticket entity, DocumentHistory transaction) void
TicketDAO.store
(Ticket ticket, DocumentHistory transaction) This method persists the download ticket object and insert a new document history entry -
Uses of DocumentHistory in com.logicaldoc.core.transfer
Modifier and TypeMethodDescriptionZipExport.process
(Long[] docIds, boolean pdfConversion, DocumentHistory transaction) Exports a selection of documentsvoid
ZipExport.process
(Long[] docIds, OutputStream out, boolean pdfConversion, DocumentHistory transaction) Exports a selection of documents