From 0bfb850c1b9b4c01980ffe60f4931bb97fd7183b Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 26 Mar 2014 06:02:09 +0000 Subject: some cleanup git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1581702 13f79535-47bb-0310-9956-ffa450edef68 --- .../metadata/repository/MetadataRepository.java | 36 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'archiva-modules/metadata/metadata-repository-api/src') 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 null they are not used for search + * * @param repositoryId - * @param startTime can be null - * @param endTime can be null + * @param startTime can be null + * @param endTime can be null * @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 getNamespaces( String repoId, String namespace ) throws MetadataResolutionException; + /** + * @param repoId + * @param namespace + * @return + * @throws MetadataResolutionException + */ Collection getProjects( String repoId, String namespace ) throws MetadataResolutionException; + /** + * @param repoId + * @param namespace + * @param projectId + * @return + * @throws MetadataResolutionException + */ Collection 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 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 obtainAccess( Class aClass ) + T obtainAccess( Class aClass ) throws MetadataRepositoryException; } -- cgit v1.2.3