public interface VcsIntegration
Modifier and Type | Method and Description |
---|---|
ActivationStatus |
activateFor(WsdlProjectPro project)
A callback that activates this integration component for the specified project.
|
ImportProjectFromVcsGui |
buildRepositoryDownloadGui(com.eviware.soapui.model.workspace.Workspace workspace)
Return a GUI component for selecting a repository containing a composite project.
|
RepositorySelectionGui |
buildRepositorySelectionGui(WsdlProjectPro project)
Return a GUI component for selecting the repository to associate with a project.
|
CommitResult |
commit(Collection<VcsUpdate> updates,
String commitMessage)
Creates a local commit with the changes.
|
void |
createTag(WsdlProjectPro project,
String tagName)
Create a tag (label) for the current state and commit the tag to the remote repository.
|
Set<String> |
getAvailableTags(WsdlProjectPro project)
Gets the names of all existing tags.
|
List<VcsBranch> |
getBranchList(WsdlProjectPro project)
Gets list of branches in the repository of the project
|
VcsBranch |
getCurrentBranch(WsdlProjectPro project) |
String |
getDescription() |
Collection<VcsUpdate> |
getLocalRepositoryUpdates(WsdlProjectPro project)
Get a list of all the local, uncommitted updates.
|
String |
getName() |
List<HistoryEntry> |
getProjectHistory(WsdlProjectPro project)
Gets the complete commit history of the specified project.
|
Collection<VcsUpdate> |
getRemoteRepositoryUpdates(File projectFile)
Get a list of all the updates in the remote repository, along with info about whether there's a conflict with
local changes.
|
boolean |
hasRemoteRepository(File projectDirectory)
Also, @see#setupRemoteRepository
|
boolean |
hasRemoteRepository(WsdlProjectPro project)
Also, @see#setupRemoteRepository
|
boolean |
isActivatedFor(File projectDirectory) |
CommitResult |
pushToRemote(WsdlProjectPro project)
Sends all the last local commits to the remote repository.
|
void |
revert(Collection<VcsUpdate> updates)
Reverts a local update.
|
boolean |
setupRemoteRepository(WsdlProjectPro project,
String uri,
org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
Call it for composite project which contains a repository
|
boolean |
switchBranch(WsdlProjectPro project,
VcsBranch branch)
Switches the repository to decided branch
|
boolean |
updateFromRemoteRepository(File projectFile,
boolean overwriteLocalChanges)
Apply all the changes from the remote repository
|
ActivationStatus activateFor(WsdlProjectPro project)
project
- the project that has been openedRepositorySelectionGui buildRepositorySelectionGui(WsdlProjectPro project)
project
- the project with which the repository is to be associatedImportProjectFromVcsGui buildRepositoryDownloadGui(com.eviware.soapui.model.workspace.Workspace workspace)
workspace
- the workspace that the project will be added to after the downloadCollection<VcsUpdate> getRemoteRepositoryUpdates(File projectFile)
projectFile
- file (where project is saved) for the project for which to check (which will contain a reference to a repository)Collection<VcsUpdate> getLocalRepositoryUpdates(WsdlProjectPro project)
project
- the project for which to check (which will contain a reference to a repository)IllegalStateException
- if local repo is in invalid state or local updates existboolean updateFromRemoteRepository(File projectFile, boolean overwriteLocalChanges)
projectFile
- the file where project savedoverwriteLocalChanges
- whether the update should overwrite all conflicting local changesCommitResult commit(Collection<VcsUpdate> updates, String commitMessage)
updates
- a collection of objects representing the local updatescommitMessage
- user's commit message explaining the changesIllegalStateException
- if local repo is in invalid state or local updates existCommitResult pushToRemote(WsdlProjectPro project)
project
- the project changes which are pushedIllegalStateException
- if local repo is in invalid state or local updates existvoid revert(Collection<VcsUpdate> updates) throws VcsIntegrationException
updates
- an collection of objects representing the updates to revertIllegalStateException
- if local repo is in invalid state or local updates existVcsIntegrationException
- if the operation cannot be performedSet<String> getAvailableTags(WsdlProjectPro project) throws VcsIntegrationException
project
- the project for which to check (which will often contain a reference to a repository)IllegalStateException
- if local repo is in invalid state or local updates existVcsIntegrationException
- if the underlying operation failsvoid createTag(WsdlProjectPro project, String tagName)
project
- the project for which to check (which will often contain a reference to a repository)tagName
- the name of the tagIllegalStateException
- if local repo is in invalid state or local updates existIllegalArgumentException
- if the tag name is not uniqueVcsIntegrationException
- if the underlying operation failsList<HistoryEntry> getProjectHistory(WsdlProjectPro project)
project
- the project for which to check (which will often contain a reference to a repository)IllegalStateException
- if local repo is in invalid stateList<VcsBranch> getBranchList(WsdlProjectPro project)
project
- the project for which to check (which will often contain a reference to a repository)VcsIntegrationException
- if the underlying operation failsboolean switchBranch(WsdlProjectPro project, VcsBranch branch)
project
- the project for which to check (which will often contain a reference to a repository)VcsIntegrationException
- if the underlying operation failsboolean isActivatedFor(File projectDirectory)
projectDirectory
- directory to check does it contains a repositoryString getName()
String getDescription()
boolean setupRemoteRepository(WsdlProjectPro project, String uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
project
- a composite project with a repositoryuri
- of the remote repositorycredentialsProvider
- contains a credentials for the remote repository to save it for futureboolean hasRemoteRepository(WsdlProjectPro project)
project
- to checkboolean hasRemoteRepository(File projectDirectory)
projectDirectory
- to checkVcsBranch getCurrentBranch(WsdlProjectPro project)
project
- the project with repositoryCopyright © 2019. All rights reserved.