Class OutgoingReferencesExtractor
java.lang.Object
org.ametys.cms.content.references.OutgoingReferencesExtractor
- All Implemented Interfaces:
Component
The outgoing references extractor is a class that analyzes a content to extract the list of outgoing references in the metadata.
Theses references should be stored on the content to allow research or post-processing later (example: consistency analyzer).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,
OutgoingReferences> _getOutgoingReferences
(ModelAwareDataHolder dataHolder, String dataPathPrefix) Analyze a data holder to extract the outgoing referencesgetOutgoingReferences
(Content content) This method analyzes the content to return the list of outgoing references grouped by data path.
-
Field Details
-
ROLE
Avalon role
-
-
Constructor Details
-
OutgoingReferencesExtractor
public OutgoingReferencesExtractor()
-
-
Method Details
-
getOutgoingReferences
This method analyzes the content to return the list of outgoing references grouped by data path.- Parameters:
content
- The content to analyze- Returns:
- A Map where keys are data path and values are outgoing references for this data. Can not be null.
-
_getOutgoingReferences
protected Map<String,OutgoingReferences> _getOutgoingReferences(ModelAwareDataHolder dataHolder, String dataPathPrefix) Analyze a data holder to extract the outgoing references- Parameters:
dataHolder
- the data holder to analyzedataPathPrefix
- the data path of the current data holder- Returns:
- the outgoing references, indexed by data path
-