@Immutable @PublicApi public final class

PermissionSchemeInput

extends Object
java.lang.Object
   ↳ com.atlassian.jira.permission.PermissionSchemeInput

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

Input for building a PermissionScheme.

Summary

Nested Classes
class PermissionSchemeInput.Builder  
Public Methods
static PermissionSchemeInput.Builder builder(String name)
Creates a builder of PermissionSchemeInput objects.
static PermissionSchemeInput.Builder builder(PermissionSchemeInput data)
Creates a new builder which has all the fields set as an input data.
static PermissionSchemeInput.Builder builder(PermissionScheme scheme)
Creates a new builder which has all the fields set as an input scheme.
boolean equals(Object o)
Option<String> getDescription()
String getName()
List<PermissionGrantInput> getPermissions()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static PermissionSchemeInput.Builder builder (String name)

Creates a builder of PermissionSchemeInput objects. Accepts a name as an argument as it's the only required field for a permission scheme.

Parameters
name permission scheme name
Returns
  • a new builder

public static PermissionSchemeInput.Builder builder (PermissionSchemeInput data)

Creates a new builder which has all the fields set as an input data.

Parameters
data data to set in the returned builder
Returns
  • a new builder with the data matching the argument.

public static PermissionSchemeInput.Builder builder (PermissionScheme scheme)

Creates a new builder which has all the fields set as an input scheme. Note that all id-s will be lost.

Parameters
scheme data to set in the returned builder
Returns
  • a new builder with the data matching the argument.

public boolean equals (Object o)

public Option<String> getDescription ()

public String getName ()

public List<PermissionGrantInput> getPermissions ()

public int hashCode ()

public String toString ()