org.jboss.dna.graph.util
Interface GraphImporter.ImportSpecification

Enclosing class:
GraphImporter

public static interface GraphImporter.ImportSpecification


Method Summary
 void into(String sourceName)
          Specify the location where the content is to be imported, and then perform the import.
 void into(String sourceName, Path pathInSource)
          Specify the location where the content is to be imported, and then perform the import.
 

Method Detail

into

void into(String sourceName)
          throws IOException,
                 RepositorySourceException
Specify the location where the content is to be imported, and then perform the import. This is equivalent to calling into(sourceName,rootPath).

Parameters:
sourceName - the name of the source into which the content is to be imported
Throws:
IllegalArgumentException - if the uri or path are null
IOException - if there is a problem reading the content
RepositorySourceException - if there is a problem while writing the content to the repository source

into

void into(String sourceName,
          Path pathInSource)
          throws IOException,
                 RepositorySourceException
Specify the location where the content is to be imported, and then perform the import.

Parameters:
sourceName - the name of the source into which the content is to be imported
pathInSource - the path in the repository source named sourceName where the content is to be written; may not be null
Throws:
IllegalArgumentException - if the uri or path are null
IOException - if there is a problem reading the content
RepositorySourceException - if there is a problem while writing the content to the repository source


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.