Package org.apache.jackrabbit.core.xml
Class DefaultProtectedItemImporter
- java.lang.Object
-
- org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
-
- All Implemented Interfaces:
ProtectedItemImporter,ProtectedNodeImporter,ProtectedPropertyImporter
- Direct Known Subclasses:
DefaultProtectedNodeImporter,DefaultProtectedPropertyImporter
public class DefaultProtectedItemImporter extends Object implements ProtectedPropertyImporter, ProtectedNodeImporter
DefaultProtectedItemImporter...
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisWorkspaceImportprotected ReferenceChangeTrackerreferenceTrackerprotected NamePathResolverresolverprotected JackrabbitSessionsessionprotected intuuidBehavior
-
Constructor Summary
Constructors Constructor Description DefaultProtectedItemImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(NodeImpl protectedParent)Does nothing.voidend(NodeState protectedParent)Does nothing.voidendChildInfo()Does nothing.booleanhandlePropInfo(NodeImpl parent, PropInfo protectedPropInfo, QPropertyDefinition def)Always returnsfalse.booleanhandlePropInfo(NodeState parent, PropInfo protectedPropInfo, QPropertyDefinition def)Always returnsfalse.booleaninit(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)voidprocessReferences()Always returnsfalse.booleanstart(NodeImpl protectedParent)Always returnsfalse.booleanstart(NodeState protectedParent)Always returnsfalse.voidstartChildInfo(NodeInfo childInfo, List<PropInfo> propInfos)Does nothing.
-
-
-
Field Detail
-
session
protected JackrabbitSession session
-
resolver
protected NamePathResolver resolver
-
isWorkspaceImport
protected boolean isWorkspaceImport
-
uuidBehavior
protected int uuidBehavior
-
referenceTracker
protected ReferenceChangeTracker referenceTracker
-
-
Method Detail
-
init
public boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
-
start
public boolean start(NodeImpl protectedParent) throws RepositoryException
Always returnsfalse.- Specified by:
startin interfaceProtectedNodeImporter- Parameters:
protectedParent- A protected node that has either been created during the current XML import or that has been found to be existing without allowing same-name siblings.- Returns:
trueIf this importer is able to deal with the tree that may be present below the given protected Node.- Throws:
RepositoryException- If an error occurs.- See Also:
ProtectedNodeImporter.start(org.apache.jackrabbit.core.NodeImpl)
-
start
public boolean start(NodeState protectedParent) throws RepositoryException
Always returnsfalse.- Specified by:
startin interfaceProtectedNodeImporter- Parameters:
protectedParent- A protected node that has either been created during the current XML import or that has been found to be existing without allowing same-name siblings.- Returns:
trueIf this importer is able to deal with the tree that may be present below the given protected NodeState.- Throws:
RepositoryException- If an error occurs.- See Also:
ProtectedNodeImporter.start(org.apache.jackrabbit.core.state.NodeState)
-
end
public void end(NodeImpl protectedParent) throws RepositoryException
Does nothing.- Specified by:
endin interfaceProtectedNodeImporter- Throws:
ConstraintViolationException- If the tree that was imported is incomplete.RepositoryException- If another error occurs.- See Also:
ProtectedNodeImporter.end(NodeImpl)
-
end
public void end(NodeState protectedParent) throws RepositoryException
Does nothing.- Specified by:
endin interfaceProtectedNodeImporter- Throws:
ConstraintViolationException- If the tree that was imported is incomplete.RepositoryException- If another error occurs.- See Also:
ProtectedNodeImporter.end(NodeState)
-
startChildInfo
public void startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos) throws RepositoryException
Does nothing.- Specified by:
startChildInfoin interfaceProtectedNodeImporter- Throws:
ConstraintViolationException- If the given infos contain invalid or incomplete data and therefore cannot be properly handled by this importer.RepositoryException- If another error occurs.- See Also:
ProtectedNodeImporter.startChildInfo(NodeInfo, java.util.List)
-
endChildInfo
public void endChildInfo() throws RepositoryExceptionDoes nothing.- Specified by:
endChildInfoin interfaceProtectedNodeImporter- Throws:
ConstraintViolationException- If this method is called before all required child information has been imported.RepositoryException- If another error occurs.- See Also:
ProtectedNodeImporter.endChildInfo()
-
handlePropInfo
public boolean handlePropInfo(NodeImpl parent, PropInfo protectedPropInfo, QPropertyDefinition def) throws RepositoryException
Always returnsfalse.- Specified by:
handlePropInfoin interfaceProtectedPropertyImporter- Parameters:
parent- The affected parent node.protectedPropInfo- ThePropInfoto be imported.def- The property definition determined by the importer that calls this method.- Returns:
trueIf the property could be successfully imported;falseotherwise.- Throws:
RepositoryException- If an error occurs.- See Also:
ProtectedPropertyImporter.handlePropInfo(org.apache.jackrabbit.core.NodeImpl, PropInfo, org.apache.jackrabbit.spi.QPropertyDefinition)
-
handlePropInfo
public boolean handlePropInfo(NodeState parent, PropInfo protectedPropInfo, QPropertyDefinition def) throws RepositoryException
Always returnsfalse.- Specified by:
handlePropInfoin interfaceProtectedPropertyImporter- Parameters:
parent- The affected parent node.protectedPropInfo- ThePropInfoto be imported.def- The property definition determined by the importer that calls this method.- Returns:
trueIf the property could be successfully imported;falseotherwise.- Throws:
RepositoryException- If an error occurs.- See Also:
ProtectedPropertyImporter.handlePropInfo(org.apache.jackrabbit.core.state.NodeState, PropInfo, QPropertyDefinition)
-
processReferences
public void processReferences() throws RepositoryExceptionAlways returnsfalse.- Specified by:
processReferencesin interfaceProtectedItemImporter- Throws:
RepositoryException- If an error occurs.- See Also:
ProtectedItemImporter.processReferences()
-
-