public class WebLinks
extends java.lang.Object
Constructor and Description |
---|
WebLinks(com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.PatchSetWebLink> patchSetLinks,
com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.FileWebLink> fileLinks,
com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.DiffWebLink> diffLinks,
com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.ProjectWebLink> projectLinks,
com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.BranchWebLink> branchLinks) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getBranchLinks(java.lang.String project,
java.lang.String branch) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.DiffWebLinkInfo> |
getDiffLinks(java.lang.String project,
int changeId,
java.lang.Integer patchSetIdA,
java.lang.String revisionA,
java.lang.String fileA,
int patchSetIdB,
java.lang.String revisionB,
java.lang.String fileB) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getFileLinks(java.lang.String project,
java.lang.String revision,
java.lang.String file) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getPatchSetLinks(com.google.gerrit.reviewdb.client.Project.NameKey project,
java.lang.String commit) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getProjectLinks(java.lang.String project) |
@Inject public WebLinks(com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.PatchSetWebLink> patchSetLinks, com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.FileWebLink> fileLinks, com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.DiffWebLink> diffLinks, com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.ProjectWebLink> projectLinks, com.google.gerrit.extensions.registration.DynamicSet<com.google.gerrit.extensions.webui.BranchWebLink> branchLinks)
public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getPatchSetLinks(com.google.gerrit.reviewdb.client.Project.NameKey project, java.lang.String commit)
project
- Project name.commit
- SHA1 of commit.public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getFileLinks(java.lang.String project, java.lang.String revision, java.lang.String file)
project
- Project name.revision
- SHA1 of revision.file
- File name.public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.DiffWebLinkInfo> getDiffLinks(java.lang.String project, int changeId, java.lang.Integer patchSetIdA, java.lang.String revisionA, java.lang.String fileA, int patchSetIdB, java.lang.String revisionB, java.lang.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 com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getProjectLinks(java.lang.String project)
project
- Project name.public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getBranchLinks(java.lang.String project, java.lang.String branch)
project
- Project namebranch
- Branch name