public class LargeFileSystemConnector extends FileSystemConnector
Connector.ExtraProperties
DEFAULT_PAGE_SIZE
DEFAULT_ROOT_ID
Constructor and Description |
---|
LargeFileSystemConnector() |
Modifier and Type | Method and Description |
---|---|
protected ExternalBinaryValue |
createBinaryValue(File file)
Utility method to create a
BinaryValue object for the given file overriding FileSystemConnector. |
acceptFile, binaryFor, checkFileNotExcluded, contentBasedSha1, contentChildId, createFileForUrl, createUrlForFile, fileFor, getBinaryValue, getChildren, getDocumentById, getDocumentId, getDocumentPathsById, hasDocument, idFor, initialize, isContentNode, isExcluded, isRoot, newDocumentId, removeDocument, sha1, shutdown, storeDocument, updateDocument, writerFor
isReadonly
checkFieldNotNull, extraPropertiesFor, extraPropertiesStore, factories, getChildReference, getContext, getEnvironment, getLogger, getMimeTypeDetector, getRepositoryName, getRootDocumentId, getSourceName, getTransactionManager, isCacheable, isQueryable, log, moveExtraProperties, nameFrom, nameFrom, nameFrom, newChildReference, newConnectorChangedSet, newDocument, newPageDocument, pathFactory, pathFrom, pathFrom, propertyFactory, readDocument, setExtraPropertiesStore, translator, writeDocument
protected ExternalBinaryValue createBinaryValue(File file) throws IOException
BinaryValue
object for the given file overriding FileSystemConnector. Subclasses should
rarely override this method, since the UrlBinaryValue
will be applicable in most situations, but in this subclass
is overriding using FileUrlBinaryValue
to lazily compute a contentBased Hash when the key is a URI based Hash.
Option contentBasedSha1=false should only be used in "write-once" directories as modifying the file will not change stored
hashcreateBinaryValue
in class FileSystemConnector
file
- the file for which the BinaryValue
is to be created; never nullIOException
- if there is an error creating the valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.