@Immutable @PublicApi public final class PermissionHolder extends Object
When you grant a permission, you need to define to whom you grant it. PermissionHolder lets you do that.
It consists of two things:
PermissionHolderType type
Standard JIRA reporter types are gathered in the JiraPermissionHolderType enum.
String parameter
Note that each PermissionHolderType has a PermissionHolderType.requiresParameter() method, which specifies whether it requires
a parameter or not. It is not possible to create a PermissionHolder without a parameter when the type requires one, and vice versa.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
io.atlassian.fugue.Option<String> |
getParameter() |
PermissionHolderType |
getType() |
int |
hashCode() |
static PermissionHolder |
holder(PermissionHolderType type) |
static PermissionHolder |
holder(PermissionHolderType type,
String parameter) |
String |
toString() |
public static PermissionHolder holder(PermissionHolderType type)
public static PermissionHolder holder(PermissionHolderType type, @Nullable String parameter)
public PermissionHolderType getType()
public io.atlassian.fugue.Option<String> getParameter()
Copyright © 2002-2019 Atlassian. All Rights Reserved.