/** * Remove all values of the attribute specified by the path. * * @param path The path to the attribute whose value to remove. * @return This patch operation request. * @throws ScimException If the path is invalid. */ public T removeValues(final String path) throws ScimException { return removeValues(Path.fromString(path)); }
/** * Create a new {@code present} filter. * * @param attributePath The path to the attribute to filter by. * @return A new {@code present} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter pr(final String attributePath) throws BadRequestException { return new PresentFilter(Path.fromString(attributePath)); }
/** * Remove all values of the attribute specified by the path. * * @param path The path to the attribute whose value to remove. * @return This patch operation request. * @throws ScimException If the path is invalid. */ public T removeValues(final String path) throws ScimException { return removeValues(Path.fromString(path)); }
/** * Create a new {@code present} filter. * * @param attributePath The path to the attribute to filter by. * @return A new {@code present} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter pr(final String attributePath) throws BadRequestException { return new PresentFilter(Path.fromString(attributePath)); }
/** * Create a new remove patch operation. * * @param path The path targeted by this patch operation. * * @return The new delete patch operation. * @throws ScimException If the path is invalid. */ public static PatchOperation remove(final String path) throws ScimException { return remove(Path.fromString(path)); }
/** * Create a new remove patch operation. * * @param path The path targeted by this patch operation. * * @return The new delete patch operation. * @throws ScimException If the path is invalid. */ public static PatchOperation remove(final String path) throws ScimException { return remove(Path.fromString(path)); }
/** * Create a new add patch operation. * * @param path The path targeted by this patch operation. * @param value The value(s) to add. * * @return The new add patch operation. * @throws ScimException If the path is invalid. */ public static PatchOperation add(final String path, final JsonNode value) throws ScimException { return add(Path.fromString(path), value); }
/** * Removes values of the extension attribute at the provided path. Equivalent * to using the {@link JsonUtils#removeValues(Path, ObjectNode)} method: * JsonUtils.removeValue(Path.fromString(path), getObjectNode(), values). * * @param path The path to the attribute whose values to remove. * @return Whether one or more values where removed. * @throws ScimException If the path is invalid. */ public boolean removeExtensionValues(final String path) throws ScimException { return removeExtensionValues(Path.fromString(path)); }
/** * Removes values at the provided path. Equivalent * to using the {@link JsonUtils#removeValues(Path, ObjectNode)} method: * JsonUtils.removeValue(Path.fromString(path), getObjectNode(), values). * * @param path The path to the attribute whose values to remove. * @return Whether one or more values where removed. * @throws ScimException If the path is invalid. */ public boolean removeValues(final String path) throws ScimException { return removeValues(Path.fromString(path)); }
/** * Create a new {@code equal} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter eq(final String attributePath, final String filterValue) throws BadRequestException { return new EqualFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a new {@code starts with} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code starts with} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter sw(final String attributePath, final String filterValue) throws BadRequestException { return new StartsWithFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a new {@code greater than} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter gt(final String attributePath, final Float filterValue) throws BadRequestException { return new GreaterThanFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().numberNode(filterValue)); }
/** * Create a new {@code greater than or equal} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than or equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter ge(final String attributePath, final String filterValue) throws BadRequestException { return new GreaterThanOrEqualFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a new {@code less than} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than or equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter lt(final String attributePath, final String filterValue) throws BadRequestException { return new LessThanFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a {@code new less than or equal} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A {@code new less than or equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter le(final String attributePath, final String filterValue) throws BadRequestException { return new LessThanOrEqualFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a new {@code equal} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter eq(final String attributePath, final Double filterValue) throws BadRequestException { return new EqualFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().numberNode(filterValue)); }
/** * Create a new {@code contains} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code contains} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter co(final String attributePath, final String filterValue) throws BadRequestException { return new ContainsFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().textNode(filterValue)); }
/** * Create a new {@code greater than} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter gt(final String attributePath, final Long filterValue) throws BadRequestException { return new GreaterThanFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().numberNode(filterValue)); }
/** * Create a new {@code greater than or equal} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than or equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter ge(final String attributePath, final Long filterValue) throws BadRequestException { return new GreaterThanOrEqualFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().numberNode(filterValue)); }
/** * Create a new {@code less than} filter. * * @param attributePath The path to the attribute to filter by. * @param filterValue The filter attribute value. * @return A new {@code greater than or equal} filter. * @throws BadRequestException If the path could not be parsed. */ public static Filter lt(final String attributePath, final Double filterValue) throws BadRequestException { return new LessThanFilter(Path.fromString(attributePath), JsonUtils.getJsonNodeFactory().numberNode(filterValue)); }