public abstract class ScmProviderRepository
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
password |
private boolean |
persistCheckout |
private boolean |
pushChanges |
private java.lang.String |
user |
private java.lang.String |
workItem
Some SCMs have the concept of a work item (or task) which may need to be
specified to allow changes to be pushed or delivered to a target.
|
Constructor and Description |
---|
ScmProviderRepository() |
Modifier and Type | Method and Description |
---|---|
ScmProviderRepository |
getParent()
Get a
ScmProviderRepository that represents the parent folder in the repository. |
java.lang.String |
getPassword() |
java.lang.String |
getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.
|
java.lang.String |
getUser() |
java.lang.String |
getWorkItem() |
boolean |
isPersistCheckout()
Will checkouts using this repository be persisted so they can
be refreshed in the future? This property is of concern to SCMs
like Perforce and Clearcase where the server must track where a
user checks out to.
|
boolean |
isPushChanges()
Should distributed changes be pushed to the central repository?
For many distributed SCMs like Git, a change like a commit
is only stored in your local copy of the repository.
|
void |
setPassword(java.lang.String password)
Set the password.
|
void |
setPersistCheckout(boolean persistCheckout) |
void |
setPushChanges(boolean pushChanges) |
void |
setUser(java.lang.String user)
Set the user.
|
void |
setWorkItem(java.lang.String workItem)
Set the workItem.
|
private java.lang.String user
private java.lang.String password
private boolean persistCheckout
private boolean pushChanges
private java.lang.String workItem
These SCMs can be configured to reject a push/deliver unless additional information (by way of a workItem/task) is supplied.
This field is only relevant when pushChanges = true.
It should be noted however, when pushChanges = true, a workItem does not need to be set, as the need for a workItem may be optional.
public java.lang.String getUser()
public void setUser(java.lang.String user)
user
- The userpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The user passwordpublic boolean isPushChanges()
public void setPushChanges(boolean pushChanges)
pushChanges
- public java.lang.String getWorkItem()
public void setWorkItem(java.lang.String workItem)
user
- The workItem.public boolean isPersistCheckout()
public void setPersistCheckout(boolean persistCheckout)
public ScmProviderRepository getParent()
ScmProviderRepository
that represents the parent folder in the repository.
Useful when the repository does not exist yet and we need to create it from the parent.java.lang.UnsupportedOperationException
- unless overridden by subclasspublic java.lang.String getRelativePath(ScmProviderRepository ancestor)
ancestor
- another repository that should be ancestor of this onenull
if it can't be resolvedjava.lang.UnsupportedOperationException
- unless overridden by subclass