Class SwarmBrowser
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<P4ChangeEntry>
-
- org.jenkinsci.plugins.p4.browsers.P4Browser
-
- org.jenkinsci.plugins.p4.browsers.SwarmBrowser
-
- All Implemented Interfaces:
ExtensionPoint,Describable<RepositoryBrowser<?>>,Serializable
public class SwarmBrowser extends P4Browser
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwarmBrowser.DescriptorImpl-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SwarmBrowser(String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetChangeSetLink(P4ChangeEntry changeSet)URLgetDiffLink(P4AffectedFile file, P4Ref change)Determines the link to the diff between the version.URLgetFileLink(P4AffectedFile file)Determines the link to a single file under Perforce.URLgetJobLink(String job)Determines the link for associated Perforce jobs.URLgetLabelSetLink(P4ChangeEntry changeSet)-
Methods inherited from class org.jenkinsci.plugins.p4.browsers.P4Browser
getSafeUrl, getUrl, parseRevision
-
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
SwarmBrowser
@DataBoundConstructor public SwarmBrowser(String url)
-
-
Method Detail
-
getChangeSetLink
public URL getChangeSetLink(P4ChangeEntry changeSet) throws IOException
- Specified by:
getChangeSetLinkin classRepositoryBrowser<P4ChangeEntry>- Throws:
IOException
-
getLabelSetLink
public URL getLabelSetLink(P4ChangeEntry changeSet) throws IOException
- Throws:
IOException
-
getDiffLink
public URL getDiffLink(P4AffectedFile file, P4Ref change) throws Exception
Description copied from class:P4BrowserDetermines the link to the diff between the version.- Specified by:
getDiffLinkin classP4Browser- Parameters:
file- Perforce file specchange- changelist number- Returns:
- null if the browser doesn't have any URL for diff.
- Throws:
Exception- push up stack
-
getFileLink
public URL getFileLink(P4AffectedFile file) throws Exception
Description copied from class:P4BrowserDetermines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.- Specified by:
getFileLinkin classP4Browser- Parameters:
file- Perforce file spec- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
Exception- push up stack
-
getJobLink
public URL getJobLink(String job) throws Exception
Description copied from class:P4BrowserDetermines the link for associated Perforce jobs.- Specified by:
getJobLinkin classP4Browser- Parameters:
job- ID- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
Exception- push up stack
-
-