Class JazzScmProviderRepository
- java.lang.Object
-
- org.apache.maven.scm.provider.ScmProviderRepository
-
- org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
-
- org.apache.maven.scm.provider.jazz.repository.JazzScmProviderRepository
-
public class JazzScmProviderRepository extends ScmProviderRepositoryWithHost
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
fBaseline
The name of the baseline, as returned from the "scm status" command.private java.lang.String
fComponent
The name of the component, as returned from the "scm status" command.private java.lang.String
fFlowTarget
The name of the flow target, as returned from the "scm status" command.private int
fFlowTargetAlias
The alias of the flow target, as returned from the "scm status" command.private java.util.List<java.lang.Integer>
fIncomingChangeSetAliases
The incoming aliases of the change sets, as returned from the "scm status" command.private java.util.List<java.lang.Integer>
fOutgoingChangeSetAliases
The outgoing aliases of the change sets, as returned from the "scm status" command.private java.lang.String
fRepositoryURI
The URI of the repository server.private java.lang.String
fRepositoryWorkspace
The name of the remote repository workspace (as set from the URL).private java.lang.String
fWorkspace
The name of the repository workspace, as returned from the "scm status" command.private int
fWorkspaceAlias
The alias of the repository workspace, as returned from the "scm status" command.
-
Constructor Summary
Constructors Constructor Description JazzScmProviderRepository(java.lang.String repositoryURI, java.lang.String userName, java.lang.String password, java.lang.String hostName, int port, java.lang.String repositoryWorkspace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getBaseline()
java.lang.String
getComponent()
java.lang.String
getFlowTarget()
int
getFlowTargetAlias()
java.util.List<java.lang.Integer>
getIncomingChangeSetAliases()
java.util.List<java.lang.Integer>
getOutgoingChangeSetAliases()
java.lang.String
getRepositoryURI()
Return the URI of the repository server, as parsed from the URL.java.lang.String
getRepositoryWorkspace()
Return the name of the remote repository workspace, as parsed from the URL.java.lang.String
getWorkspace()
int
getWorkspaceAlias()
boolean
isHaveFlowTargets()
Returntrue
if we have a valid flow target.boolean
isPushChangesAndHaveFlowTargets()
Returntrue
if we have a valid flow target and pushChanges istrue
.void
setBaseline(java.lang.String baseline)
void
setComponent(java.lang.String component)
void
setFlowTarget(java.lang.String flowTarget)
void
setFlowTargetAlias(int flowTargetAlias)
void
setIncomingChangeSetAliases(java.util.List<java.lang.Integer> incomingChangeSetAliases)
void
setOutgoingChangeSetAliases(java.util.List<java.lang.Integer> outgoingChangeSetAliases)
void
setWorkspace(java.lang.String fWorkspace)
void
setWorkspaceAlias(int workspaceAlias)
java.lang.String
toString()
-
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
getHost, getPassphrase, getPort, getPrivateKey, setHost, setPassphrase, setPort, setPrivateKey
-
Methods inherited from class org.apache.maven.scm.provider.ScmProviderRepository
getParent, getPassword, getRelativePath, getUser, getWorkItem, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser, setWorkItem
-
-
-
-
Field Detail
-
fRepositoryURI
private java.lang.String fRepositoryURI
The URI of the repository server. Of the form:// : / For example: https://rtc:9444/jazz
-
fRepositoryWorkspace
private java.lang.String fRepositoryWorkspace
The name of the remote repository workspace (as set from the URL).
-
fWorkspaceAlias
private int fWorkspaceAlias
The alias of the repository workspace, as returned from the "scm status" command.
-
fWorkspace
private java.lang.String fWorkspace
The name of the repository workspace, as returned from the "scm status" command.
-
fFlowTargetAlias
private int fFlowTargetAlias
The alias of the flow target, as returned from the "scm status" command.
-
fFlowTarget
private java.lang.String fFlowTarget
The name of the flow target, as returned from the "scm status" command.
-
fComponent
private java.lang.String fComponent
The name of the component, as returned from the "scm status" command.
-
fBaseline
private java.lang.String fBaseline
The name of the baseline, as returned from the "scm status" command.
-
fOutgoingChangeSetAliases
private java.util.List<java.lang.Integer> fOutgoingChangeSetAliases
The outgoing aliases of the change sets, as returned from the "scm status" command.
-
fIncomingChangeSetAliases
private java.util.List<java.lang.Integer> fIncomingChangeSetAliases
The incoming aliases of the change sets, as returned from the "scm status" command.
-
-
Method Detail
-
isPushChangesAndHaveFlowTargets
public boolean isPushChangesAndHaveFlowTargets()
Returntrue
if we have a valid flow target and pushChanges istrue
.
-
isHaveFlowTargets
public boolean isHaveFlowTargets()
Returntrue
if we have a valid flow target. A valid flow target is a destination other than ourselves. To determine this, we need to parse the output of the 'scm status' command.
-
getRepositoryURI
public java.lang.String getRepositoryURI()
Return the URI of the repository server, as parsed from the URL.- Returns:
- The URI of the repository server, as parsed from the URL.
-
getRepositoryWorkspace
public java.lang.String getRepositoryWorkspace()
Return the name of the remote repository workspace, as parsed from the URL.- Returns:
- The name of the remote repository workspace, as parsed from the URL.
-
getWorkspaceAlias
public int getWorkspaceAlias()
- Returns:
- The alias of the repository workspace, as returned from the "scm status" command.
-
setWorkspaceAlias
public void setWorkspaceAlias(int workspaceAlias)
- Parameters:
workspaceAlias
- the workspaceAlias to set
-
getWorkspace
public java.lang.String getWorkspace()
- Returns:
- The name of the repository workspace, as returned from the "scm status" command.
-
setWorkspace
public void setWorkspace(java.lang.String fWorkspace)
- Parameters:
fWorkspace
- The fWorkspace to set.
-
getFlowTargetAlias
public int getFlowTargetAlias()
- Returns:
- The alias of the flow target, as returned from the "scm status" command.
-
setFlowTargetAlias
public void setFlowTargetAlias(int flowTargetAlias)
- Parameters:
flowTargetAlias
- the flowTargetAlias to set
-
getFlowTarget
public java.lang.String getFlowTarget()
- Returns:
- The name of the flow target, as returned from the "scm status" command.
-
setFlowTarget
public void setFlowTarget(java.lang.String flowTarget)
- Parameters:
flowTarget
- The flowTarget to set.
-
getComponent
public java.lang.String getComponent()
- Returns:
- The name of the component, as returned from the "scm status" command.
-
setComponent
public void setComponent(java.lang.String component)
- Parameters:
component
- The component to set.
-
getBaseline
public java.lang.String getBaseline()
- Returns:
- The name of the baseline, as returned from the "scm status" command.
-
setBaseline
public void setBaseline(java.lang.String baseline)
- Parameters:
baseline
- The baseline to set.
-
getOutgoingChangeSetAliases
public java.util.List<java.lang.Integer> getOutgoingChangeSetAliases()
- Returns:
- The List<Integer> of aliases of the outgoing changesets, as returned from the "scm status" command.
-
setOutgoingChangeSetAliases
public void setOutgoingChangeSetAliases(java.util.List<java.lang.Integer> outgoingChangeSetAliases)
- Parameters:
outgoingChangeSetAliases
- The List of Integers of outgoing change set aliases to set
-
getIncomingChangeSetAliases
public java.util.List<java.lang.Integer> getIncomingChangeSetAliases()
- Returns:
- The List<Integer> of aliases of the incoming changesets, as returned from the "scm status" command.
-
setIncomingChangeSetAliases
public void setIncomingChangeSetAliases(java.util.List<java.lang.Integer> incomingChangeSetAliases)
- Parameters:
incomingChangeSetAliases
- The List of Integers of incoming change set aliases to set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-