Class AggregateBuilder
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.impl.AggregateBuilder
-
public class AggregateBuilder extends Object
Implements methods for creating a newAggregateImpl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArtifact(Artifact artifact)
Adds an artifact to the outputvoid
addArtifacts(ArtifactSetImpl artifacts)
Adds an artifact set to the outputImportInfo
close()
Closes this artifact builder and writes the artifacts back to the repository.Aggregate
getAggregate()
Returns the node this output was created forArtifactSetImpl
getArtifacts()
Returns the artifact set of this output.String
getReposName()
Returns the repository name this output was created for
-
-
-
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 RepositoryException, IOException
Closes this artifact builder and writes the artifacts back to the repository.- Returns:
- Infos about the modifications
- Throws:
RepositoryException
- if an error occurs.IOException
- if an I/O error occurs.
-
-