Interface PluginMirrorCommandFactory
public interface PluginMirrorCommandFactory
- Since:
- 4.1
- 
Method SummaryModifier and TypeMethodDescriptioncom.atlassian.bitbucket.scm.Command<Void> synchronize(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters parameters, com.atlassian.bitbucket.scm.mirror.MirrorSyncCallback callback) com.atlassian.bitbucket.scm.Command<Void> updateRefs(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters) Applies the providedref changesin the repository.
- 
Method Details- 
synchronize@Nonnull com.atlassian.bitbucket.scm.Command<Void> synchronize(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters parameters, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorSyncCallback callback) - Parameters:
- repository- the repository to be synchronized
- parameters- describes where to synchronize from
- callback- callback to process synchronization results
- Returns:
- the command
 
- 
updateRefs@Nonnull com.atlassian.bitbucket.scm.Command<Void> updateRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters) Applies the providedref changesin the repository. If one or more of the updates cannot be performed (e.g. the toHash does not exist in the repository or the fromHash does not match the current value in the repository), the command will apply all ref updates that can be safely applied, then throw an exception.- Parameters:
- repository- the repository
- parameters- describes what ref changes to apply
- Returns:
- the command
- Since:
- 4.2
 
 
-