/** * Set the given permissions on the specified {@code resourceType} and {@code resourcePath} as "revoked" to * this builder. * * @param resourceType the type of the Resource to set the permissions on. * @param resourcePath the path of the Resource to set the permissions on. * @param revokedPermissions the Permissions to set as "revoke"ed on the Resource in the label. * @return this builder to allow method chaining. * @throws NullPointerException if any argument is {@code null}. */ default LabelScoped setRevokedPermissions(final String resourceType, final JsonPointer resourcePath, final Permissions revokedPermissions) { setRevokedPermissionsFor(getLabel(), resourceType, resourcePath, revokedPermissions); return this; }
/** * Set the given permissions on the specified {@code resourceType} and {@code resourcePath} as "revoked" * to this builder. * * @param resourceType the type of the Resource to set the permissions on. * @param resourcePath the path of the Resource to set the permissions on. * @param revokedPermission the Permission to set as "revoke"ed on the Resource in the label. * @param furtherRevokedPermissions further Permissions to set as "revoke"ed on the Resource in the label. * @return this builder to allow method chaining. * @throws NullPointerException if any argument is {@code null}. */ default LabelScoped setRevokedPermissions(final String resourceType, final JsonPointer resourcePath, final String revokedPermission, final String... furtherRevokedPermissions) { setRevokedPermissionsFor(getLabel(), resourceType, resourcePath, revokedPermission, furtherRevokedPermissions); return this; }
/** * Set the given permissions on the specified {@code resourceKey} as "revoked" to this builder. * * @param resourceKey the ResourceKey to set the permissions on. * @param revokedPermission the Permission to set as "revoke"ed on the Resource in the label. * @param furtherRevokedPermissions further Permissions to set as "revoke"ed on the Resource in the label. * @return this builder to allow method chaining. * @throws NullPointerException if any argument is {@code null}. */ default LabelScoped setRevokedPermissions(final ResourceKey resourceKey, final String revokedPermission, final String... furtherRevokedPermissions) { setRevokedPermissionsFor(getLabel(), resourceKey, revokedPermission, furtherRevokedPermissions); return this; }
/** * Set the given permissions on the specified {@code resourceKey} as "revoked" to this builder. * * @param resourceKey the ResourceKey to set the permissions on. * @param revokedPermissions the Permissions to set as "revoke"ed on the resource in the label. * @return this builder to allow method chaining. * @throws NullPointerException if any argument is {@code null}. */ default LabelScoped setRevokedPermissions(final ResourceKey resourceKey, final Permissions revokedPermissions) { setRevokedPermissionsFor(getLabel(), resourceKey, revokedPermissions); return this; }