public class ReadyApiGitIntegration extends Object implements VcsIntegration
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static int |
MAX_LOG_ENTRIES |
static String |
NAME |
Constructor and Description |
---|
ReadyApiGitIntegration() |
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> vcsUpdates,
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 projectFile)
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> vcsUpdates)
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 b)
Apply all the changes from the remote repository
|
public static final String NAME
public static final String DESCRIPTION
public static final int MAX_LOG_ENTRIES
public ActivationStatus activateFor(WsdlProjectPro project)
VcsIntegration
activateFor
in interface VcsIntegration
project
- the project that has been openedpublic RepositorySelectionGui buildRepositorySelectionGui(WsdlProjectPro project)
VcsIntegration
buildRepositorySelectionGui
in interface VcsIntegration
project
- the project with which the repository is to be associatedpublic ImportProjectFromVcsGui buildRepositoryDownloadGui(com.eviware.soapui.model.workspace.Workspace workspace)
VcsIntegration
buildRepositoryDownloadGui
in interface VcsIntegration
workspace
- the workspace that the project will be added to after the downloadpublic Collection<VcsUpdate> getRemoteRepositoryUpdates(File projectFile)
VcsIntegration
getRemoteRepositoryUpdates
in interface VcsIntegration
projectFile
- file (where project is saved) for the project for which to check (which will contain a reference to a repository)public Collection<VcsUpdate> getLocalRepositoryUpdates(WsdlProjectPro project)
VcsIntegration
getLocalRepositoryUpdates
in interface VcsIntegration
project
- the project for which to check (which will contain a reference to a repository)public boolean updateFromRemoteRepository(File projectFile, boolean b)
VcsIntegration
updateFromRemoteRepository
in interface VcsIntegration
projectFile
- the file where project savedb
- whether the update should overwrite all conflicting local changespublic CommitResult commit(Collection<VcsUpdate> vcsUpdates, String commitMessage)
VcsIntegration
commit
in interface VcsIntegration
vcsUpdates
- a collection of objects representing the local updatescommitMessage
- user's commit message explaining the changespublic CommitResult pushToRemote(WsdlProjectPro project)
VcsIntegration
pushToRemote
in interface VcsIntegration
project
- the project changes which are pushedpublic void revert(Collection<VcsUpdate> vcsUpdates) throws VcsIntegrationException
VcsIntegration
revert
in interface VcsIntegration
vcsUpdates
- an collection of objects representing the updates to revertVcsIntegrationException
- if the operation cannot be performedpublic Set<String> getAvailableTags(WsdlProjectPro project) throws VcsIntegrationException
VcsIntegration
getAvailableTags
in interface VcsIntegration
project
- the project for which to check (which will often contain a reference to a repository)VcsIntegrationException
- if the underlying operation failspublic void createTag(WsdlProjectPro project, String tagName)
VcsIntegration
createTag
in interface VcsIntegration
project
- the project for which to check (which will often contain a reference to a repository)tagName
- the name of the tagpublic List<HistoryEntry> getProjectHistory(WsdlProjectPro project)
VcsIntegration
getProjectHistory
in interface VcsIntegration
project
- the project for which to check (which will often contain a reference to a repository)public boolean switchBranch(WsdlProjectPro project, VcsBranch branch)
VcsIntegration
switchBranch
in interface VcsIntegration
project
- the project for which to check (which will often contain a reference to a repository)public boolean isActivatedFor(File projectDirectory)
isActivatedFor
in interface VcsIntegration
projectDirectory
- directory to check does it contains a repositorypublic String getName()
getName
in interface VcsIntegration
public String getDescription()
getDescription
in interface VcsIntegration
public boolean setupRemoteRepository(WsdlProjectPro project, String uri, org.eclipse.jgit.transport.CredentialsProvider credentialsProvider)
VcsIntegration
setupRemoteRepository
in interface VcsIntegration
project
- a composite project with a repositoryuri
- of the remote repositorycredentialsProvider
- contains a credentials for the remote repository to save it for futurepublic boolean hasRemoteRepository(WsdlProjectPro project)
VcsIntegration
hasRemoteRepository
in interface VcsIntegration
project
- to checkpublic boolean hasRemoteRepository(File projectFile)
VcsIntegration
hasRemoteRepository
in interface VcsIntegration
projectFile
- to checkpublic VcsBranch getCurrentBranch(WsdlProjectPro project)
getCurrentBranch
in interface VcsIntegration
project
- the project with repositorypublic List<VcsBranch> getBranchList(WsdlProjectPro project)
VcsIntegration
getBranchList
in interface VcsIntegration
project
- the project for which to check (which will often contain a reference to a repository)Copyright © 2019. All rights reserved.