public interface ScmImportPlugin
Modifier and Type | Method and Description |
---|---|
java.util.List<Action> |
actionsAvailableForContext(ScmOperationContext context) |
void |
cleanup()
perform any cleanup/teardown needed after disabling
|
ScmImportDiffResult |
getFileDiff(JobScmReference job)
Get diff for the given job
|
ScmImportDiffResult |
getFileDiff(JobScmReference job,
java.lang.String originalPath)
Get diff for the given job against another path, e.g.
|
BasicInputView |
getInputViewForAction(ScmOperationContext context,
java.lang.String actionId)
Provide the input view for an action.
|
JobImportState |
getJobStatus(JobScmReference job)
Return the state of the given job
|
JobImportState |
getJobStatus(JobScmReference job,
java.lang.String originalPath)
Return the state of the given job, with optional original repo path
|
java.lang.String |
getRelativePathForJob(JobReference job)
Return the relative path for the job in the repo
|
Action |
getSetupAction(ScmOperationContext context)
Return any action that is needed for post-create setup.
|
ScmImportSynchState |
getStatus(ScmOperationContext context) |
java.util.List<ScmImportTrackedItem> |
getTrackedItemsForAction(java.lang.String actionId)
list any known items that can be tracked, such as: all files found in the
selected source repository branch, can be an empty list (no items found
to track) or null (item tracking is not used)
|
JobImportState |
jobChanged(JobChangeEvent event,
JobScmReference reference)
Return the state of the given job
|
ScmExportResult |
scmImport(ScmOperationContext context,
java.lang.String actionId,
JobImporter importer,
java.util.List<java.lang.String> selectedPaths,
java.util.Map<java.lang.String,java.lang.String> input)
Perform import with the input
|
ScmExportResult scmImport(ScmOperationContext context, java.lang.String actionId, JobImporter importer, java.util.List<java.lang.String> selectedPaths, java.util.Map<java.lang.String,java.lang.String> input) throws ScmPluginException
input
- result of GUI inputimporter
- can import files as jobsScmPluginException
ScmImportSynchState getStatus(ScmOperationContext context) throws ScmPluginException
ScmPluginException
JobImportState getJobStatus(JobScmReference job)
job
- jobJobImportState getJobStatus(JobScmReference job, java.lang.String originalPath)
job
- joboriginalPath
- path of original job, e.g. if the file was renamedJobImportState jobChanged(JobChangeEvent event, JobScmReference reference)
event
- change eventreference
- jobvoid cleanup()
BasicInputView getInputViewForAction(ScmOperationContext context, java.lang.String actionId)
actionId
- action IDAction getSetupAction(ScmOperationContext context)
context
- context mapjava.util.List<Action> actionsAvailableForContext(ScmOperationContext context)
context
- context mapjava.util.List<ScmImportTrackedItem> getTrackedItemsForAction(java.lang.String actionId)
java.lang.String getRelativePathForJob(JobReference job)
job
- jobScmImportDiffResult getFileDiff(JobScmReference job)
job
- jobScmImportDiffResult getFileDiff(JobScmReference job, java.lang.String originalPath)
job
- joboriginalPath
- original path