PageRenderTime 37ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/atlassian/jira/plugins/bitbucket/Synchronizer.java

https://bitbucket.org/atlassian/jira-bitbucket-connector/
Java | 38 lines | 11 code | 7 blank | 20 comment | 0 complexity | d29489500e79b2fdbae03bf748a75107 MD5 | raw file
  1. package com.atlassian.jira.plugins.bitbucket;
  2. import java.util.List;
  3. import com.atlassian.jira.plugins.bitbucket.api.Changeset;
  4. import com.atlassian.jira.plugins.bitbucket.api.Progress;
  5. import com.atlassian.jira.plugins.bitbucket.api.SourceControlRepository;
  6. /**
  7. * Synchronization services
  8. */
  9. public interface Synchronizer
  10. {
  11. /**
  12. * Perform a full sync on the specified project with the specified bitbucket repostiory
  13. * @param projectKey the jira project key
  14. * @param repositoryUrl the uri of the repository to synchronize
  15. */
  16. public void synchronize(SourceControlRepository repository);
  17. /**
  18. * Perform a sync on the specified changesets with the specified project with the specified bitbucket repostiory
  19. * @param projectKey the jira project key
  20. * @param repositoryUrl the uri of the repository to synchronize
  21. * @param changesets the changesets to synchronize
  22. */
  23. public void synchronize(SourceControlRepository repository, List<Changeset> changesets);
  24. /**
  25. * Get the progress of a sync being executed for given repository
  26. * This will not return progress of sync triggered by postcommit hook.
  27. * @param repository
  28. * @return
  29. */
  30. public Progress getProgress(SourceControlRepository repository);
  31. }