|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProjectDao
Provides methods for storing and retreiving project information.
Field Summary | |
---|---|
static java.lang.String |
ROLE
Role used to register component implementations with the container. |
Method Summary | |
---|---|
boolean |
closeConnection()
Closes the repository connection specified within ProjectDao#setRdfRepository or DataAccessObject#init method |
java.util.Set<Project> |
getAllProjects()
Returns all projects. |
Project |
getProjectFor(org.apache.maven.project.MavenProject mavenProject)
Returns a project that matches the information contained within the specified maven project. |
Project |
getProjectFor(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String artifactType,
java.lang.String publicKeyTokenId)
Returns a project that matches the specified parameters. |
void |
init(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
org.apache.maven.artifact.manager.WagonManager wagonManager)
Initializes the data access object |
boolean |
openConnection()
Opens the repository connection specified within ProjectDao#setRdfRepository or DataAccessObject#init method |
void |
removeProjectFor(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String artifactType)
|
void |
setRdfRepository(org.openrdf.repository.Repository repository)
Sets the repository for the data access object. |
java.util.Set<org.apache.maven.artifact.Artifact> |
storeModelAndResolveDependencies(org.apache.maven.model.Model model,
java.io.File pomFileDirectory,
java.io.File localArtifactRepository,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories)
Stores the project object model and resolves and stores the model's dependencies. |
void |
storeProject(Project project,
java.io.File localRepository,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories)
Method not implemented. |
java.util.Set<org.apache.maven.artifact.Artifact> |
storeProjectAndResolveDependencies(Project project,
java.io.File localRepository,
java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories)
Stores the specified project and resolves and stores the project's dependencies. |
Methods inherited from interface org.apache.maven.dotnet.registry.DataAccessObject |
---|
getClassName, getID, init, setRepositoryRegistry |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
void removeProjectFor(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String artifactType) throws java.io.IOException
java.io.IOException
Project getProjectFor(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String artifactType, java.lang.String publicKeyTokenId) throws java.io.IOException
groupId
- the group id of the projectartifactId
- the artifact id of the projectversion
- the version of the projectartifactType
- the type of artifact: library, exe, winexe, netmodulepublicKeyTokenId
- the public key token id. This should match the token id within the manifest of a signed
.NET assesmbly. This value may be null.
java.io.IOException
- if there was a problem retrieving the projectProject getProjectFor(org.apache.maven.project.MavenProject mavenProject) throws java.io.IOException
mavenProject
- the maven project used in finding the returned project
java.io.IOException
- if there was a problem retrieving the projectvoid storeProject(Project project, java.io.File localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories) throws java.io.IOException
project
- localRepository
- artifactRepositories
-
java.io.IOException
java.util.Set<org.apache.maven.artifact.Artifact> storeProjectAndResolveDependencies(Project project, java.io.File localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories) throws java.io.IOException
project
- the project to storelocalRepository
- the local artifact repositoryartifactRepositories
- the remote artifact repositories used in resolving dependencies
java.io.IOException
- if there was a problem in storing or resolving the artifactsjava.util.Set<org.apache.maven.artifact.Artifact> storeModelAndResolveDependencies(org.apache.maven.model.Model model, java.io.File pomFileDirectory, java.io.File localArtifactRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> artifactRepositories) throws java.io.IOException
model
- the project object modelpomFileDirectory
- the directory containing the pom filelocalArtifactRepository
- the local repositoryartifactRepositories
- the remote artifact repositories used in resolving dependencies
java.io.IOException
- if there was a problem in storing or resolving the artifactsvoid init(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, org.apache.maven.artifact.manager.WagonManager wagonManager)
artifactFactory
- the artifact factory used in creating artifactswagonManager
- the manager used for downloading artifactsjava.util.Set<Project> getAllProjects() throws java.io.IOException
java.io.IOException
- if there is a problem retrieving the projectsvoid setRdfRepository(org.openrdf.repository.Repository repository)
repository
- the rdf repositoryboolean openConnection()
boolean closeConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |