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 77002d6c4..823129212 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 @@ -19,39 +19,39 @@ package org.apache.archiva.metadata.repository; * under the License. */ -import java.util.Collection; -import java.util.Date; -import java.util.List; - import org.apache.archiva.metadata.model.ArtifactMetadata; import org.apache.archiva.metadata.model.MetadataFacet; import org.apache.archiva.metadata.model.ProjectMetadata; import org.apache.archiva.metadata.model.ProjectVersionMetadata; import org.apache.archiva.metadata.model.ProjectVersionReference; +import java.util.Collection; +import java.util.Date; +import java.util.List; + public interface MetadataRepository extends MetadataResolver { /** * Update metadata for a particular project in the metadata repository, or create it if it does not already exist. * - * @param repoId the repository the project is in + * @param repositoryId the repository the project is in * @param project the project metadata to create or update */ - void updateProject( String repoId, ProjectMetadata project ); + void updateProject( String repositoryId, ProjectMetadata project ); - void updateArtifact( String repoId, String namespace, String projectId, String projectVersion, + void updateArtifact( String repositoryId, String namespace, String projectId, String projectVersion, ArtifactMetadata artifactMeta ); - void updateProjectVersion( String repoId, String namespace, String projectId, + void updateProjectVersion( String repositoryId, String namespace, String projectId, ProjectVersionMetadata versionMetadata ); - void updateProjectReference( String repoId, String namespace, String projectId, String projectVersion, + void updateProjectReference( String repositoryId, String namespace, String projectId, String projectVersion, ProjectVersionReference reference ); - void updateNamespace( String repoId, String namespace ); + void updateNamespace( String repositoryId, String namespace ); - List getMetadataFacets( String repoId, String facetId ); + List getMetadataFacets( String repositoryId, String facetId ); MetadataFacet getMetadataFacet( String repositoryId, String facetId, String name ); @@ -59,20 +59,20 @@ public interface MetadataRepository void removeMetadataFacets( String repositoryId, String facetId ); - void removeMetadataFacet( String repoId, String facetId, String name ); + void removeMetadataFacet( String repositoryId, String facetId, String name ); - List getArtifactsByDateRange( String repoId, Date startTime, Date endTime ); + List getArtifactsByDateRange( String repositoryId, Date startTime, Date endTime ); // TODO: remove from API, just use configuration Collection getRepositories(); - List getArtifactsByChecksum( String repoId, String checksum ); + List getArtifactsByChecksum( String repositoryId, String checksum ); void deleteArtifact( String repositoryId, String namespace, String project, String version, String id ); /** * Delete a repository's metadata. This includes all associated metadata facets. - * @param repoId the repository to delete + * @param repositoryId the repository to delete */ - void deleteRepository( String repoId ); + void deleteRepository( String repositoryId ); }