diff options
author | Olivier Lamy <olamy@apache.org> | 2012-06-05 21:42:02 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-06-05 21:42:02 +0000 |
commit | ea5ddd09615bd26400024da1b8de70b592391c58 (patch) | |
tree | 4ce87e7ced70243007271425de5964152d8a1e0c /archiva-modules/archiva-scheduler | |
parent | 25e650b0b4dc368ff6492711e24df6e5edc9b07c (diff) | |
download | archiva-ea5ddd09615bd26400024da1b8de70b592391c58.tar.gz archiva-ea5ddd09615bd26400024da1b8de70b592391c58.zip |
improve MetadataRepository api to be able to remove an artifact with MetadataFacet use case deleting a maven artifact with a classifier
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1346609 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-scheduler')
-rw-r--r-- | archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java index 063fa4b4b..37290708a 100644 --- a/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java +++ b/archiva-modules/archiva-scheduler/archiva-scheduler-indexing/src/test/java/org/apache/archiva/scheduler/indexing/mock/MockRepositorySessionFactory.java @@ -63,30 +63,38 @@ public class MockRepositorySessionFactory { return new MetadataRepository() { + + public void removeArtifact( String repositoryId, String namespace, String project, + String projectVersion, String projectId, MetadataFacet metadataFacet ) + throws MetadataRepositoryException + { + + } + public void updateProject( String repositoryId, ProjectMetadata project ) throws MetadataRepositoryException { - //To change body of implemented methods use File | Settings | File Templates. + } public void updateArtifact( String repositoryId, String namespace, String projectId, String projectVersion, ArtifactMetadata artifactMeta ) throws MetadataRepositoryException { - //To change body of implemented methods use File | Settings | File Templates. + } public void updateProjectVersion( String repositoryId, String namespace, String projectId, ProjectVersionMetadata versionMetadata ) throws MetadataRepositoryException { - //To change body of implemented methods use File | Settings | File Templates. + } public void updateNamespace( String repositoryId, String namespace ) throws MetadataRepositoryException { - //To change body of implemented methods use File | Settings | File Templates. + } public List<String> getMetadataFacets( String repositoryId, String facetId ) @@ -104,7 +112,7 @@ public class MockRepositorySessionFactory public void addMetadataFacet( String repositoryId, MetadataFacet metadataFacet ) throws MetadataRepositoryException { - //To change body of implemented methods use File | Settings | File Templates. + } public void removeMetadataFacets( String repositoryId, String facetId ) |