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
    • Method Detail

      • uuidIsNotPresent

        public static boolean uuidIsNotPresent​(String nodeUuid)
        Tells if the given node UUID is not present in the reposiotry.
        Parameters:
        nodeUuid - The node UUID to test
        Returns:
        true if no node exists in the repository with this UUID. false if a node exists in the repository with this UUID.