|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.repoweb.model.FailSafeRepository
Mock an empty repository .
| Constructor Summary | |
(package private) |
FailSafeRepository()
|
| Method Summary | |
Artifact |
buildPom(Project project)
Build a new POM in the repository. |
ArtifactList |
findArtifactByClass(java.lang.String fullClassName)
Search Artifacts that contains a class. |
ArtifactList |
findArtifacts(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Search for Artifacts. |
GroupList |
findGroups(java.lang.String pattern)
Search groups that have a groupId that match pattern. |
GroupList |
getAllGroups()
Get alll groups of this repository. |
Artifact |
getArtifact(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Get one Artifact. |
Group |
getGroup(int idx)
|
Group |
getGroup(java.lang.String groupId)
Get a group from this repository. |
int |
getGroupCount()
|
java.util.List |
getGroups()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
FailSafeRepository()
| Method Detail |
public Group getGroup(java.lang.String groupId)
throws UnknownGroupIdException
Repository
getGroup in interface RepositorygroupId - group Id.
UnknownGroupIdException - group Id does not exist in
the repo.public GroupList findGroups(java.lang.String pattern)
Repository
findGroups in interface Repositorypattern - pattern for search
public ArtifactList findArtifacts(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
Repository
findArtifacts in interface RepositorygroupId - Group Id of the artifact (e.g. 'junit')typeId - Artifact type (e.g. 'jar')filename - Artifact file name (e.g. 'junit-3.8.1.jar')
public ArtifactList findArtifactByClass(java.lang.String fullClassName)
Repository
findArtifactByClass in interface RepositoryfullClassName - full qualified class name
public Artifact buildPom(Project project)
throws BuildFailureException
Repository
buildPom in interface Repositoryproject - the bean of the POM.
BuildFailureException - Failed to build the POM.
public Artifact getArtifact(java.lang.String groupId,
java.lang.String typeId,
java.lang.String filename)
throws UnknownArtifactException
Repository
getArtifact in interface RepositorygroupId - Group Id of the artifact (e.g. 'junit')typeId - Artifact type (e.g. 'jar')filename - Artifact file name (e.g. 'junit-3.8.1.jar')
UnknownArtifactException - artifact do not exist in
the repo.public GroupList getAllGroups()
Repository
getAllGroups in interface Repositorypublic java.util.List getGroups()
getGroups in interface GroupListpublic Group getGroup(int idx)
getGroup in interface GroupListpublic int getGroupCount()
getGroupCount in interface GroupList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||