public class PermissionConverter extends Object
Converts between the String-Array based representation of permissions in the REST API and the Integer-based representation in the JAVA API.
Constructor and Description |
---|
PermissionConverter() |
Modifier and Type | Method and Description |
---|---|
static Permission[] |
getAllPermissions() |
static String[] |
getNamesForPermissions(Authorization authorization,
Permission[] permissions) |
static Permission |
getPermissionForName(String name) |
static Permission[] |
getPermissionsForNames(String[] names) |
public static Permission[] getPermissionsForNames(String[] names)
public static String[] getNamesForPermissions(Authorization authorization, Permission[] permissions)
public static Permission[] getAllPermissions()
public static Permission getPermissionForName(String name)
Copyright © 2018. All rights reserved.