Class Mergers.Ignore
- java.lang.Object
-
- org.ametys.plugins.contentio.archive.Mergers.AbstractMerger
-
- org.ametys.plugins.contentio.archive.Mergers.Ignore
-
- All Implemented Interfaces:
Merger
- Enclosing class:
- Mergers
private static class Mergers.Ignore extends Mergers.AbstractMerger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.contentio.archive.Merger
Merger.AfterMerge
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.contentio.archive.Mergers.AbstractMerger
_mergers
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIgnore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetImportUuidBehavior()Gets the UUID Behavior for JCR import
SeeImportUUIDBehaviorandSession.importXML(String, java.io.InputStream, int)voidjcrImportXml(Session session, String parentAbsPath, InputStream in)Does a JCR import from the XML read from the givenInputStream
The save operation must be made by the caller.Merger.AfterMergemerge(String id)Merges the existing object with given idbooleanneedsMerge(String id)Returnstrueif the object with the given id needs to be merged-
Methods inherited from class org.ametys.plugins.contentio.archive.Mergers.AbstractMerger
lateBindDependencies
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.plugins.contentio.archive.Merger
deleteBeforePartialImport
-
-
-
-
Constructor Detail
-
Ignore
private Ignore()
-
-
Method Detail
-
needsMerge
public boolean needsMerge(String id)
Description copied from interface:MergerReturnstrueif the object with the given id needs to be merged- Parameters:
id- The id- Returns:
trueif the object with the given id needs to be merged
-
merge
public Merger.AfterMerge merge(String id)
Description copied from interface:MergerMerges the existing object with given id- Parameters:
id- The id- Returns:
- What the caller must do after this method is finished.
-
getImportUuidBehavior
public int getImportUuidBehavior()
Description copied from interface:MergerGets the UUID Behavior for JCR import
SeeImportUUIDBehaviorandSession.importXML(String, java.io.InputStream, int)- Returns:
- the UUID Behavior
-
jcrImportXml
public void jcrImportXml(Session session, String parentAbsPath, InputStream in) throws RepositoryException, IOException
Description copied from interface:MergerDoes a JCR import from the XML read from the givenInputStream
The save operation must be made by the caller.
TheInputStreammust be closed by the caller.
Default implementation usesSession.importXML(java.lang.String, java.io.InputStream, int)- Parameters:
session- The JCRSessionparentAbsPath- the absolute path of the node below which the deserialized subgraph is added.in- TheInputStreamfrom which the XML to be deserialized is read.- Throws:
RepositoryException- if another error occurs.IOException- if an error during an I/O operation occurs.
-
-