Class CustomPermissionHolderType
java.lang.Object
com.atlassian.jira.permission.data.CustomPermissionHolderType
- All Implemented Interfaces:
PermissionHolderType
@Immutable
public final class CustomPermissionHolderType
extends Object
implements PermissionHolderType
This is a value class that implements the
PermissionHolderType interface.
Normally we want to use standard set of holder types as defined
in JiraPermissionHolderType
but the types are actually somewhat extensible, so this is needed.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Returns a key that will be stored in the database and identify this holder type.inthashCode()static PermissionHolderTypepermissionHolderType(String key, String parameter) booleanTrue if this type requires an additional parameter, false otherwise.toString()
-
Method Details
-
permissionHolderType
public static PermissionHolderType permissionHolderType(@Nonnull String key, @Nullable String parameter) -
getKey
Description copied from interface:PermissionHolderTypeReturns a key that will be stored in the database and identify this holder type.- Specified by:
getKeyin interfacePermissionHolderType
-
requiresParameter
public boolean requiresParameter()Description copied from interface:PermissionHolderTypeTrue if this type requires an additional parameter, false otherwise.- Specified by:
requiresParameterin interfacePermissionHolderType
-
toString
-
equals
-
hashCode
public int hashCode()
-