@Override public ImmutablePolicyBuilderLabelScoped setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey, final Permissions revokedPermissions) { delegate.setRevokedPermissionsFor(label, resourceKey, revokedPermissions); return this; }
@Override public ImmutablePolicyBuilderLabelScoped setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey, final String revokedPermission, final String... furtherRevokedPermissions) { delegate.setRevokedPermissionsFor(label, resourceKey, revokedPermission, furtherRevokedPermissions); return this; }
/** * Set the given permissions on the specified {@code resourceKey} in the specified {@code label} * as "revoked" to this builder. * * @param label the label identifying the PolicyEntry to modify. * @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 PolicyBuilder setRevokedPermissionsFor(final CharSequence label, final ResourceKey resourceKey, final String revokedPermission, final String... furtherRevokedPermissions) { return setRevokedPermissionsFor(label, resourceKey, Permissions.newInstance(revokedPermission, furtherRevokedPermissions)); }
/** * Set the given permissions on the specified {@code resourceType} and {@code resourcePath} in the specified * {@code label} as "revoked" to this builder. * * @param label the label identifying the PolicyEntry to modify. * @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}. * @throws IllegalArgumentException if {@code label} or {@code resourceType} is empty. */ default PolicyBuilder setRevokedPermissionsFor(final CharSequence label, final String resourceType, final CharSequence resourcePath, final Permissions revokedPermissions) { return setRevokedPermissionsFor(label, ResourceKey.newInstance(resourceType, resourcePath), revokedPermissions); }
/** * Set the given permissions on the specified {@code resourceType} and {@code resourcePath} in the specified * {@code label} as "revoked" to this builder. * * @param label the label identifying the PolicyEntry to modify. * @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}. * @throws IllegalArgumentException if {@code label} or {@code resourceType} is empty. */ default PolicyBuilder setRevokedPermissionsFor(final CharSequence label, final String resourceType, final CharSequence resourcePath, final String revokedPermission, final String... furtherRevokedPermissions) { return setRevokedPermissionsFor(label, ResourceKey.newInstance(resourceType, JsonPointer.of(resourcePath)), Permissions.newInstance(revokedPermission, furtherRevokedPermissions)); }