Interface Importer

  • All Known Implementing Classes:
    SessionImporter, WorkspaceImporter

    public interface Importer
    Content importer. The XML import handlers use this interface to submit the parsed content to the repository. The implementation of this class decides how the content is actually persisted; either through the transient space of a session, or directly into the workspace.
    • Method Detail

      • startNode

        void startNode​(NodeInfo nodeInfo,
                       List<PropInfo> propInfos)
                throws RepositoryException
        Called to start the import of a node. Information about the imported node and all it's properties are passed as arguments. Possible child nodes are imported recursively using this same method until a endNode(NodeInfo) call is made with the same node information.
        Parameters:
        nodeInfo - information about the node being imported
        propInfos - information about the properties being imported (list of PropInfo instances)
        Throws:
        RepositoryException - on a repository error
      • endNode

        void endNode​(NodeInfo nodeInfo)
              throws RepositoryException
        Called to end the import of a node. This method is called after a startNode(NodeInfo, List) call with the stame node information and after all the possible child nodes have been imported with respective startNode/endNode calls.

        Just like XML elements, the startNode/endNode calls are guaranteed to be properly nested and complete.

        Parameters:
        nodeInfo - information about the node being imported
        Throws:
        RepositoryException - on a repository error