Class P4Browser
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<P4ChangeEntry>
-
- org.jenkinsci.plugins.p4.browsers.P4Browser
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
- Direct Known Subclasses:
FishEyeBrowser
,OpenGrokBrowser
,P4WebBrowser
,SwarmBrowser
public abstract class P4Browser extends RepositoryBrowser<P4ChangeEntry>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract URL
getDiffLink(P4AffectedFile file, P4Ref change)
Determines the link to the diff between the version.abstract URL
getFileLink(P4AffectedFile file)
Determines the link to a single file under Perforce.abstract URL
getJobLink(String job)
Determines the link for associated Perforce jobs.URL
getSafeUrl()
String
getUrl()
protected int
parseRevision(P4AffectedFile file)
-
Methods inherited from class hudson.scm.RepositoryBrowser
all, getChangeSetLink, normalizeToEndWithSlash, trimHeadSlash
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
P4Browser
public P4Browser(String url)
-
-
Method Detail
-
getUrl
public final String getUrl()
-
getSafeUrl
public URL getSafeUrl()
-
getDiffLink
public abstract URL getDiffLink(P4AffectedFile file, P4Ref change) throws Exception
Determines the link to the diff between the version.- 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 abstract URL getFileLink(P4AffectedFile file) throws Exception
Determines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.- Parameters:
file
- Perforce file spec- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
Exception
- push up stack
-
getJobLink
public abstract URL getJobLink(String job) throws Exception
Determines the link for associated Perforce jobs.- Parameters:
job
- ID- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
Exception
- push up stack
-
parseRevision
protected int parseRevision(P4AffectedFile file)
-
-