Class AmetysPersistenceManager
java.lang.Object
org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
org.ametys.plugins.repository.provider.AmetysPersistenceManager
- All Implemented Interfaces:
CacheAccessListener
,CachingPersistenceManager
,ConsistencyChecker
,IterablePersistenceManager
,PersistenceManager
,DatabaseAware
Ametys implementation of Jackrabbit's
PersistenceManager
.
This implementation is only a wrapper to an actual BundleDbPersistenceManager
, depending on the config parameter.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
BundleDbPersistenceManager.CloseableBLOBStore, BundleDbPersistenceManager.DbBlobStore, BundleDbPersistenceManager.FSBlobStore
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Config parameter's name referencing the datasource to use.static final String
Config parameter's name to use default Jackrabbit behaviour.Fields inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
binding, blobStore, blockOnConnectionLoss, bundleDeleteSQL, bundleInsertSQL, bundleSelectAllBundlesFromSQL, bundleSelectAllBundlesSQL, bundleSelectAllIdsFromSQL, bundleSelectAllIdsSQL, bundleSelectSQL, bundleUpdateSQL, conHelper, consistencyCheck, consistencyFix, databaseType, dataSourceName, driver, errorHandling, externalBLOBs, INITIAL_BUFFER_SIZE, initialized, nodeReferenceDeleteSQL, nodeReferenceInsertSQL, nodeReferenceSelectSQL, nodeReferenceUpdateSQL, password, schemaObjectPrefix, SM_BINARY_KEYS, SM_LONGLONG_KEYS, url, user
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
context, NODEFILENAME, NODEREFSFILENAME, RES_NAME_INDEX, RES_NS_INDEX
Fields inherited from interface org.apache.jackrabbit.core.cache.CacheAccessListener
ACCESS_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkConsistency
(String[] uuids, boolean recursive, boolean fix) void
close()
createNew
(PropertyId id) void
destroy
(NodeReferences refs) boolean
boolean
exists
(PropertyId id) boolean
existsReferencesTo
(NodeId targetId) getAllNodeIds
(NodeId bigger, int maxCount) getAllNodeInfos
(NodeId bigger, int maxCount) void
load
(PropertyId id) void
setBlockOnConnectionLoss
(String block) void
setBundleCacheSize
(String bundleCacheSize) void
setConnectionFactory
(ConnectionFactory connectionFactory) void
setConsistencyCheck
(String check) void
setConsistencyFix
(String fix) void
void
setErrorHandling
(String errHandling) void
setEventChannel
(UpdateEventChannel eventChannel) void
setExternalBLOBs
(boolean externalBlobs) void
setMinBlobSize
(String minBlobSize) void
setPassword
(String unused) void
setSchemaObjectPrefix
(String schemaPrefix) void
void
void
setWorkspace
(String workspace) Indicates the current JCR workspace.void
Methods inherited from class org.apache.jackrabbit.core.persistence.pool.BundleDbPersistenceManager
buildSQLStatements, createBlobStore, createCheckSchemaOperation, createConnectionHelper, createDBBlobStore, createDbNameIndex, createLocalFSBlobStore, createParams, destroyBundle, getBlobStore, getBlockOnConnectionLoss, getConsistencyCheck, getConsistencyFix, getDatabaseType, getDataSourceName, getDriver, getErrorHandling, getKey, getMinBlobSize, getNameIndex, getPassword, getSchema, getSchemaObjectPrefix, getStorageModel, getUrl, getUser, isExternalBLOBs, isSchemaCheckEnabled, loadBundle, setDatabaseType, setDataSourceName, setSchema, setSchemaCheckEnabled, store, storeBundle, toString, useDbBlobStore, useLocalFsBlobStore
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.AbstractBundlePersistenceManager
buildBlobFilePath, buildNodeFilePath, buildNodeFolderPath, buildNodeReferencesFilePath, buildPropFilePath, cacheAccessed, check, disposeCache, evictBundle, getBundleCacheSize, getNsIndex, onExternalUpdate
-
Field Details
-
CONFIG_USE_DEFAULT
Config parameter's name to use default Jackrabbit behaviour.- See Also:
-
CONFIG_PM_DATASOURCE
Config parameter's name referencing the datasource to use.- See Also:
-
-
Constructor Details
-
AmetysPersistenceManager
public AmetysPersistenceManager()Constructor.
-
-
Method Details
-
setWorkspace
Indicates the current JCR workspace.- Parameters:
workspace
- the JCR workspace.
-
setUrl
- Overrides:
setUrl
in classBundleDbPersistenceManager
-
setUser
- Overrides:
setUser
in classBundleDbPersistenceManager
-
setPassword
- Overrides:
setPassword
in classBundleDbPersistenceManager
-
setDriver
- Overrides:
setDriver
in classBundleDbPersistenceManager
-
init
- Specified by:
init
in interfacePersistenceManager
- Overrides:
init
in classBundleDbPersistenceManager
- Throws:
Exception
-
close
- Specified by:
close
in interfacePersistenceManager
- Overrides:
close
in classBundleDbPersistenceManager
- Throws:
Exception
-
createNew
- Specified by:
createNew
in interfacePersistenceManager
- Overrides:
createNew
in classAbstractBundlePersistenceManager
-
createNew
- Specified by:
createNew
in interfacePersistenceManager
- Overrides:
createNew
in classAbstractBundlePersistenceManager
-
load
- Specified by:
load
in interfacePersistenceManager
- Overrides:
load
in classAbstractBundlePersistenceManager
- Throws:
NoSuchItemStateException
ItemStateException
-
load
- Specified by:
load
in interfacePersistenceManager
- Overrides:
load
in classAbstractBundlePersistenceManager
- Throws:
NoSuchItemStateException
ItemStateException
-
loadReferencesTo
public NodeReferences loadReferencesTo(NodeId id) throws NoSuchItemStateException, ItemStateException - Specified by:
loadReferencesTo
in interfacePersistenceManager
- Overrides:
loadReferencesTo
in classBundleDbPersistenceManager
- Throws:
NoSuchItemStateException
ItemStateException
-
exists
- Specified by:
exists
in interfacePersistenceManager
- Overrides:
exists
in classAbstractBundlePersistenceManager
- Throws:
ItemStateException
-
exists
- Specified by:
exists
in interfacePersistenceManager
- Overrides:
exists
in classAbstractBundlePersistenceManager
- Throws:
ItemStateException
-
existsReferencesTo
- Specified by:
existsReferencesTo
in interfacePersistenceManager
- Overrides:
existsReferencesTo
in classBundleDbPersistenceManager
- Throws:
ItemStateException
-
store
- Specified by:
store
in interfacePersistenceManager
- Overrides:
store
in classBundleDbPersistenceManager
- Throws:
ItemStateException
-
checkConsistency
- Specified by:
checkConsistency
in interfacePersistenceManager
- Overrides:
checkConsistency
in classAbstractBundlePersistenceManager
-
getAllNodeIds
public List<NodeId> getAllNodeIds(NodeId bigger, int maxCount) throws ItemStateException, javax.jcr.RepositoryException - Specified by:
getAllNodeIds
in interfaceIterablePersistenceManager
- Overrides:
getAllNodeIds
in classBundleDbPersistenceManager
- Throws:
ItemStateException
javax.jcr.RepositoryException
-
destroy
- Overrides:
destroy
in classBundleDbPersistenceManager
- Throws:
ItemStateException
-
getAllNodeInfos
- Specified by:
getAllNodeInfos
in interfaceIterablePersistenceManager
- Overrides:
getAllNodeInfos
in classBundleDbPersistenceManager
- Throws:
ItemStateException
-
setBlockOnConnectionLoss
- Overrides:
setBlockOnConnectionLoss
in classBundleDbPersistenceManager
-
setBundleCacheSize
- Overrides:
setBundleCacheSize
in classAbstractBundlePersistenceManager
-
setConnectionFactory
- Specified by:
setConnectionFactory
in interfaceDatabaseAware
- Overrides:
setConnectionFactory
in classBundleDbPersistenceManager
-
setConsistencyCheck
- Overrides:
setConsistencyCheck
in classBundleDbPersistenceManager
-
setConsistencyFix
- Overrides:
setConsistencyFix
in classBundleDbPersistenceManager
-
setErrorHandling
- Overrides:
setErrorHandling
in classBundleDbPersistenceManager
-
setEventChannel
- Specified by:
setEventChannel
in interfaceConsistencyChecker
- Overrides:
setEventChannel
in classAbstractBundlePersistenceManager
-
setExternalBLOBs
- Overrides:
setExternalBLOBs
in classBundleDbPersistenceManager
-
setMinBlobSize
- Overrides:
setMinBlobSize
in classBundleDbPersistenceManager
-
setSchemaObjectPrefix
- Overrides:
setSchemaObjectPrefix
in classBundleDbPersistenceManager
-