Class OutgoingReferencesExtractor

java.lang.Object
org.ametys.cms.content.references.OutgoingReferencesExtractor
All Implemented Interfaces:
Component

public class OutgoingReferencesExtractor extends Object implements 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 Details

    • ROLE

      public static final String ROLE
      Avalon role
  • Constructor Details

  • 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

      Analyze a data holder to extract the outgoing references
      Parameters:
      dataHolder - the data holder to analyze
      dataPathPrefix - the data path of the current data holder
      Returns:
      the outgoing references, indexed by data path