public class DefaultFileSystemItemFactory extends AbstractFileSystemItemFactory implements VersioningFileSystemItemFactory
FileSystemItemFactory. It is DocumentModel backed and is the one used by
 Nuxeo Drive.| Modifier and Type | Field and Description | 
|---|---|
protected static String | 
VERSIONING_DELAY_PARAM
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
protected static String | 
VERSIONING_OPTION_PARAM
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
protected double | 
versioningDelay
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
protected VersioningOption | 
versioningOption
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
name| Constructor and Description | 
|---|
DefaultFileSystemItemFactory()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected FileSystemItem | 
adaptDocument(DocumentModel doc,
             boolean forceParentItem,
             FolderItem parentItem,
             boolean relaxSyncRootConstraint,
             boolean getLockInfo)
Adapts the given  
DocumentModel to a FileSystemItem. | 
protected Blob | 
getBlob(DocumentModel doc)  | 
double | 
getVersioningDelay()
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
VersioningOption | 
getVersioningOption()
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
void | 
handleParameters(Map<String,String> parameters)
Handles the factory parameters contributed through the  
fileSystemItemFactory contribution. | 
boolean | 
isFileSystemItem(DocumentModel doc,
                boolean includeDeleted,
                boolean relaxSyncRootConstraint)
The default factory considers that a  
DocumentModel is adaptable as a FileSystemItem if:
 
 It is not a version
 AND it is not HiddenInNavigation
 AND it is not in the trash, unless includeDeleted is true
 AND it is Folderish or it can be adapted as a BlobHolder with a blob
 AND its blob is not backed by an extended blob provider
 AND it is not a synchronization root registered for the current user, unless relaxSyncRootConstraint
 is true
  | 
boolean | 
needsVersioning(DocumentModel doc)
Deprecated. 
 
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
             drive level, this method is not used anymore 
 | 
void | 
setVersioningDelay(double versioningDelay)
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
void | 
setVersioningOption(VersioningOption versioningOption)
Deprecated. 
 
since 9.1 automatic versioning is directly done by versioning system which holds the policies 
 | 
adaptDocument, canHandleFileSystemItemId, exists, getDocumentById, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, parseFileSystemId, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanHandleFileSystemItemId, exists, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItem, getFileSystemItemById, getFileSystemItemById, getName, isFileSystemItem, isFileSystemItem, setName@Deprecated protected static final String VERSIONING_DELAY_PARAM
@Deprecated protected static final String VERSIONING_OPTION_PARAM
@Deprecated protected double versioningDelay
@Deprecated protected VersioningOption versioningOption
public DefaultFileSystemItemFactory()
public void handleParameters(Map<String,String> parameters)
FileSystemItemFactoryfileSystemItemFactory contribution.handleParameters in interface FileSystemItemFactorypublic boolean isFileSystemItem(DocumentModel doc, boolean includeDeleted, boolean relaxSyncRootConstraint)
DocumentModel is adaptable as a FileSystemItem if:
 includeDeleted is trueBlobHolder with a blobrelaxSyncRootConstraint
 is trueisFileSystemItem in interface FileSystemItemFactoryprotected FileSystemItem adaptDocument(DocumentModel doc, boolean forceParentItem, FolderItem parentItem, boolean relaxSyncRootConstraint, boolean getLockInfo)
AbstractFileSystemItemFactoryDocumentModel to a FileSystemItem.@Deprecated public boolean needsVersioning(DocumentModel doc)
versioningDelay seconds ago.needsVersioning in interface VersioningFileSystemItemFactoryDocumentBackedFileItem#versionIfNeeded(DocumentModel doc, CoreSession session)@Deprecated public double getVersioningDelay()
VersioningFileSystemItemFactorygetVersioningDelay in interface VersioningFileSystemItemFactoryneedsVersioning(DocumentModel)@Deprecated public void setVersioningDelay(double versioningDelay)
VersioningFileSystemItemFactorysetVersioningDelay in interface VersioningFileSystemItemFactory@Deprecated public VersioningOption getVersioningOption()
VersioningFileSystemItemFactorygetVersioningOption in interface VersioningFileSystemItemFactoryDocumentBackedFileItem#versionIfNeeded(DocumentModel doc, CoreSession session)@Deprecated public void setVersioningOption(VersioningOption versioningOption)
VersioningFileSystemItemFactorysetVersioningOption in interface VersioningFileSystemItemFactoryprotected Blob getBlob(DocumentModel doc)
Copyright © 2019 Nuxeo. All rights reserved.