public class DefaultPermissionProvider extends Object implements PermissionProvider
PermissionProvider
Constructor and Description |
---|
DefaultPermissionProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getNameForResource(int resourceType)
Gets the name of the resource with the resource type
|
Permission |
getPermissionForName(String name,
int resourceType)
Gets the permission related to the name and resource type
|
Permission[] |
getPermissionsForResource(int resourceType)
Gets all permissions possible for the resource type
|
public Permission getPermissionForName(String name, int resourceType)
PermissionProvider
getPermissionForName
in interface PermissionProvider
public Permission[] getPermissionsForResource(int resourceType)
PermissionProvider
getPermissionsForResource
in interface PermissionProvider
public String getNameForResource(int resourceType)
PermissionProvider
getNameForResource
in interface PermissionProvider
Copyright © 2021. All rights reserved.