Interface Importer


public interface Importer
The Importer interface encapusulates the strategy for importing a node into the Repository.
Author:
David Caruana
  • Method Details

    • getRootRef

      NodeRef getRootRef()
      Returns:
      the root node to import into
    • getRootAssocType

      QName getRootAssocType()
      Returns:
      the root child association type to import under
    • getLocation

      Location getLocation()
      Returns:
      the location to import under
    • start

      void start()
      Signal start of import
    • end

      void end()
      Signal end of import
    • error

      void error(Throwable e)
      Signal import error
    • importMetaData

      void importMetaData(Map<QName,String> properties)
      Import meta-data
    • importNode

      NodeRef importNode(ImportNode node)
      Import a node
      Parameters:
      node - the node description
      Returns:
      the node ref of the imported node
    • resolvePath

      NodeRef resolvePath(String path)
      Resolve path within context of root reference
      Parameters:
      path - the path to resolve
      Returns:
      node reference
    • isExcludedClass

      boolean isExcludedClass(QName className)
      Is excluded Content Model Class?
      Parameters:
      className - the class name to test
      Returns:
      true => the provided class is excluded from import
    • childrenImported

      void childrenImported(NodeRef nodeRef)
      Signal completion of node import
      Parameters:
      nodeRef - the node ref of the imported node