public class WebLinks extends Object
Constructor and Description |
---|
WebLinks(DynamicSet<PatchSetWebLink> patchSetLinks,
DynamicSet<ParentWebLink> parentLinks,
DynamicSet<FileWebLink> fileLinks,
DynamicSet<FileHistoryWebLink> fileLogLinks,
DynamicSet<DiffWebLink> diffLinks,
DynamicSet<ProjectWebLink> projectLinks,
DynamicSet<BranchWebLink> branchLinks,
DynamicSet<TagWebLink> tagLinks) |
Modifier and Type | Method and Description |
---|---|
List<WebLinkInfo> |
getBranchLinks(String project,
String branch) |
List<DiffWebLinkInfo> |
getDiffLinks(String project,
int changeId,
Integer patchSetIdA,
String revisionA,
String fileA,
int patchSetIdB,
String revisionB,
String fileB) |
List<WebLinkInfoCommon> |
getFileHistoryLinks(String project,
String revision,
String file) |
List<WebLinkInfo> |
getFileLinks(String project,
String revision,
String file) |
List<WebLinkInfo> |
getParentLinks(Project.NameKey project,
String revision) |
List<WebLinkInfo> |
getPatchSetLinks(Project.NameKey project,
String commit) |
List<WebLinkInfo> |
getProjectLinks(String project) |
List<WebLinkInfo> |
getTagLinks(String project,
String tag) |
@Inject public WebLinks(DynamicSet<PatchSetWebLink> patchSetLinks, DynamicSet<ParentWebLink> parentLinks, DynamicSet<FileWebLink> fileLinks, DynamicSet<FileHistoryWebLink> fileLogLinks, DynamicSet<DiffWebLink> diffLinks, DynamicSet<ProjectWebLink> projectLinks, DynamicSet<BranchWebLink> branchLinks, DynamicSet<TagWebLink> tagLinks)
public List<WebLinkInfo> getPatchSetLinks(Project.NameKey project, String commit)
project
- Project name.commit
- SHA1 of commit.public List<WebLinkInfo> getParentLinks(Project.NameKey project, String revision)
project
- Project name.revision
- SHA1 of the parent revision.public List<WebLinkInfo> getFileLinks(String project, String revision, String file)
project
- Project name.revision
- SHA1 of revision.file
- File name.public List<WebLinkInfoCommon> getFileHistoryLinks(String project, String revision, String file)
project
- Project name.revision
- SHA1 of revision.file
- File name.public List<DiffWebLinkInfo> getDiffLinks(String project, int changeId, Integer patchSetIdA, String revisionA, String fileA, int patchSetIdB, String revisionB, String fileB)
project
- Project name.patchSetIdA
- Patch set ID of side A, null
if no base patch set was selected.revisionA
- SHA1 of revision of side A.fileA
- File name of side A.patchSetIdB
- Patch set ID of side B.revisionB
- SHA1 of revision of side B.fileB
- File name of side B.public List<WebLinkInfo> getProjectLinks(String project)
project
- Project name.public List<WebLinkInfo> getBranchLinks(String project, String branch)
project
- Project namebranch
- Branch namepublic List<WebLinkInfo> getTagLinks(String project, String tag)
project
- Project nametag
- Tag name