public abstract class ScmProviderRepository extends Object
Constructor and Description |
---|
ScmProviderRepository() |
Modifier and Type | Method and Description |
---|---|
ScmProviderRepository |
getParent()
Get a
ScmProviderRepository that represents the parent folder in the repository. |
String |
getPassword() |
String |
getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.
|
String |
getUser() |
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(String password)
Set the password.
|
void |
setPersistCheckout(boolean persistCheckout) |
void |
setPushChanges(boolean pushChanges) |
void |
setUser(String user)
Set the user.
|
public ScmProviderRepository()
public String getPassword()
public void setPassword(String password)
password
- The user passwordpublic boolean isPushChanges()
public void setPushChanges(boolean pushChanges)
pushChanges
- 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.UnsupportedOperationException
- unless overridden by subclasspublic String getRelativePath(ScmProviderRepository ancestor)
ancestor
- another repository that should be ancestor of this onenull
if it can't be resolvedUnsupportedOperationException
- unless overridden by subclassCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.