Class P4WebBrowser
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<P4ChangeEntry>
-
- org.jenkinsci.plugins.p4.browsers.P4Browser
-
- org.jenkinsci.plugins.p4.browsers.P4WebBrowser
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class P4WebBrowser extends P4Browser
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
P4WebBrowser.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
p4ChangeEnd
static String
p4DiffEnd
static String
p4FileEnd
static String
p4JobEnd
static String
p4LabelEnd
-
Constructor Summary
Constructors Constructor Description P4WebBrowser(String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(P4ChangeEntry changeSet)
URL
getDiffLink(P4AffectedFile file, P4Ref change)
Determines the link to the diff between the version.URL
getFileLink(P4AffectedFile file)
Determines the link to a single file under Perforce.URL
getJobLink(String job)
Determines the link for associated Perforce jobs.URL
getLabelSetLink(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
-
-
-
-
Field Detail
-
p4FileEnd
public static final String p4FileEnd
- See Also:
- Constant Field Values
-
p4DiffEnd
public static final String p4DiffEnd
- See Also:
- Constant Field Values
-
p4ChangeEnd
public static final String p4ChangeEnd
- See Also:
- Constant Field Values
-
p4JobEnd
public static final String p4JobEnd
- See Also:
- Constant Field Values
-
p4LabelEnd
public static final String p4LabelEnd
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
P4WebBrowser
@DataBoundConstructor public P4WebBrowser(String url)
-
-
Method Detail
-
getChangeSetLink
public URL getChangeSetLink(P4ChangeEntry changeSet) throws IOException
- Specified by:
getChangeSetLink
in 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:P4Browser
Determines the link to the diff between the version.- Specified by:
getDiffLink
in 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:P4Browser
Determines the link to a single file under Perforce. This page should display all the past revisions of this file, etc.- Specified by:
getFileLink
in 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:P4Browser
Determines the link for associated Perforce jobs.- Specified by:
getJobLink
in classP4Browser
- Parameters:
job
- ID- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
Exception
- push up stack
-
-