|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocalRepositoryManager
Manages access to the local repository.
Method Summary | |
---|---|
void |
add(RepositorySystemSession session,
LocalArtifactRegistration request)
Registers an installed or resolved artifact with the local repository. |
LocalArtifactResult |
find(RepositorySystemSession session,
LocalArtifactRequest request)
Queries for the existence of an artifact in the local repository. |
java.lang.String |
getPathForLocalArtifact(Artifact artifact)
Gets the relative path for a locally built artifact. |
java.lang.String |
getPathForLocalMetadata(Metadata metadata)
Gets the relative path for locally built metadata. |
java.lang.String |
getPathForRemoteArtifact(Artifact artifact,
RemoteRepository repository,
java.lang.String context)
Gets the relative path for an artifact cached from a remote repository. |
java.lang.String |
getPathForRemoteMetadata(Metadata metadata,
RemoteRepository repository,
java.lang.String context)
Gets the relative path for metadata cached from a remote repository. |
LocalRepository |
getRepository()
Gets the description of the local repository being managed. |
Method Detail |
---|
LocalRepository getRepository()
null
.java.lang.String getPathForLocalArtifact(Artifact artifact)
artifact
- The artifact for which to determine the path, must not be null
.
java.lang.String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, java.lang.String context)
artifact
- The artifact for which to determine the path, must not be null
.repository
- The source repository of the artifact, must not be null
.context
- The resolution context in which the artifact is being requested, may be null
.
java.lang.String getPathForLocalMetadata(Metadata metadata)
metadata
- The metadata for which to determine the path, must not be null
.
java.lang.String getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, java.lang.String context)
metadata
- The metadata for which to determine the path, must not be null
.repository
- The source repository of the metadata, must not be null
.context
- The resolution context in which the metadata is being requested, may be null
.
LocalArtifactResult find(RepositorySystemSession session, LocalArtifactRequest request)
session
- The repository system session during which the request is made, must not be null
.request
- The artifact request, must not be null
.
null
.void add(RepositorySystemSession session, LocalArtifactRegistration request)
session
- The repository system session during which the registration is made, must not be null
.request
- The registration request, must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |