public interface VersioningFileSystemItemFactory extends FileSystemItemFactory
FileSystemItemFactory
able to handle versioning.DefaultFileSystemItemFactory
Modifier and Type | Method and Description |
---|---|
double |
getVersioningDelay()
Gets the delay passed which a document needs to be versioned since its last modification.
|
VersioningOption |
getVersioningOption()
Gets the increment option used when versioning a document.
|
boolean |
needsVersioning(DocumentModel doc)
Returns true if the given
DocumentModel needs to be versioned. |
void |
setVersioningDelay(double versioningDelay)
Sets the delay passed which a document needs to be versioned since its last modification.
|
void |
setVersioningOption(VersioningOption versioningOption)
Sets the increment option used when versioning a document.
|
canHandleFileSystemItemId, exists, getDocumentByFileSystemId, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, handleParameters, isFileSystemItem, isFileSystemItem, isFileSystemItem, setName
boolean needsVersioning(DocumentModel doc)
DocumentModel
needs to be versioned. An example of policy could be to version
the document if the last modification was done more than getVersioningDelay()
seconds ago.DocumentBackedFileItem#versionIfNeeded(DocumentModel doc, CoreSession session)
double getVersioningDelay()
void setVersioningDelay(double versioningDelay)
VersioningOption getVersioningOption()
DocumentBackedFileItem#versionIfNeeded(DocumentModel doc, CoreSession session)
void setVersioningOption(VersioningOption versioningOption)
Copyright © 2015 Nuxeo SA. All rights reserved.