@Immutable @ParametersAreNonnullByDefault public final class

PermissionSchemeImpl

extends Object
implements PermissionScheme
java.lang.Object
   ↳ com.atlassian.jira.permission.data.PermissionSchemeImpl

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.util.Named
Public Constructors
PermissionSchemeImpl(Long id, String name, String description)
PermissionSchemeImpl(Long id, String name, String description, Iterable<PermissionGrant> permissions)
Public Methods
boolean equals(Object o)
String getDescription()
Returns an optional description of this scheme.
Long getId()
Returns an id of the permission grant as stored in DB.
String getName()
Returns the permission scheme name.
List<PermissionGrant> getPermissions()
Returns a collection of permission grants defined in this scheme.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.entity.WithId
From interface com.atlassian.jira.permission.PermissionScheme
From interface com.atlassian.jira.util.Named
From interface com.atlassian.jira.util.NamedWithDescription

Public Constructors

public PermissionSchemeImpl (Long id, String name, String description)

public PermissionSchemeImpl (Long id, String name, String description, Iterable<PermissionGrant> permissions)

Public Methods

public boolean equals (Object o)

public String getDescription ()

Returns an optional description of this scheme. If description is not defined then an empty String will be returned.

Returns
  • non-null String, may be empty.

public Long getId ()

Returns an id of the permission grant as stored in DB.

public String getName ()

Returns the permission scheme name.

public List<PermissionGrant> getPermissions ()

Returns a collection of permission grants defined in this scheme.

public int hashCode ()

public String toString ()