Class RestrictionProcessingRequest

java.lang.Object
com.atlassian.bitbucket.settingsrestriction.RestrictionProcessingRequest

public class RestrictionProcessingRequest extends Object
Request object for a batch of repositories to be processed with an associated restriction.

Requests are sent to each processor in batches with collections of repository IDs, sent until every repository in a project has been processed.

Since:
8.10
  • Constructor Details

    • RestrictionProcessingRequest

      public RestrictionProcessingRequest(@Nonnull Set<com.atlassian.bitbucket.repository.Repository> repositories, @Nonnull com.atlassian.bitbucket.settingsrestriction.SettingsKey settingsKey)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getRepositories

      @Nonnull public Set<com.atlassian.bitbucket.repository.Repository> getRepositories()
      Returns:
      a set of repositories to be processed in this batch. There are guaranteed to be between 1 inclusive and 1000 exclusive repositories in the set.
    • getSettingsKey

      @Nonnull public com.atlassian.bitbucket.settingsrestriction.SettingsKey getSettingsKey()
      Returns:
      the settings key of the restriction currently being processed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object