summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-repository-api/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-03-26 06:02:09 +0000
committerOlivier Lamy <olamy@apache.org>2014-03-26 06:02:09 +0000
commit0bfb850c1b9b4c01980ffe60f4931bb97fd7183b (patch)
treecb471825abbd0cbd2b2bcf42e31337d8ba01011a /archiva-modules/metadata/metadata-repository-api/src
parent07bae44727657923d378e9d981c6cb419b0059d9 (diff)
downloadarchiva-0bfb850c1b9b4c01980ffe60f4931bb97fd7183b.tar.gz
archiva-0bfb850c1b9b4c01980ffe60f4931bb97fd7183b.zip
some cleanup
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581702 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api/src')
-rw-r--r--archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java36
1 files changed, 30 insertions, 6 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java
index 6a8f93f80..eb7648bdf 100644
--- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java
+++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataRepository.java
@@ -50,6 +50,7 @@ public interface MetadataRepository
/**
* create the namespace in the repository. (if not exist)
+ *
* @param repositoryId
* @param namespace
* @throws MetadataRepositoryException
@@ -61,12 +62,11 @@ public interface MetadataRepository
throws MetadataRepositoryException;
/**
- *
* @param repositoryId
* @param facetId
* @return true if the repository datas for this facetId
- * @since 1.4-M4
* @throws MetadataRepositoryException
+ * @since 1.4-M4
*/
boolean hasMetadataFacet( String repositoryId, String facetId )
throws MetadataRepositoryException;
@@ -85,9 +85,10 @@ public interface MetadataRepository
/**
* if startTime or endTime are <code>null</code> they are not used for search
+ *
* @param repositoryId
- * @param startTime can be <code>null</code>
- * @param endTime can be <code>null</code>
+ * @param startTime can be <code>null</code>
+ * @param endTime can be <code>null</code>
* @return
* @throws MetadataRepositoryException
*/
@@ -118,6 +119,7 @@ public interface MetadataRepository
/**
* FIXME need a unit test!!!
* Only remove {@link MetadataFacet} for the artifact
+ *
* @param repositoryId
* @param namespace
* @param project
@@ -152,6 +154,7 @@ public interface MetadataRepository
/**
* basically just checking it exists not complete data returned
+ *
* @param repoId
* @param namespace
* @param projectId
@@ -186,7 +189,6 @@ public interface MetadataRepository
throws MetadataResolutionException;
/**
- *
* @param repoId
* @param namespace
* @return {@link Collection} of child namespaces of the namespace argument
@@ -195,9 +197,22 @@ public interface MetadataRepository
Collection<String> getNamespaces( String repoId, String namespace )
throws MetadataResolutionException;
+ /**
+ * @param repoId
+ * @param namespace
+ * @return
+ * @throws MetadataResolutionException
+ */
Collection<String> getProjects( String repoId, String namespace )
throws MetadataResolutionException;
+ /**
+ * @param repoId
+ * @param namespace
+ * @param projectId
+ * @return
+ * @throws MetadataResolutionException
+ */
Collection<String> getProjectVersions( String repoId, String namespace, String projectId )
throws MetadataResolutionException;
@@ -212,12 +227,21 @@ public interface MetadataRepository
void removeProjectVersion( String repoId, String namespace, String projectId, String projectVersion )
throws MetadataRepositoryException;
+ /**
+ * @param repoId
+ * @param namespace
+ * @param projectId
+ * @param projectVersion
+ * @return
+ * @throws MetadataResolutionException
+ */
Collection<ArtifactMetadata> getArtifacts( String repoId, String namespace, String projectId,
String projectVersion )
throws MetadataResolutionException;
/**
* remove a project
+ *
* @param repositoryId
* @param namespace
* @param projectId
@@ -244,6 +268,6 @@ public interface MetadataRepository
boolean canObtainAccess( Class<?> aClass );
- <T>T obtainAccess( Class<T> aClass )
+ <T> T obtainAccess( Class<T> aClass )
throws MetadataRepositoryException;
}