public interface

RefRestriction

com.atlassian.bitbucket.repository.ref.restriction.RefRestriction

Class Overview

A restriction on a MinimalRef or a group of refs.

Summary

Public Methods
@Nonnull List<AccessGrant> getAccessGrants()
int getId()
@Nonnull RefMatcher getMatcher()
@Deprecated int getRepositoryId()
This method is deprecated. in 5.1 for removal in 6.0. Use getScope() instead.
@Nonnull Scope getScope()
@Nonnull RefRestrictionType getType()

Public Methods

@Nonnull public List<AccessGrant> getAccessGrants ()

Returns

public int getId ()

Returns
  • the restriction's ID

@Nonnull public RefMatcher getMatcher ()

Returns
  • the matcher that will apply to the restriction

@Deprecated public int getRepositoryId ()

This method is deprecated.
in 5.1 for removal in 6.0. Use getScope() instead.

Returns
  • the ID of the Repository the restriction targets, -1 if the scope of this restriction is not of type com.atlassian.bitbucket.scope.RepositoryScope

@Nonnull public Scope getScope ()

Returns

@Nonnull public RefRestrictionType getType ()

Returns
  • the restriction's type