|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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 Repository
groupId
- group Id.
UnknownGroupIdException
- group Id does not exist in
the repo.public GroupList findGroups(java.lang.String pattern)
Repository
findGroups
in interface Repository
pattern
- pattern for search
public ArtifactList findArtifacts(java.lang.String groupId, java.lang.String typeId, java.lang.String filename)
Repository
findArtifacts
in interface Repository
groupId
- 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 Repository
fullClassName
- full qualified class name
public Artifact buildPom(Project project) throws BuildFailureException
Repository
buildPom
in interface Repository
project
- 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 Repository
groupId
- 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 Repository
public java.util.List getGroups()
getGroups
in interface GroupList
public Group getGroup(int idx)
getGroup
in interface GroupList
public int getGroupCount()
getGroupCount
in interface GroupList
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |