} else { labelScoped.setRevokedPermissions(PoliciesResourceType.thingResource(Thing.JsonFields.ACL.getPointer()), Permission.WRITE);
} else { labelScoped.setRevokedPermissions(PoliciesResourceType.thingResource(Thing.JsonFields.ACL.getPointer()), Permission.WRITE);
/** * 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 CharSequence resourcePath, final String revokedPermission, final String... furtherRevokedPermissions) { setRevokedPermissions(resourceType, JsonPointer.of(resourcePath), revokedPermission, furtherRevokedPermissions); 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 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 CharSequence resourcePath, final Permissions revokedPermissions) { setRevokedPermissions(resourceType, JsonPointer.of(resourcePath), revokedPermissions); return this; }