public class OakFileDataStore extends FileDataStore implements SharedDataStore
SharedDataStore.Type| Constructor and Description |
|---|
OakFileDataStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMetadataRecord(java.io.File input,
java.lang.String name)
Adds the root record.
|
void |
addMetadataRecord(java.io.InputStream input,
java.lang.String name)
Adds the root record.
|
void |
deleteAllMetadataRecords(java.lang.String prefix)
Deletes all records matching the given prefix.
|
boolean |
deleteMetadataRecord(java.lang.String name)
Deletes the root record represented by the given parameters.
|
java.util.Iterator<DataIdentifier> |
getAllIdentifiers()
Get all identifiers.
|
java.util.List<DataRecord> |
getAllMetadataRecords(java.lang.String prefix)
Gets the all root records.
|
java.util.Iterator<DataRecord> |
getAllRecords()
Retrieved an iterator over all DataRecords.
|
DataRecord |
getMetadataRecord(java.lang.String name)
Retrieves the metadata record with the given name
|
DataRecord |
getRecordForId(DataIdentifier id)
Retrieves the record for the given identifier
|
SharedDataStore.Type |
getType()
Gets the type.
|
boolean |
metadataRecordExists(java.lang.String name)
Checks if the metadata record with the name exists
|
void |
setReferenceKey(byte[] referenceKey) |
void |
setReferenceKeyEncoded(java.lang.String encodedKey)
Set Base64 encoded signing key
|
void |
setReferenceKeyPlainText(java.lang.String textKey)
Set the referenceKey from plain text.
|
addRecord, clearInUse, close, deleteAllOlderThan, deleteRecord, getMinRecordLength, getPath, getRecordIfStored, init, setMinRecordLength, setPath, updateModifiedDateOnAccessgetRecord, getRecordFromReferencepublic static final Logger LOG
public java.util.Iterator<DataIdentifier> getAllIdentifiers()
DataStoregetAllIdentifiers in interface DataStoregetAllIdentifiers in class FileDataStorepublic void setReferenceKeyEncoded(java.lang.String encodedKey)
public void setReferenceKeyPlainText(java.lang.String textKey)
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)
textKey - base64 encoded keyPropertiesUtil.populate(Object, java.util.Map, boolean)public void setReferenceKey(byte[] referenceKey)
public void addMetadataRecord(java.io.InputStream input,
java.lang.String name)
throws DataStoreException
SharedDataStoreaddMetadataRecord in interface SharedDataStoreinput - the streamname - the name of the root recordDataStoreException - the data store exceptionpublic void addMetadataRecord(java.io.File input,
java.lang.String name)
throws DataStoreException
SharedDataStoreaddMetadataRecord in interface SharedDataStoreinput - the filename - the name of the root recordDataStoreException - the data store exceptionpublic DataRecord getMetadataRecord(java.lang.String name)
SharedDataStoregetMetadataRecord in interface SharedDataStorename - the name of the recordpublic boolean metadataRecordExists(java.lang.String name)
SharedDataStoremetadataRecordExists in interface SharedDataStorepublic java.util.List<DataRecord> getAllMetadataRecords(java.lang.String prefix)
SharedDataStoregetAllMetadataRecords in interface SharedDataStorepublic boolean deleteMetadataRecord(java.lang.String name)
SharedDataStoredeleteMetadataRecord in interface SharedDataStorename - the name of the root recordpublic void deleteAllMetadataRecords(java.lang.String prefix)
SharedDataStoredeleteAllMetadataRecords in interface SharedDataStoreprefix - metadata type identifierpublic java.util.Iterator<DataRecord> getAllRecords()
SharedDataStoregetAllRecords in interface SharedDataStorepublic DataRecord getRecordForId(DataIdentifier id) throws DataStoreException
SharedDataStoregetRecordForId in interface SharedDataStoreid - the if of the recordDataStoreExceptionpublic SharedDataStore.Type getType()
SharedDataStoregetType in interface SharedDataStoreCopyright © 2010 - 2023 Adobe. All Rights Reserved