public interface PluginMirrorCommandFactory
Modifier and Type | Method and Description |
---|---|
com.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 provided
ref changes in the repository. |
@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)
repository
- the repository to be synchronizedparameters
- describes where to synchronize fromcallback
- callback to process synchronization results@Nonnull com.atlassian.bitbucket.scm.Command<Void> updateRefs(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.scm.mirror.MirrorUpdateRefsCommandParameters parameters)
ref changes
in 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.repository
- the repositoryparameters
- describes what ref changes to applyCopyright © 2024 Atlassian. All rights reserved.