org.apache.jackrabbit.core.xml
Class DefaultProtectedPropertyImporter

java.lang.Object
  extended by org.apache.jackrabbit.core.xml.DefaultProtectedPropertyImporter
All Implemented Interfaces:
ProtectedPropertyImporter
Direct Known Subclasses:
UserImporter

public class DefaultProtectedPropertyImporter
extends Object
implements ProtectedPropertyImporter

Default implementation that isn't able to handle any protected properties.


Field Summary
protected  boolean isWorkspaceImport
           
protected  ReferenceChangeTracker referenceTracker
           
protected  NamePathResolver resolver
           
protected  JackrabbitSession session
           
protected  int uuidBehavior
           
 
Constructor Summary
DefaultProtectedPropertyImporter()
           
 
Method Summary
 boolean handlePropInfo(NodeImpl parent, PropInfo protectedPropInfo, QPropertyDefinition def)
          Always returns false.
 boolean handlePropInfo(NodeState parent, PropInfo protectedPropInfo, QPropertyDefinition def)
          Always returns false.
 boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
           
 void processReferences()
          Always returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected JackrabbitSession session

resolver

protected NamePathResolver resolver

isWorkspaceImport

protected boolean isWorkspaceImport

uuidBehavior

protected int uuidBehavior

referenceTracker

protected ReferenceChangeTracker referenceTracker
Constructor Detail

DefaultProtectedPropertyImporter

public DefaultProtectedPropertyImporter()
Method Detail

init

public boolean init(JackrabbitSession session,
                    NamePathResolver resolver,
                    boolean isWorkspaceImport,
                    int uuidBehavior,
                    ReferenceChangeTracker referenceTracker)
Specified by:
init in interface ProtectedPropertyImporter
referenceTracker - @return

handlePropInfo

public boolean handlePropInfo(NodeImpl parent,
                              PropInfo protectedPropInfo,
                              QPropertyDefinition def)
                       throws RepositoryException
Always returns false.

Specified by:
handlePropInfo in interface ProtectedPropertyImporter
Parameters:
parent - The affected parent node.
protectedPropInfo - The PropInfo to be imported.
def - The property definition determined by the importer that calls this method.
Returns:
true If the property could be successfully imported; false otherwise.
Throws:
RepositoryException - If an error occurs.
See Also:
ProtectedPropertyImporter.handlePropInfo(org.apache.jackrabbit.core.NodeImpl, PropInfo, QPropertyDefinition)

handlePropInfo

public boolean handlePropInfo(NodeState parent,
                              PropInfo protectedPropInfo,
                              QPropertyDefinition def)
                       throws RepositoryException
Always returns false.

Specified by:
handlePropInfo in interface ProtectedPropertyImporter
Parameters:
parent - The affected parent node.
protectedPropInfo - The PropInfo to be imported.
def - The property definition determined by the importer that calls this method.
Returns:
true If the property could be successfully imported; false otherwise.
Throws:
RepositoryException - If an error occurs.
See Also:
ProtectedPropertyImporter.handlePropInfo(org.apache.jackrabbit.core.state.NodeState, PropInfo, QPropertyDefinition)

processReferences

public void processReferences()
                       throws RepositoryException
Always returns false.

Specified by:
processReferences in interface ProtectedPropertyImporter
Throws:
RepositoryException - If an error occurs.
See Also:
ProtectedPropertyImporter.processReferences()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.