Class IgnoreMergerHelper


  • public final class IgnoreMergerHelper
    extends Object
    For Mergers.IGNORE, we need to use session.getImportContentHandler and filter the SAX events from the XML input stream
    For all <sv:property sv:name="jcr:uuid" sv:type="String"> and get their <sv:value>, query the repository to check if it already exists and if it should be ignored
    And for each sax event of sv:node
    1. if exists in the repository => ignore the node import
    2. if does not exist in the repository => send SAX event