public final enum

ScmFeature

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.atlassian.bitbucket.scm.ScmFeature

Class Overview

Enumerates optional features an SCM can support.

Summary

Enum Values
ScmFeature  BULK_CONTENT  Indicates the SCM supports bulk content retrieval 
ScmFeature  COMMAND_BUILDERS  Indicates the SCM supports builders
ScmFeature  COMPARE  Indicates the SCM provides a command factory to compare refs. 
ScmFeature  CROSS_REPOSITORY  Indicates the SCM supports cross-repository operations. 
ScmFeature  FORK  Indicates the SCM supports forking its repositories. 
ScmFeature  HOOKS  Indicates the SCM provides a handler factory to apply repository-level hooks. 
ScmFeature  LAST_MODIFIED  Indicates the SCM supports streaming the last modification for files. 
ScmFeature  MERGE  Indicates the SCM supports merging branches
ScmFeature  MIRRORS  Indicates the SCM supports mirroring repositories 
ScmFeature  PULL_REQUESTS  Indicates the SCM provides a command factory to create, view and merge pull requests
ScmFeature  REFS  Indicates the SCM provides a command factory to create branches and tags
ScmFeature  UPDATE_DEFAULT_BRANCH  Indicates the SCM supports updating the default branch in its repositories. 
Public Methods
@Nonnull static ScmFeature parse(String value)
static ScmFeature valueOf(String name)
final static ScmFeature[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ScmFeature BULK_CONTENT

public static final ScmFeature COMMAND_BUILDERS

Indicates the SCM supports builders.

public static final ScmFeature COMPARE

Indicates the SCM provides a command factory to compare refs.

Note: SCMs may support comparing refs cross-repository, but they are not required to do so.

public static final ScmFeature CROSS_REPOSITORY

Indicates the SCM supports cross-repository operations. This feature applies to:

Implementing these features in a cross-repository manner may involve substantial additional complexity, so SCMs are free not to. When this feature is not supported, providing a secondary repository on commands like commits or opening a pull request between two repositories will fail.

public static final ScmFeature FORK

Indicates the SCM supports forking its repositories.

SCMs which do not support forking will not support cross-repository operations, but just because forking is supported does not imply cross-repository support. The complexity of cross-repository operations can be substantially higher than the complexity of creating forks, for some SCMs, and forks can still offer value (for example, a sandboxed place to work) even if cross-repository operations are not possible.

public static final ScmFeature HOOKS

Indicates the SCM provides a handler factory to apply repository-level hooks.

public static final ScmFeature LAST_MODIFIED

Indicates the SCM supports streaming the last modification for files.

public static final ScmFeature MERGE

Indicates the SCM supports merging branches.

Note: SCMs may support cross-repository merges, merging a branch from one repository to a target branch in another, but they are not required to do so.

public static final ScmFeature MIRRORS

Indicates the SCM supports mirroring repositories

public static final ScmFeature PULL_REQUESTS

Indicates the SCM provides a command factory to create, view and merge pull requests.

Note: SCMs may support cross-repository pull requests, merging commits from one repository into another, but they are not required to do so.

public static final ScmFeature REFS

Indicates the SCM provides a command factory to create branches and tags.

public static final ScmFeature UPDATE_DEFAULT_BRANCH

Indicates the SCM supports updating the default branch in its repositories.

Public Methods

@Nonnull public static ScmFeature parse (String value)

public static ScmFeature valueOf (String name)

public static final ScmFeature[] values ()