public final class PermissionSchemeUtil extends Object
Modifier and Type | Method and Description |
---|---|
static io.atlassian.fugue.Option<ProjectPermissionKey> |
getPermissionKey(SchemeEntity schemeEntity)
Retrieves a permission key from a scheme entity's
entityTypeId field. |
public static io.atlassian.fugue.Option<ProjectPermissionKey> getPermissionKey(SchemeEntity schemeEntity)
entityTypeId
field.
As SchemeEntity
's entityTypeId
field
is of type Object
there can be a lot of different things there. We
accept and are able to process the following classes:
LegacyProjectPermissionKeyMapping
to resolve the key
LegacyProjectPermissionKeyMapping
to resolve the key
Option.none() is returned if entityTypeId
if we couldn't find a legacy mapping from numeric value.
IllegalArgumentException
- when entityTypeId
field is not a valid class.Copyright © 2002-2021 Atlassian. All Rights Reserved.