Interface DiffWebLink
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.webui.WebLink
WebLink.Target
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DiffWebLinkInfo
getDiffLink(String projectName, int changeId, Integer patchSetIdA, String revisionA, String fileNameA, int patchSetIdB, String revisionB, String fileNameB)
DiffWebLinkInfo
describing a link from a file diff to an external service.
-
-
-
Method Detail
-
getDiffLink
DiffWebLinkInfo getDiffLink(String projectName, int changeId, Integer patchSetIdA, String revisionA, String fileNameA, int patchSetIdB, String revisionB, String fileNameB)
DiffWebLinkInfo
describing a link from a file diff to an external service.In order for the web link to be visible
WebLinkInfo.url
andWebLinkInfo.name
must be set.- Parameters:
projectName
- Name of the projectchangeId
- ID of the changepatchSetIdA
- Patch set ID of side A,null
if no base patch set was selectedrevisionA
- Name of the revision of side A (e.g. branch or commit ID)fileNameA
- Name of the file of side ApatchSetIdB
- Patch set ID of side BrevisionB
- Name of the revision of side B (e.g. branch or commit ID)fileNameB
- Name of the file of side B- Returns:
- WebLinkInfo that links to file diff in external service, null if there should be no link.
-
-