com.ibm.portal.content
Interface ContentMetaDataModel
- All Superinterfaces:
- MetaDataModel
-
public interface ContentMetaDataModel
- extends MetaDataModel
A model for accessing aggregated MetaData of content model nodes.
The meta data that may be provided by individual nodes of the content model are
combined according to the hierarchy that the ContentModel
exposes for these nodes. Values set on the node itself take precedence over
values set for its parents.
Example: Page 1 is the parent of page 2, page 2 is the parent of page 3.
Page | Individual meta data | Aggregated meta data |
Page 1 | key1=value1 | key1=value1 |
Page 2 | key2=value2 | key1=value1 key2=value2 |
Page 3 | key2=value3 key3=value4 | key1=value1 key2=value3 key3=value4 |
This scenario is also depicted in the following figure:
The non-aggregated meta data of a content node can be obtained by checking that
the node implements MetaDataProvider and if true by calling the
method MetaDataProvider.getMetaData().
The aggregated meta data can be obtained by calling getMetaData(Object).
- Since:
- 6.0
Method Summary
|
MetaData |
getMetaData(java.lang.Object aNode)
Return the aggregated meta data for the given node. |
getMetaData
MetaData getMetaData(java.lang.Object aNode)
throws ModelException,
ObjectNotFoundException
- Returns the aggregated meta data for the given node.
The node must be part of the content model.
Aggregation is done on the
hierarchy exposed by the content model. See documentation of the interface for
more details.
- Specified by:
- getMetaData in interface MetaDataModel
- Parameters:
- aNode - a content node of the content model to get meta data for.
- Returns:
- a MetaData object for the given node, never null
- Throws:
- ModelException - if an exception in the model code occurs
- ObjectNotFoundException - if the given node is not part of the associated model