Class AggregateBuilder


  • public class AggregateBuilder
    extends Object
    Implements methods for creating a new AggregateImpl
    • Method Detail

      • getArtifacts

        public ArtifactSetImpl getArtifacts()
        Returns the artifact set of this output.
        Returns:
        the artifact set of this output.
      • addArtifact

        public void addArtifact​(Artifact artifact)
        Adds an artifact to the output
        Parameters:
        artifact - the artifact to add
      • addArtifacts

        public void addArtifacts​(ArtifactSetImpl artifacts)
        Adds an artifact set to the output
        Parameters:
        artifacts - the artifact set
      • getAggregate

        public Aggregate getAggregate()
        Returns the node this output was created for
        Returns:
        the artifacts node
      • getReposName

        public String getReposName()
        Returns the repository name this output was created for
        Returns:
        the repository name.
      • close

        public ImportInfo close()
                         throws javax.jcr.RepositoryException,
                                IOException
        Closes this artifact builder and writes the artifacts back to the repository.
        Returns:
        Infos about the modifications
        Throws:
        javax.jcr.RepositoryException - if an error occurs.
        IOException - if an I/O error occurs.