org.apache.maven.scm.provider.jazz.repository
Class JazzScmProviderRepository

java.lang.Object
  extended by org.apache.maven.scm.provider.ScmProviderRepository
      extended by org.apache.maven.scm.provider.ScmProviderRepositoryWithHost
          extended by org.apache.maven.scm.provider.jazz.repository.JazzScmProviderRepository

public class JazzScmProviderRepository
extends ScmProviderRepositoryWithHost

Author:
Chris Graham

Constructor Summary
JazzScmProviderRepository(String repositoryURI, String userName, String password, String hostName, int port, String repositoryWorkspace)
           
 
Method Summary
 String getBaseline()
           
 String getComponent()
           
 String getFlowTarget()
           
 int getFlowTargetAlias()
           
 String getRepositoryURI()
          Return the URI of the repository server, as parsed from the URL.
 String getRepositoryWorkspace()
          Return the name of the remote repository workspace, as parsed from the URL.
 String getWorkspace()
           
 int getWorkspaceAlias()
           
 boolean isHaveFlowTargets()
          Return true if we have a valid flow target.
 boolean isPushChangesAndHaveFlowTargets()
          Return true if we have a valid flow target and pushChanges is true.
 void setBaseline(String baseline)
           
 void setComponent(String component)
           
 void setFlowTarget(String flowTarget)
           
 void setFlowTargetAlias(int flowTargetAlias)
           
 void setWorkspace(String fWorkspace)
           
 void setWorkspaceAlias(int workspaceAlias)
           
 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, isPersistCheckout, isPushChanges, setPassword, setPersistCheckout, setPushChanges, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JazzScmProviderRepository

public JazzScmProviderRepository(String repositoryURI,
                                 String userName,
                                 String password,
                                 String hostName,
                                 int port,
                                 String repositoryWorkspace)
Method Detail

isPushChangesAndHaveFlowTargets

public boolean isPushChangesAndHaveFlowTargets()
Return true if we have a valid flow target and pushChanges is true.


isHaveFlowTargets

public boolean isHaveFlowTargets()
Return true 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 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 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 String getWorkspace()
Returns:
The name of the repository workspace, as returned from the "scm status" command.

setWorkspace

public void setWorkspace(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:
streamAlias - the streamAlias to set

getFlowTarget

public String getFlowTarget()
Returns:
The name of the flow target, as returned from the "scm status" command.

setFlowTarget

public void setFlowTarget(String flowTarget)
Parameters:
flowTarget - The flowTarget to set.

getComponent

public String getComponent()
Returns:
The name of the component, as returned from the "scm status" command.

setComponent

public void setComponent(String component)
Parameters:
component - The component to set.

getBaseline

public String getBaseline()
Returns:
The name of the baseline, as returned from the "scm status" command.

setBaseline

public void setBaseline(String baseline)
Parameters:
baseline - The baseline to set.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.