public class

CanMergePullRequestCondition

extends Object
implements Condition
java.lang.Object
   ↳ com.atlassian.bitbucket.web.conditions.CanMergePullRequestCondition

Class Overview

Verifies that the current user is allowed to merge the pull request. This condition does not perform any merge-ability checks provided by plugins, and only verifies that the user has write access to the target repository.

Summary

Constants
String REPOSITORY
Fields
protected final PermissionService permissionService
Public Constructors
CanMergePullRequestCondition(PermissionService permissionService)
Public Methods
void init(Map<StringString> params)
boolean shouldDisplay(Map<StringObject> context)
Protected Methods
boolean hasPermission(Map<StringObject> context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.Condition

Constants

public static final String REPOSITORY

Constant Value: "repository"

Fields

protected final PermissionService permissionService

Public Constructors

public CanMergePullRequestCondition (PermissionService permissionService)

Public Methods

public void init (Map<StringString> params)

Throws
PluginParseException

public boolean shouldDisplay (Map<StringObject> context)

Protected Methods

protected boolean hasPermission (Map<StringObject> context)