|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataRepository
Method Summary | ||
---|---|---|
void |
addMetadataFacet(String repositoryId,
MetadataFacet metadataFacet)
|
|
boolean |
canObtainAccess(Class<?> aClass)
|
|
void |
close()
|
|
List<ArtifactMetadata> |
getArtifacts(String repositoryId)
|
|
Collection<ArtifactMetadata> |
getArtifacts(String repoId,
String namespace,
String projectId,
String projectVersion)
|
|
List<ArtifactMetadata> |
getArtifactsByChecksum(String repositoryId,
String checksum)
|
|
List<ArtifactMetadata> |
getArtifactsByDateRange(String repositoryId,
Date startTime,
Date endTime)
if startTime or endTime are null they are not used for search |
|
Collection<String> |
getArtifactVersions(String repoId,
String namespace,
String projectId,
String projectVersion)
|
|
MetadataFacet |
getMetadataFacet(String repositoryId,
String facetId,
String name)
|
|
List<String> |
getMetadataFacets(String repositoryId,
String facetId)
|
|
Collection<String> |
getNamespaces(String repoId,
String namespace)
|
|
ProjectMetadata |
getProject(String repoId,
String namespace,
String projectId)
basically just checking it exists not complete data returned |
|
Collection<ProjectVersionReference> |
getProjectReferences(String repoId,
String namespace,
String projectId,
String projectVersion)
Retrieve project references from the metadata repository. |
|
Collection<String> |
getProjects(String repoId,
String namespace)
|
|
ProjectVersionMetadata |
getProjectVersion(String repoId,
String namespace,
String projectId,
String projectVersion)
|
|
Collection<String> |
getProjectVersions(String repoId,
String namespace,
String projectId)
|
|
Collection<String> |
getRepositories()
|
|
Collection<String> |
getRootNamespaces(String repoId)
|
|
boolean |
hasMetadataFacet(String repositoryId,
String facetId)
|
|
|
obtainAccess(Class<T> aClass)
|
|
void |
removeArtifact(ArtifactMetadata artifactMetadata,
String baseVersion)
used for deleting timestamped version of SNAPSHOT artifacts |
|
void |
removeArtifact(String repositoryId,
String namespace,
String project,
String version,
MetadataFacet metadataFacet)
Only remove MetadataFacet for the artifact |
|
void |
removeArtifact(String repositoryId,
String namespace,
String project,
String version,
String id)
|
|
void |
removeMetadataFacet(String repositoryId,
String facetId,
String name)
|
|
void |
removeMetadataFacets(String repositoryId,
String facetId)
|
|
void |
removeNamespace(String repositoryId,
String namespace)
|
|
void |
removeProject(String repositoryId,
String namespace,
String projectId)
remove a project |
|
void |
removeProjectVersion(String repoId,
String namespace,
String projectId,
String projectVersion)
|
|
void |
removeRepository(String repositoryId)
Delete a repository's metadata. |
|
void |
revert()
implementations can throw RuntimeException |
|
void |
save()
implementations can throw RuntimeException |
|
void |
updateArtifact(String repositoryId,
String namespace,
String projectId,
String projectVersion,
ArtifactMetadata artifactMeta)
|
|
void |
updateNamespace(String repositoryId,
String namespace)
create the namespace in the repository. |
|
void |
updateProject(String repositoryId,
ProjectMetadata project)
Update metadata for a particular project in the metadata repository, or create it if it does not already exist. |
|
void |
updateProjectVersion(String repositoryId,
String namespace,
String projectId,
ProjectVersionMetadata versionMetadata)
|
Method Detail |
---|
void updateProject(String repositoryId, ProjectMetadata project) throws MetadataRepositoryException
repositoryId
- the repository the project is inproject
- the project metadata to create or update
MetadataRepositoryException
void updateArtifact(String repositoryId, String namespace, String projectId, String projectVersion, ArtifactMetadata artifactMeta) throws MetadataRepositoryException
MetadataRepositoryException
void updateProjectVersion(String repositoryId, String namespace, String projectId, ProjectVersionMetadata versionMetadata) throws MetadataRepositoryException
MetadataRepositoryException
void updateNamespace(String repositoryId, String namespace) throws MetadataRepositoryException
repositoryId
- namespace
-
MetadataRepositoryException
List<String> getMetadataFacets(String repositoryId, String facetId) throws MetadataRepositoryException
MetadataRepositoryException
boolean hasMetadataFacet(String repositoryId, String facetId) throws MetadataRepositoryException
repositoryId
- facetId
-
MetadataRepositoryException
MetadataFacet getMetadataFacet(String repositoryId, String facetId, String name) throws MetadataRepositoryException
MetadataRepositoryException
void addMetadataFacet(String repositoryId, MetadataFacet metadataFacet) throws MetadataRepositoryException
MetadataRepositoryException
void removeMetadataFacets(String repositoryId, String facetId) throws MetadataRepositoryException
MetadataRepositoryException
void removeMetadataFacet(String repositoryId, String facetId, String name) throws MetadataRepositoryException
MetadataRepositoryException
List<ArtifactMetadata> getArtifactsByDateRange(String repositoryId, Date startTime, Date endTime) throws MetadataRepositoryException
null
they are not used for search
repositoryId
- startTime
- can be null
endTime
- can be null
MetadataRepositoryException
Collection<String> getRepositories() throws MetadataRepositoryException
MetadataRepositoryException
List<ArtifactMetadata> getArtifactsByChecksum(String repositoryId, String checksum) throws MetadataRepositoryException
MetadataRepositoryException
void removeArtifact(String repositoryId, String namespace, String project, String version, String id) throws MetadataRepositoryException
MetadataRepositoryException
void removeArtifact(ArtifactMetadata artifactMetadata, String baseVersion) throws MetadataRepositoryException
artifactMetadata
- the artifactMetadata with the timestamped version (2.0-20120618.214135-2)baseVersion
- the base version of the snapshot (2.0-SNAPSHOT)
MetadataRepositoryException
void removeArtifact(String repositoryId, String namespace, String project, String version, MetadataFacet metadataFacet) throws MetadataRepositoryException
MetadataFacet
for the artifact
repositoryId
- namespace
- project
- version
- metadataFacet
-
MetadataRepositoryException
void removeRepository(String repositoryId) throws MetadataRepositoryException
repositoryId
- the repository to delete
MetadataRepositoryException
void removeNamespace(String repositoryId, String namespace) throws MetadataRepositoryException
repositoryId
- namespace
- (groupId for maven )
MetadataRepositoryException
List<ArtifactMetadata> getArtifacts(String repositoryId) throws MetadataRepositoryException
MetadataRepositoryException
ProjectMetadata getProject(String repoId, String namespace, String projectId) throws MetadataResolutionException
repoId
- namespace
- projectId
-
MetadataResolutionException
ProjectVersionMetadata getProjectVersion(String repoId, String namespace, String projectId, String projectVersion) throws MetadataResolutionException
MetadataResolutionException
Collection<String> getArtifactVersions(String repoId, String namespace, String projectId, String projectVersion) throws MetadataResolutionException
MetadataResolutionException
Collection<ProjectVersionReference> getProjectReferences(String repoId, String namespace, String projectId, String projectVersion) throws MetadataResolutionException
repoId
- the repository ID to look withinnamespace
- the namespace of the project to get references toprojectId
- the identifier of the project to get references toprojectVersion
- the version of the project to get references to
MetadataResolutionException
Collection<String> getRootNamespaces(String repoId) throws MetadataResolutionException
MetadataResolutionException
Collection<String> getNamespaces(String repoId, String namespace) throws MetadataResolutionException
MetadataResolutionException
Collection<String> getProjects(String repoId, String namespace) throws MetadataResolutionException
MetadataResolutionException
Collection<String> getProjectVersions(String repoId, String namespace, String projectId) throws MetadataResolutionException
MetadataResolutionException
void removeProjectVersion(String repoId, String namespace, String projectId, String projectVersion) throws MetadataRepositoryException
repoId
- namespace
- projectId
- projectVersion
-
MetadataResolutionException
MetadataRepositoryException
Collection<ArtifactMetadata> getArtifacts(String repoId, String namespace, String projectId, String projectVersion) throws MetadataResolutionException
MetadataResolutionException
void removeProject(String repositoryId, String namespace, String projectId) throws MetadataRepositoryException
repositoryId
- namespace
- projectId
-
MetadataRepositoryException
void save()
void close() throws MetadataRepositoryException
MetadataRepositoryException
void revert()
boolean canObtainAccess(Class<?> aClass)
<T> T obtainAccess(Class<T> aClass) throws MetadataRepositoryException
MetadataRepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |