org.apache.jackrabbit.core.xml
Interface ProtectedPropertyImporter

All Known Implementing Classes:
DefaultProtectedPropertyImporter, UserImporter

public interface ProtectedPropertyImporter

ProtectedPropertyImporter is in charge of importing single properties whith a protected QPropertyDefinition.

See Also:
for an abstract class used to import protected nodes and the subtree below them.

Method Summary
 boolean handlePropInfo(NodeImpl parent, PropInfo protectedPropInfo, QPropertyDefinition def)
          Handles a single protected property.
 boolean handlePropInfo(NodeState parent, PropInfo protectedPropInfo, QPropertyDefinition def)
          Handles a single protected property.
 boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
           
 void processReferences()
          Post processing protected reference properties.
 

Method Detail

init

boolean init(JackrabbitSession session,
             NamePathResolver resolver,
             boolean isWorkspaceImport,
             int uuidBehavior,
             ReferenceChangeTracker referenceTracker)
Parameters:
session -
resolver -
isWorkspaceImport -
uuidBehavior -
referenceTracker - @return

handlePropInfo

boolean handlePropInfo(NodeImpl parent,
                       PropInfo protectedPropInfo,
                       QPropertyDefinition def)
                       throws RepositoryException
Handles a single protected property.

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.

handlePropInfo

boolean handlePropInfo(NodeState parent,
                       PropInfo protectedPropInfo,
                       QPropertyDefinition def)
                       throws RepositoryException
Handles a single protected property.

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.

processReferences

void processReferences()
                       throws RepositoryException
Post processing protected reference properties. This method is called from Importer.end().

Throws:
RepositoryException - If an error occurs.


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