public interface SharedDataStore
Modifier and Type | Interface and Description |
---|---|
static class |
SharedDataStore.Type
Explicitly identifies the type of the data store
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadataRecord(File f,
String name)
Adds the root record.
|
void |
addMetadataRecord(InputStream stream,
String name)
Adds the root record.
|
void |
deleteAllMetadataRecords(String prefix)
Deletes all records matching the given prefix.
|
boolean |
deleteMetadataRecord(String name)
Deletes the root record represented by the given parameters.
|
List<DataRecord> |
getAllMetadataRecords(String prefix)
Gets the all root records.
|
Iterator<DataRecord> |
getAllRecords()
Retrieved an iterator over all DataRecords.
|
DataRecord |
getMetadataRecord(String name)
Retrieves the metadata record with the given name
|
DataRecord |
getRecordForId(DataIdentifier id)
Retrieves the record for the given identifier
|
default @Nullable String |
getRepositoryId()
Returns the repository id (identifier for the repository in the DataStore)
|
SharedDataStore.Type |
getType()
Gets the type.
|
boolean |
metadataRecordExists(String name)
Checks if the metadata record with the name exists
|
default void |
setRepositoryId(String repositoryId)
Sets the repository id to identify repository in the DataStore
|
void addMetadataRecord(InputStream stream, String name) throws DataStoreException
stream
- the streamname
- the name of the root recordDataStoreException
- the data store exceptionvoid addMetadataRecord(File f, String name) throws DataStoreException
f
- the filename
- the name of the root recordDataStoreException
- the data store exceptionDataRecord getMetadataRecord(String name)
name
- the name of the recordboolean metadataRecordExists(String name)
name
- List<DataRecord> getAllMetadataRecords(String prefix)
boolean deleteMetadataRecord(String name)
name
- the name of the root recordvoid deleteAllMetadataRecords(String prefix)
prefix
- metadata type identifierIterator<DataRecord> getAllRecords() throws DataStoreException
DataStoreException
DataRecord getRecordForId(DataIdentifier id) throws DataStoreException
id
- the if of the recordDataStoreException
SharedDataStore.Type getType()
@Nullable default @Nullable String getRepositoryId()
default void setRepositoryId(String repositoryId) throws DataStoreException
repositoryId
- DataStoreException
Copyright © 2010 - 2020 Adobe. All Rights Reserved