Class IgnoreMergerHelper
- java.lang.Object
-
- org.ametys.plugins.contentio.archive.IgnoreMergerHelper
-
public final class IgnoreMergerHelper extends Object
ForMergers.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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
uuidIsNotPresent(String nodeUuid)
Tells if the given node UUID is not present in the reposiotry.
-
-
-
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.
-
-