Class IgnoreMergerHelper
java.lang.Object
org.ametys.plugins.contentio.archive.IgnoreMergerHelper
For
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
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
- if exists in the repository => ignore the node import
- if does not exist in the repository => send SAX event
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
uuidIsNotPresent
(String nodeUuid) Tells if the given node UUID is not present in the reposiotry.
-
Method Details
-
uuidIsNotPresent
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.
-