Package hudson.plugins.collabnet.browser
Class TeamForge
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
-
- hudson.scm.SubversionRepositoryBrowser
-
- hudson.plugins.collabnet.browser.TeamForge
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class TeamForge extends SubversionRepositoryBrowser
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TeamForge.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static TeamForge.DescriptorImpl
DESCRIPTOR
-
Constructor Summary
Constructors Constructor Description TeamForge(ConnectionFactory connectionFactory, String project, String repo)
DataBoundConstructor for building the object from form data.TeamForge(String project, String repo, boolean overrideAuth)
TeamForge(String collabneturl, String username, String password, String project, String repo, boolean overrideAuth)
Simple constructors for rebuilding the object from config data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet)
String
getCollabNetUrl()
ConnectionFactory
getConnectionFactory()
TeamForge.DescriptorImpl
getDescriptor()
URL
getDiffLink(SubversionChangeLogSet.Path path)
URL
getFileLink(SubversionChangeLogSet.Path path)
String
getPassword()
String
getProject()
Get the name of the projectString
getRepo()
Get the name of the repository.static TeamForgeShare.TeamForgeShareDescriptor
getTeamForgeShareDescriptor()
String
getUsername()
boolean
overrideAuth()
-
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final TeamForge.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
TeamForge
@DataBoundConstructor public TeamForge(ConnectionFactory connectionFactory, String project, String repo)
DataBoundConstructor for building the object from form data.
-
TeamForge
public TeamForge(String collabneturl, String username, String password, String project, String repo, boolean overrideAuth)
Simple constructors for rebuilding the object from config data.
-
-
Method Detail
-
getDescriptor
public TeamForge.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<RepositoryBrowser<?>>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<RepositoryBrowser<?>>
-
overrideAuth
public boolean overrideAuth()
- Returns:
- whether or not auth is overriden
-
getCollabNetUrl
public String getCollabNetUrl()
- Returns:
- the collabneturl for the CollabNet server.
-
getUsername
public String getUsername()
- Returns:
- the username used for logging in.
-
getPassword
public String getPassword()
- Returns:
- the password used for logging in.
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
-
getProject
public String getProject()
Get the name of the project- Returns:
- project name
-
getRepo
public String getRepo()
Get the name of the repository.- Returns:
- repository name
-
getTeamForgeShareDescriptor
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
- Returns:
- the TeamForge share descriptor.
-
getFileLink
public URL getFileLink(SubversionChangeLogSet.Path path) throws IOException
- Specified by:
getFileLink
in classSubversionRepositoryBrowser
- Throws:
IOException
-
getDiffLink
public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException
- Specified by:
getDiffLink
in classSubversionRepositoryBrowser
- Throws:
IOException
-
getChangeSetLink
public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException
- Specified by:
getChangeSetLink
in classRepositoryBrowser<SubversionChangeLogSet.LogEntry>
- Throws:
IOException
-
-