public interface ArchivaIndexManager
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_INDEX_PATH | 
| static String | DEFAULT_PACKED_INDEX_PATH | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addArtifactsToIndex(ArchivaIndexingContext context,
                   Collection<URI> artifactReference)Adds a list of artifacts to the index. | 
| ArchivaIndexingContext | createContext(Repository repository)Creates the indexing context for the given repository. | 
| ArchivaIndexingContext | mergeContexts(Repository destinationRepo,
             List<ArchivaIndexingContext> contexts,
             boolean packIndex)Merges a list of contexts into a single one. | 
| ArchivaIndexingContext | move(ArchivaIndexingContext context,
    Repository repo)Moves the context to a new directory. | 
| void | pack(ArchivaIndexingContext context)Compresses the index to a more dense packed format. | 
| void | removeArtifactsFromIndex(ArchivaIndexingContext context,
                        Collection<URI> artifactReference)Removes a list of artifacts from the index. | 
| ArchivaIndexingContext | reset(ArchivaIndexingContext context)Reinitializes the index. | 
| void | scan(ArchivaIndexingContext context)Rescans the whole repository, this index is associated to. | 
| boolean | supportsRepository(RepositoryType type)Returns true, if this manager is able to apply the index actions for the given repository type. | 
| void | update(ArchivaIndexingContext context,
      boolean fullUpdate)Updates the index from the remote url. | 
| void | updateLocalIndexPath(Repository repo)Updates the local path where the index is stored using the repository information. | 
static final String DEFAULT_INDEX_PATH
static final String DEFAULT_PACKED_INDEX_PATH
void pack(ArchivaIndexingContext context) throws IndexUpdateFailedException
context - IndexUpdateFailedExceptionvoid scan(ArchivaIndexingContext context) throws IndexUpdateFailedException
context - IndexUpdateFailedExceptionvoid update(ArchivaIndexingContext context, boolean fullUpdate) throws IndexUpdateFailedException
context - fullUpdate - IndexUpdateFailedExceptionvoid addArtifactsToIndex(ArchivaIndexingContext context, Collection<URI> artifactReference) throws IndexUpdateFailedException
context - artifactReference - IndexUpdateFailedExceptionvoid removeArtifactsFromIndex(ArchivaIndexingContext context, Collection<URI> artifactReference) throws IndexUpdateFailedException
context - artifactReference - IndexUpdateFailedExceptionboolean supportsRepository(RepositoryType type)
type - ArchivaIndexingContext createContext(Repository repository) throws IndexCreationFailedException
repository - the repository for which the index context should be createdIndexCreationFailedExceptionArchivaIndexingContext reset(ArchivaIndexingContext context) throws IndexUpdateFailedException
context - IndexUpdateFailedExceptionArchivaIndexingContext move(ArchivaIndexingContext context, Repository repo) throws IndexCreationFailedException
context - The current contextrepo - The repositoryIndexCreationFailedExceptionvoid updateLocalIndexPath(Repository repo)
ArchivaIndexingContext mergeContexts(Repository destinationRepo, List<ArchivaIndexingContext> contexts, boolean packIndex) throws UnsupportedOperationException, IndexCreationFailedException
destinationRepo - The destination repositorycontexts - The contexts of the indexes that should be merged.packIndex - True, if the merged index should be packed, otherwise false.UnsupportedOperationException - if the underlying implementation does not allow to merge indexing contextsIndexCreationFailedExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.