Package org.nuxeo.ecm.core.blob
Class LocalBlobStoreConfiguration
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
-
- org.nuxeo.ecm.core.blob.LocalBlobStoreConfiguration
-
public class LocalBlobStoreConfiguration extends PropertyBasedConfiguration
Configuration for the local storage of files.- Since:
- 11.1
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_FILE
static String
DATA
static int
DEFAULT_DEPTH
static String
DEFAULT_PATH
BinaryManagerRootDescriptor
descriptor
DigestConfiguration
digestConfiguration
static String
PROP_PATH
In the initialization properties, the property for the store path.Path
storageDir
static String
TMP
Path
tmpDir
static Pattern
WINDOWS_ABSOLUTE_PATH
-
Fields inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
properties, systemPropertyPrefix
-
-
Constructor Summary
Constructors Constructor Description LocalBlobStoreConfiguration(Map<String,String> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryManagerRootDescriptor
getDescriptor(Path configFile, boolean create)
Gets existing descriptor or creates a default one.Path
getStorageBase()
Gets the storage base to use, based on the properties.-
Methods inherited from class org.nuxeo.ecm.core.blob.PropertyBasedConfiguration
getBooleanProperty, getIntProperty, getIntProperty, getLongProperty, getProperty, getProperty
-
-
-
-
Field Detail
-
PROP_PATH
public static final String PROP_PATH
In the initialization properties, the property for the store path.- See Also:
- Constant Field Values
-
WINDOWS_ABSOLUTE_PATH
public static final Pattern WINDOWS_ABSOLUTE_PATH
-
DEFAULT_PATH
public static final String DEFAULT_PATH
- See Also:
- Constant Field Values
-
DATA
public static final String DATA
- See Also:
- Constant Field Values
-
TMP
public static final String TMP
- See Also:
- Constant Field Values
-
CONFIG_FILE
public static final String CONFIG_FILE
- See Also:
- Constant Field Values
-
storageDir
public final Path storageDir
-
tmpDir
public final Path tmpDir
-
descriptor
public final BinaryManagerRootDescriptor descriptor
-
digestConfiguration
public final DigestConfiguration digestConfiguration
-
DEFAULT_DEPTH
public static final int DEFAULT_DEPTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalBlobStoreConfiguration
public LocalBlobStoreConfiguration(Map<String,String> properties) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getStorageBase
public Path getStorageBase()
Gets the storage base to use, based on the properties.
-
getDescriptor
public BinaryManagerRootDescriptor getDescriptor(Path configFile, boolean create) throws IOException
Gets existing descriptor or creates a default one.- Throws:
IOException
-
-