Class OakFileDataStore
java.lang.Object
org.apache.jackrabbit.core.data.AbstractDataStore
org.apache.jackrabbit.core.data.FileDataStore
org.apache.jackrabbit.oak.plugins.blob.datastore.OakFileDataStore
- All Implemented Interfaces:
DataStore,MultiDataStoreAware,SharedDataStore
@Deprecated(since="2024-09-23")
public class OakFileDataStore
extends FileDataStore
implements SharedDataStore
Deprecated.
The Jackrabbit Oak Blob Plugins library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2025.
Oak specific extension of JR2 FileDataStore which enables
provisioning the signing key via OSGi config
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
SharedDataStore.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadataRecord(File input, String name) Deprecated.Adds the root record.voidaddMetadataRecord(InputStream input, String name) Deprecated.Adds the root record.voiddeleteAllMetadataRecords(String prefix) Deprecated.Deletes all records matching the given prefix.booleandeleteMetadataRecord(String name) Deprecated.Deletes the root record represented by the given parameters.Deprecated.Get all identifiers.getAllMetadataRecords(String prefix) Deprecated.Gets the all root records.Deprecated.Retrieved an iterator over all DataRecords.getMetadataRecord(String name) Deprecated.Retrieves the metadata record with the given nameDeprecated.Retrieves the record for the given identifiergetType()Deprecated.Gets the type.booleanmetadataRecordExists(String name) Deprecated.Checks if the metadata record with the name existsvoidsetReferenceKey(byte[] referenceKey) Deprecated.voidsetReferenceKeyEncoded(String encodedKey) Deprecated.Set Base64 encoded signing keyvoidsetReferenceKeyPlainText(String textKey) Deprecated.Set the referenceKey from plain text.Methods inherited from class org.apache.jackrabbit.core.data.FileDataStore
addRecord, clearInUse, close, deleteAllOlderThan, deleteRecord, getMinRecordLength, getPath, getRecordIfStored, init, setMinRecordLength, setPath, updateModifiedDateOnAccessMethods inherited from class org.apache.jackrabbit.core.data.AbstractDataStore
getRecord, getRecordFromReferenceMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.oak.plugins.blob.SharedDataStore
getRepositoryId, setRepositoryId
-
Field Details
-
LOG
Deprecated.
-
-
Constructor Details
-
OakFileDataStore
public OakFileDataStore()Deprecated.
-
-
Method Details
-
getAllIdentifiers
Deprecated.Description copied from interface:DataStoreGet all identifiers.- Specified by:
getAllIdentifiersin interfaceDataStore- Overrides:
getAllIdentifiersin classFileDataStore- Returns:
- an iterator over all DataIdentifier objects
-
setReferenceKeyEncoded
Deprecated.Set Base64 encoded signing key -
setReferenceKeyPlainText
Deprecated.Set the referenceKey from plain text. Key content would be UTF-8 encoding of the string.This is useful when setting key via generic bean property manipulation from string properties. User can specify the key in plain text and that would be passed on this object via
PropertiesUtil.populate(Object, java.util.Map, boolean)- Parameters:
textKey- base64 encoded key- See Also:
-
setReferenceKey
public void setReferenceKey(byte[] referenceKey) Deprecated. -
addMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreAdds the root record.- Specified by:
addMetadataRecordin interfaceSharedDataStore- Parameters:
input- the streamname- the name of the root record- Throws:
DataStoreException- the data store exception
-
addMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreAdds the root record.- Specified by:
addMetadataRecordin interfaceSharedDataStore- Parameters:
input- the filename- the name of the root record- Throws:
DataStoreException- the data store exception
-
getMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreRetrieves the metadata record with the given name- Specified by:
getMetadataRecordin interfaceSharedDataStore- Parameters:
name- the name of the record- Returns:
-
metadataRecordExists
Deprecated.Description copied from interface:SharedDataStoreChecks if the metadata record with the name exists- Specified by:
metadataRecordExistsin interfaceSharedDataStore- Parameters:
name-- Returns:
-
getAllMetadataRecords
Deprecated.Description copied from interface:SharedDataStoreGets the all root records.- Specified by:
getAllMetadataRecordsin interfaceSharedDataStore- Returns:
- the all root records
-
deleteMetadataRecord
Deprecated.Description copied from interface:SharedDataStoreDeletes the root record represented by the given parameters.- Specified by:
deleteMetadataRecordin interfaceSharedDataStore- Parameters:
name- the name of the root record- Returns:
- success/failure
-
deleteAllMetadataRecords
Deprecated.Description copied from interface:SharedDataStoreDeletes all records matching the given prefix.- Specified by:
deleteAllMetadataRecordsin interfaceSharedDataStore- Parameters:
prefix- metadata type identifier
-
getAllRecords
Deprecated.Description copied from interface:SharedDataStoreRetrieved an iterator over all DataRecords.- Specified by:
getAllRecordsin interfaceSharedDataStore- Returns:
- iterator over DataRecords
-
getRecordForId
Deprecated.Description copied from interface:SharedDataStoreRetrieves the record for the given identifier- Specified by:
getRecordForIdin interfaceSharedDataStore- Parameters:
id- the if of the record- Returns:
- data record
- Throws:
DataStoreException
-
getType
Deprecated.Description copied from interface:SharedDataStoreGets the type.- Specified by:
getTypein interfaceSharedDataStore- Returns:
- the type
-