archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/base/ArchivaRepositoryRegistry.java
/**
     * Resets the indexing context of a given repository.
     *
     * @param repository The repository
     * @throws IndexUpdateFailedException If the index could not be resetted.
     */
Resets the indexing context of a given repository.
@param repository The repository
@throws IndexUpdateFailedException If the index could not be resetted.
Resets the indexing context of a given repository . @param repository The repository @throws IndexUpdateFailedException If the index could not be resetted .
@Override
    public void resetIndexingContext( Repository repository ) throws IndexUpdateFailedException {
        if (repository.hasIndex() && repository instanceof EditableRepository) {
            EditableRepository eRepo = (EditableRepository) repository;
            ArchivaIndexingContext newCtx = getIndexManager(repository.getType()).reset(repository.getIndexingContext());
            eRepo.setIndexingContext(newCtx);
        }
    }
@ Override public void resetIndexingContext ( Repository repository ) throws IndexUpdateFailedException { if ( repository . hasIndex ( ) && repository instanceof EditableRepository ) { EditableRepository eRepo = ( EditableRepository ) repository ; ArchivaIndexingContext newCtx = getIndexManager ( repository . getType ( ) ) . reset ( repository . getIndexingContext ( ) ) ; eRepo . setIndexingContext ( newCtx ) ; } }
Resets the indexing context of a given repository.
Resets the indexing context of a given repository .