public abstract class AbstractRepositoryIntegration
extends com.tibco.be.ws.scs.impl.AbstractSCSIntegration
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
add(java.lang.String artifactPath,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'add' command to mark a new artifact for addition to the repository.
|
protected abstract void |
checkForAuthenticationFailure(java.lang.String commandOutput)
Check if SCS authentication went through successfully/failed.
|
protected abstract boolean |
checkout(java.lang.String projectDirectory,
java.lang.String destinationDirectory,
java.lang.String projectName,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'checkout' command to checkout the specified project.
|
protected abstract java.lang.String |
commit(java.lang.String artifactPaths,
java.lang.String commitComments,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'commit' command to commit all the artifact changes (add/modify/delete) to the repository and returns the commit revision.
|
protected abstract java.lang.String |
content(java.lang.String artifactPath,
java.lang.String userName,
java.lang.String password)
Executes the repository specific 'content' command and returns the content of the specified artifact.
|
protected abstract boolean |
delete(java.lang.String artifactPath,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'delete' command to mark an existing artifact for deletion from the repository.
|
protected abstract java.lang.String[] |
list(java.lang.String repoUrl,
java.lang.String userName,
java.lang.String password,
boolean recursive,
java.lang.String projectName,
java.lang.String updatePath)
Executes the Repository specific 'list' command and returns the list of projects/artifacts under the given repoUrl.
|
protected abstract boolean |
revert(java.lang.String artifactPath,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'revert' command to revert the local changes to the specified artifact.
|
protected abstract boolean |
status(java.lang.String artifactPath,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'status' command to check for the artifact status.
|
protected abstract boolean |
update(java.lang.String projectPath,
java.lang.String userName,
java.lang.String password)
Executes repository specific 'update' command to reconcile the project with remote changes.
|
protected abstract java.lang.String[] list(java.lang.String repoUrl, java.lang.String userName, java.lang.String password, boolean recursive, java.lang.String projectName, java.lang.String updatePath) throws SCSException
repoUrl
- URL of the repository to accessuserName
- Valid username that has permissions to access the above repositorypassword
- User passwordrecursive
- Whether to recursively list artifacts from the folders.projectName
- Name of the project, largely to list artifacts from within the project.updatePath
- The sub path under repoUrl. Providing this will list artifacts only under this sub pathSCSException
protected abstract java.lang.String content(java.lang.String artifactPath, java.lang.String userName, java.lang.String password) throws SCSException
artifactPath
- Path of the artifact whose content will be retrieveduserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean checkout(java.lang.String projectDirectory, java.lang.String destinationDirectory, java.lang.String projectName, java.lang.String userName, java.lang.String password) throws SCSException
projectDirectory
- The project directory(under repoUrl) that is to be checked out. The path would be the fully qualified path till the project.destinationDirectory
- Path where the project should be checked out. This path would be the local to where the server runs. Project artifacts should be checkedout within the projectName
- Name of the project being checked outuserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean add(java.lang.String artifactPath, java.lang.String userName, java.lang.String password) throws SCSException
artifactPath
- Fully qualified path of the artifact that is to be marked for addition to the repositoryuserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean delete(java.lang.String artifactPath, java.lang.String userName, java.lang.String password) throws SCSException
artifactPath
- Fully qualified path of the artifact that is to be marked for deletion from the repositoryuserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract java.lang.String commit(java.lang.String artifactPaths, java.lang.String commitComments, java.lang.String userName, java.lang.String password) throws SCSException
artifactPaths
- List of artifactPaths that need to be committed together. Multiple paths are separated by delimiters, these delimiters are repository specific, i.e. space for svncommitComments
- Comments to the associated with this commituserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean revert(java.lang.String artifactPath, java.lang.String userName, java.lang.String password) throws SCSException
artifactPath
- Fully qualified path of the artifact that is to be reverteduserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean status(java.lang.String artifactPath, java.lang.String userName, java.lang.String password) throws SCSException
artifactPath
- Fully qualified path of the artifact whose status needs to be checkeduserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract boolean update(java.lang.String projectPath, java.lang.String userName, java.lang.String password) throws SCSException
projectPath
- Fully qualified path of the project that needs to be updateduserName
- Valid username that has permissions to access the above repositorypassword
- User passwordSCSException
protected abstract void checkForAuthenticationFailure(java.lang.String commandOutput) throws SCSException
commandOutput
- Output of the command executedSCSException