Search in sources :

Example 6 with Authorizable

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;
}
Also used : Permissions(org.apache.nifi.registry.authorization.Permissions) Authorizable(org.apache.nifi.registry.security.authorization.resource.Authorizable)

Example 7 with Authorizable

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);
}
Also used : Authorizable(org.apache.nifi.registry.security.authorization.resource.Authorizable)

Aggregations

Authorizable (org.apache.nifi.registry.security.authorization.resource.Authorizable)7 Permissions (org.apache.nifi.registry.authorization.Permissions)1 InheritingAuthorizable (org.apache.nifi.registry.security.authorization.resource.InheritingAuthorizable)1