Interface ArtifactHandler

  • All Superinterfaces:
    Dumpable

    public interface ArtifactHandler
    extends Dumpable
    ArtifactHandlers are used to import artifacts into the jcr repository.
    • Method Detail

      • accept

        ImportInfo accept​(Session session,
                          Aggregate aggregate,
                          ArtifactSet artifacts)
                   throws RepositoryException,
                          java.io.IOException
        Imports an artifact set for the given node.
        Parameters:
        session - the session to use for import
        aggregate - the aggregate
        artifacts - the artifacts to import
        Returns:
        the import info on successful import, null otherwise
        Throws:
        RepositoryException - if an error occurs.
        java.io.IOException - if a I/O error occurs
      • accept

        ImportInfo accept​(Session session,
                          Aggregate parent,
                          java.lang.String name,
                          ArtifactSet artifacts)
                   throws RepositoryException,
                          java.io.IOException
        Imports an artifact set as new child node for the given parent.
        Parameters:
        session - the session to use for import
        parent - the parent aggregate of the new file to import
        name - the name of the new node
        artifacts - the artifacts to import
        Returns:
        the import info on successful import, null otherwise
        Throws:
        RepositoryException - if an error occurs.
        java.io.IOException - if a I/O error occurs