public interface ScmExportPlugin
Modifier and Type | Method and Description |
---|---|
java.util.List<Action> |
actionsAvailableForContext(ScmOperationContext context) |
void |
cleanup()
perform any cleanup/teardown needed after disabling
|
ScmExportResult |
export(ScmOperationContext context,
java.lang.String actionId,
java.util.Set<JobExportReference> jobs,
java.util.Set<java.lang.String> pathsToDelete,
java.util.Map<java.lang.String,java.lang.String> input)
Perform export of the jobs
|
java.util.List<java.lang.String> |
getDeletedFiles()
Return a list of tracked files that have been deleted.
|
ScmDiffResult |
getFileDiff(JobExportReference job)
Get diff for the given job
|
ScmDiffResult |
getFileDiff(JobExportReference job,
java.lang.String originalPath)
Get diff for the given job against another path, e.g.
|
BasicInputView |
getInputViewForAction(ScmOperationContext context,
java.lang.String actionId) |
JobState |
getJobStatus(JobExportReference job)
Return the state of the given job
|
JobState |
getJobStatus(JobExportReference 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
|
ScmExportSynchState |
getStatus(ScmOperationContext context) |
JobState |
jobChanged(JobChangeEvent event,
JobExportReference exportReference)
Return the state of the given job
|
void cleanup()
BasicInputView getInputViewForAction(ScmOperationContext context, java.lang.String actionId)
actionId
- action IDjava.util.List<Action> actionsAvailableForContext(ScmOperationContext context)
context
- context mapScmExportResult export(ScmOperationContext context, java.lang.String actionId, java.util.Set<JobExportReference> jobs, java.util.Set<java.lang.String> pathsToDelete, java.util.Map<java.lang.String,java.lang.String> input) throws ScmPluginException
jobs
- jobs to be exportedinput
- input for the action propertiesScmPluginException
ScmExportSynchState getStatus(ScmOperationContext context) throws ScmPluginException
ScmPluginException
JobState getJobStatus(JobExportReference job)
job
- jobJobState getJobStatus(JobExportReference job, java.lang.String originalPath)
job
- joboriginalPath
- path of original job, e.g. if the file was renamedjava.util.List<java.lang.String> getDeletedFiles()
JobState jobChanged(JobChangeEvent event, JobExportReference exportReference)
event
- change eventexportReference
- serialize the jobjava.lang.String getRelativePathForJob(JobReference job)
job
- jobScmDiffResult getFileDiff(JobExportReference job)
job
- jobScmDiffResult getFileDiff(JobExportReference job, java.lang.String originalPath)
job
- joboriginalPath
- original path