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.
|
void |
setPassword(String password)
Set the password.
|
void |
setPersistCheckout(boolean persistCheckout) |
void |
setUser(String user)
Set the user.
|
public String getUser()
public void setUser(String user)
user
- The userpublic String getPassword()
public void setPassword(String password)
password
- The user passwordpublic 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–2014. All rights reserved.