|
ModeShape Distribution 3.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtraPropertiesStore
Store for extra properties, which a 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.
Field Summary | |
---|---|
static Map<Name,Property> |
NO_PROPERTIES
|
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final Map<Name,Property> NO_PROPERTIES
Method Detail |
---|
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 null
boolean removeProperties(String id)
id
- the identifier for the node; may not be null
|
ModeShape Distribution 3.2.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |