public final enum

RefRestrictionType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.bitbucket.repository.ref.restriction.RefRestrictionType

Class Overview

The type of restriction on a RefRestriction.

Summary

Enum Values
RefRestrictionType  FAST_FORWARD_ONLY  No rebases or force pushes  
RefRestrictionType  NO_DELETES  Ref cannot be deleted  
RefRestrictionType  PULL_REQUEST_ONLY  Ref can only be updated through forced pushes  
RefRestrictionType  READ_ONLY  No changes to a ref are allowed at all  
Public Methods
static RefRestrictionType forId(String id)
@Nonnull String getId()
boolean supportsPermissions()
static RefRestrictionType valueOf(String name)
final static RefRestrictionType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final RefRestrictionType FAST_FORWARD_ONLY

No rebases or force pushes

public static final RefRestrictionType NO_DELETES

Ref cannot be deleted

public static final RefRestrictionType PULL_REQUEST_ONLY

Ref can only be updated through forced pushes

public static final RefRestrictionType READ_ONLY

No changes to a ref are allowed at all

Public Methods

public static RefRestrictionType forId (String id)

@Nonnull public String getId ()

public boolean supportsPermissions ()

public static RefRestrictionType valueOf (String name)

public static final RefRestrictionType[] values ()