org.apache.jackrabbit.core.xml
Class AccessControlImporter

java.lang.Object
  extended by org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
      extended by org.apache.jackrabbit.core.xml.DefaultProtectedNodeImporter
          extended by org.apache.jackrabbit.core.xml.AccessControlImporter
All Implemented Interfaces:
ProtectedItemImporter, ProtectedNodeImporter, ProtectedPropertyImporter

public class AccessControlImporter
extends DefaultProtectedNodeImporter

AccessControlImporter implements a ProtectedNodeImporter that is able to deal with access control content as defined by the default ac related node types present with jackrabbit-core.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
isWorkspaceImport, referenceTracker, resolver, session, uuidBehavior
 
Constructor Summary
AccessControlImporter()
           
 
Method Summary
 void end(NodeImpl protectedParent)
          Does nothing.
 void end(NodeState protectedParent)
          Does nothing.
 void endChildInfo()
          Does nothing.
 boolean init(JackrabbitSession session, NamePathResolver resolver, boolean isWorkspaceImport, int uuidBehavior, ReferenceChangeTracker referenceTracker)
           
 boolean start(NodeImpl protectedParent)
          Always returns false.
 boolean start(NodeState protectedParent)
          Always returns false.
 void startChildInfo(NodeInfo childInfo, List<PropInfo> propInfos)
          Does nothing.
 
Methods inherited from class org.apache.jackrabbit.core.xml.DefaultProtectedItemImporter
handlePropInfo, handlePropInfo, processReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessControlImporter

public AccessControlImporter()
Method Detail

init

public boolean init(JackrabbitSession session,
                    NamePathResolver resolver,
                    boolean isWorkspaceImport,
                    int uuidBehavior,
                    ReferenceChangeTracker referenceTracker)
Specified by:
init in interface ProtectedItemImporter
Overrides:
init in class DefaultProtectedItemImporter
Returns:
See Also:
ProtectedItemImporter.init(org.apache.jackrabbit.api.JackrabbitSession, org.apache.jackrabbit.spi.commons.conversion.NamePathResolver, boolean, int, org.apache.jackrabbit.core.util.ReferenceChangeTracker)

start

public boolean start(NodeImpl protectedParent)
              throws RepositoryException
Description copied from class: DefaultProtectedItemImporter
Always returns false.

Specified by:
start in interface ProtectedNodeImporter
Overrides:
start in class DefaultProtectedItemImporter
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:
true If 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 IllegalStateException,
                     RepositoryException
Description copied from class: DefaultProtectedItemImporter
Always returns false.

Specified by:
start in interface ProtectedNodeImporter
Overrides:
start in class DefaultProtectedItemImporter
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:
true If this importer is able to deal with the tree that may be present below the given protected NodeState.
Throws:
IllegalStateException - If this method is called on this importer without having reached ProtectedNodeImporter.end(NodeState).
RepositoryException - If an error occurs.
See Also:
ProtectedNodeImporter.start(org.apache.jackrabbit.core.state.NodeState)

end

public void end(NodeImpl protectedParent)
         throws RepositoryException
Description copied from class: DefaultProtectedItemImporter
Does nothing.

Specified by:
end in interface ProtectedNodeImporter
Overrides:
end in class DefaultProtectedItemImporter
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 IllegalStateException,
                ConstraintViolationException,
                RepositoryException
Description copied from class: DefaultProtectedItemImporter
Does nothing.

Specified by:
end in interface ProtectedNodeImporter
Overrides:
end in class DefaultProtectedItemImporter
Throws:
IllegalStateException - If end is called in an illegal state.
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
Description copied from class: DefaultProtectedItemImporter
Does nothing.

Specified by:
startChildInfo in interface ProtectedNodeImporter
Overrides:
startChildInfo in class DefaultProtectedItemImporter
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 RepositoryException
Description copied from class: DefaultProtectedItemImporter
Does nothing.

Specified by:
endChildInfo in interface ProtectedNodeImporter
Overrides:
endChildInfo in class DefaultProtectedItemImporter
Throws:
ConstraintViolationException - If this method is called before all required child information has been imported.
RepositoryException - If another error occurs.
See Also:
ProtectedNodeImporter.endChildInfo()


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