public class WebLinks extends 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.FileHistoryWebLink> fileLogLinks,
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(String project,
String branch) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.DiffWebLinkInfo> |
getDiffLinks(String project,
int changeId,
Integer patchSetIdA,
String revisionA,
String fileA,
int patchSetIdB,
String revisionB,
String fileB) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getFileHistoryLinks(String project,
String revision,
String file) |
com.google.common.collect.FluentIterable<com.google.gerrit.common.data.WebLinkInfoCommon> |
getFileHistoryLinksCommon(String project,
String revision,
String file) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getFileLinks(String project,
String revision,
String file) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getPatchSetLinks(com.google.gerrit.reviewdb.client.Project.NameKey project,
String commit) |
com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> |
getProjectLinks(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.FileHistoryWebLink> fileLogLinks,
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,
String commit)
project - Project name.commit - SHA1 of commit.public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getFileLinks(String project, String revision, String file)
project - Project name.revision - SHA1 of revision.file - File name.public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getFileHistoryLinks(String project, String revision, String file)
project - Project name.revision - SHA1 of revision.file - File name.public com.google.common.collect.FluentIterable<com.google.gerrit.common.data.WebLinkInfoCommon> getFileHistoryLinksCommon(String project, String revision, String file)
public com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.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 com.google.common.collect.FluentIterable<com.google.gerrit.extensions.common.WebLinkInfo> getProjectLinks(String project)
project - Project name.