use of org.apache.nifi.registry.security.authorization.resource.Authorizable in project nifi-registry by apache.
the class PermissionsService method createPermissionsForBucketId.
private Permissions createPermissionsForBucketId(String bucketId, final Permissions knownPermissions) {
Authorizable bucketResource = authorizableLookup.getBucketAuthorizable(bucketId);
Permissions permissions = knownPermissions == null ? authorizationService.getPermissionsForResource(bucketResource) : authorizationService.getPermissionsForResource(bucketResource, knownPermissions);
return permissions;
}
use of org.apache.nifi.registry.security.authorization.resource.Authorizable in project nifi-registry by apache.
the class TenantResource method authorizeAccess.
private void authorizeAccess(RequestAction actionType) {
final Authorizable tenantsAuthorizable = authorizableLookup.getTenantsAuthorizable();
authorizationService.authorize(tenantsAuthorizable, actionType);
}
Aggregations