public interface ExtraPropertiesStore
Connector
implementation can use to store and retrieve "extra" properties on a node
that cannot be persisted in the external system. Generally, a connector should store as much as possible in the external
system. However, not all systems are capable of persisting any and all properties that a JCR client may put on a node. In such
cases, the connector can store these "extra" properties (that it does not persist) in this properties store.Modifier and Type | Field and Description |
---|---|
static Map<Name,Property> |
NO_PROPERTIES |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String id)
Check if this store contains any extra properties for the node with the given ID.
|
Map<Name,Property> |
getProperties(String id)
Retrieve the extra properties that were stored for the node with the supplied ID.
|
boolean |
removeProperties(String id)
Remove all of the extra properties that were stored for the node with the supplied ID.
|
void |
storeProperties(String id,
Map<Name,Property> properties)
Store the supplied extra properties for the node with the supplied ID.
|
void |
updateProperties(String id,
Map<Name,Property> properties)
Update the supplied extra properties for the node with the supplied ID.
|
void storeProperties(String id, Map<Name,Property> properties)
id
- the identifier for the node; may not be nullproperties
- the extra properties for the node that should be stored in this storage area, keyed by their namevoid updateProperties(String id, Map<Name,Property> properties)
id
- the identifier for the node; may not be nullproperties
- the extra properties for the node that should be stored in this storage area, keyed by their name; any
entry that contains a null Property will define a property that should be removedMap<Name,Property> getProperties(String id)
id
- the identifier for the node; may not be nullboolean removeProperties(String id)
id
- the identifier for the node; may not be nullboolean contains(String id)
id
- the identifier for the node; may not be nulltrue
if this store contains extra properties, false
otherwise.Copyright © 2008-2015 JBoss, a division of Red Hat. All Rights Reserved.