public class ExternalJsonSidecarExtraPropertyStore extends Object implements org.modeshape.jcr.spi.federation.ExtraPropertiesStore
| Constructor and Description |
|---|
ExternalJsonSidecarExtraPropertyStore(FedoraFileSystemConnector connector,
org.modeshape.jcr.cache.document.DocumentTranslator translator,
File propertyStoreRoot)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String id)
This is a trivial reimplementation of the private modeshape implementation in
org.modeshape.connector.filesystem.JsonSidecarExtraPropertyStore
See: https://github.com/ModeShape/modeshape/blob/modeshape-4.2.0.Final/modeshape-jcr/src/main/java/
org/modeshape/connector/filesystem/JsonSidecarExtraPropertyStore.java#L156
|
Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> |
getProperties(String id)
This is a trivial reimplementation of the private modeshape implementation in
org.modeshape.connector.filesystem.JsonSidecarExtraPropertyStore
See: https://github.com/ModeShape/modeshape/blob/modeshape-4.2.0.Final/modeshape-jcr/src/main/java/
org/modeshape/connector/filesystem/JsonSidecarExtraPropertyStore.java#L60
|
boolean |
removeProperties(String id)
This is a trivial reimplementation of the private Modeshape implementation in
org.modeshape.connector.filesystem.JsonSidecarExtraPropertyStore
See: https://github.com/ModeShape/modeshape/blob/modeshape-4.2.0.Final/modeshape-jcr/src/main/java/
org/modeshape/connector/filesystem/JsonSidecarExtraPropertyStore.java#L139
|
protected File |
sidecarFile(String id) |
void |
storeProperties(String id,
Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> properties)
This is a trivial reimplementation of the private modeshape implementation in
org.modeshape.connector.filesystem.JsonSidecarExtraPropertyStore
See: https://github.com/ModeShape/modeshape/blob/modeshape-4.2.0.Final/modeshape-jcr/src/main/java/
org/modeshape/connector/filesystem/JsonSidecarExtraPropertyStore.java#L102
|
void |
updateProperties(String id,
Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> properties)
This is a trivial reimplementation of the private modeshape implementation in
org.modeshape.connector.filesystem.JsonSidecarExtraPropertyStore
See: https://github.com/ModeShape/modeshape/blob/modeshape-4.2.0.Final/modeshape-jcr/src/main/java/
org/modeshape/connector/filesystem/JsonSidecarExtraPropertyStore.java#L74
|
public ExternalJsonSidecarExtraPropertyStore(FedoraFileSystemConnector connector, org.modeshape.jcr.cache.document.DocumentTranslator translator, File propertyStoreRoot)
connector - the FileSystemConnector for which this class will store properties.translator - the utility to translate properties to/from the JSON configurationpropertyStoreRoot - the root of a filesystem into which properties will be
serialized.protected File sidecarFile(String id)
public boolean removeProperties(String id)
removeProperties in interface org.modeshape.jcr.spi.federation.ExtraPropertiesStoreid - the identifier for the sidecar filepublic Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> getProperties(String id)
getProperties in interface org.modeshape.jcr.spi.federation.ExtraPropertiesStoreid - the identifier for the sidecar filepublic void updateProperties(String id, Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> properties)
updateProperties in interface org.modeshape.jcr.spi.federation.ExtraPropertiesStoreid - the id for the sidecar fileproperties - the keys/values to set in the specified sidecar configurationpublic void storeProperties(String id, Map<org.modeshape.jcr.value.Name,org.modeshape.jcr.value.Property> properties)
storeProperties in interface org.modeshape.jcr.spi.federation.ExtraPropertiesStoreid - the id for the sidecar fileproperties - the keys/values to set in the specified sidecar configurationpublic boolean contains(String id)
contains in interface org.modeshape.jcr.spi.federation.ExtraPropertiesStoreid - the id for the sidecar fileCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.