Class ModifyRequestBuilder<T extends ModifyRequestBuilder<T>>
- java.lang.Object
-
- com.unboundid.scim2.client.requests.RequestBuilder<T>
-
- com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder<T>
-
- com.unboundid.scim2.client.requests.ModifyRequestBuilder<T>
-
- Direct Known Subclasses:
ModifyRequestBuilder.Generic,ModifyRequestBuilder.Typed
public abstract class ModifyRequestBuilder<T extends ModifyRequestBuilder<T>> extends ResourceReturningRequestBuilder<T>
A builder for SCIM modify requests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModifyRequestBuilder.Generic<T extends ScimResource>A builder for SCIM modify requests for where the returned resource POJO type will be the same as the original.static classModifyRequestBuilder.TypedA builder for SCIM modify requests for where the returned resource POJO type will be provided.
-
Field Summary
Fields Modifier and Type Field Description protected List<PatchOperation>operationsThe list of patch operations to include in the request.protected StringversionThe version to match.-
Fields inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excluded
-
Fields inherited from class com.unboundid.scim2.client.requests.RequestBuilder
headers, queryParams
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaddOperation(PatchOperation op)Add a new patch operation this this patch request.TaddValues(Path path, Object... objects)Add values to the multi-valued attribute specified by the path.TaddValues(Path path, Collection<?> objects)Add values to the multi-valued attribute specified by the path.TaddValues(String path, Object... objects)Add values to the multi-valued attribute specified by the path.TaddValues(String path, Collection<?> objects)Add values to the multi-valued attribute specified by the path.TremoveValues(Path path)Remove all values of the attribute specified by the path.TremoveValues(String path)Remove all values of the attribute specified by the path.TreplaceValue(Path path, Object object)Set value of the attribute specified by the path, replacing any existing value(s).TreplaceValue(String path, Object object)Set value of the attribute specified by the path, replacing any existing value(s).TreplaceValues(Path path, Object... objects)Set values of the attribute specified by the path, replacing any existing values.TreplaceValues(Path path, Collection<Object> objects)Set values of the attribute specified by the path, replacing any existing values.TreplaceValues(String path, Object... objects)Set values of the attribute specified by the path, replacing any existing values.TreplaceValues(String path, Collection<Object> objects)Set values of the attribute specified by the path, replacing any existing values.-
Methods inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excludedAttributes
-
Methods inherited from class com.unboundid.scim2.client.requests.RequestBuilder
accept, contentType, getAccept, getContentType, header, queryParam, target
-
-
-
-
Field Detail
-
operations
@NotNull protected final List<PatchOperation> operations
The list of patch operations to include in the request.
-
-
Method Detail
-
replaceValue
@NotNull public T replaceValue(@NotNull String path, @Nullable Object object) throws ScimException
Set value of the attribute specified by the path, replacing any existing value(s).- Parameters:
path- The path to the attribute whose value to set.object- The value to set.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
replaceValue
@NotNull public T replaceValue(@NotNull Path path, @Nullable Object object)
Set value of the attribute specified by the path, replacing any existing value(s).- Parameters:
path- The path to the attribute whose value to set.object- The value to set.- Returns:
- This patch operation request.
-
replaceValues
@NotNull public T replaceValues(@NotNull String path, @Nullable Collection<Object> objects) throws ScimException
Set values of the attribute specified by the path, replacing any existing values.- Parameters:
path- The path to the attribute whose value to set.objects- The value(s) to set.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
replaceValues
@NotNull public T replaceValues(@NotNull Path path, @Nullable Collection<Object> objects)
Set values of the attribute specified by the path, replacing any existing values.- Parameters:
path- The path to the attribute whose value to set.objects- The value(s) to set.- Returns:
- This patch operation request.
-
replaceValues
@NotNull public T replaceValues(@NotNull String path, @NotNull Object... objects) throws ScimException
Set values of the attribute specified by the path, replacing any existing values.- Parameters:
path- The path to the attribute whose value to set.objects- The value(s) to set.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
replaceValues
@NotNull public T replaceValues(@NotNull Path path, @NotNull Object... objects)
Set values of the attribute specified by the path, replacing any existing values.- Parameters:
path- The path to the attribute whose value to set.objects- The value(s) to set.- Returns:
- This patch operation request.
-
addValues
@NotNull public T addValues(@NotNull String path, @NotNull Collection<?> objects) throws ScimException
Add values to the multi-valued attribute specified by the path.- Parameters:
path- The path to the multi-valued attribute.objects- The values to add.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
addValues
@NotNull public T addValues(@NotNull Path path, @NotNull Collection<?> objects)
Add values to the multi-valued attribute specified by the path.- Parameters:
path- The path to the multi-valued attribute.objects- The values to add.- Returns:
- This patch operation request.
-
addValues
@NotNull public T addValues(@NotNull String path, @NotNull Object... objects) throws ScimException
Add values to the multi-valued attribute specified by the path.- Parameters:
path- The path to the multi-valued attribute.objects- The values to add.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
addValues
@NotNull public T addValues(@NotNull Path path, @NotNull Object... objects)
Add values to the multi-valued attribute specified by the path.- Parameters:
path- The path to the multi-valued attribute.objects- The values to add.- Returns:
- This patch operation request.
-
removeValues
@NotNull public T removeValues(@NotNull String path) throws ScimException
Remove all values of the attribute specified by the path.- Parameters:
path- The path to the attribute whose value to remove.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
removeValues
@NotNull public T removeValues(@NotNull Path path) throws ScimException
Remove all values of the attribute specified by the path.- Parameters:
path- The path to the attribute whose value to remove.- Returns:
- This patch operation request.
- Throws:
ScimException- If the path is invalid.
-
addOperation
@NotNull public T addOperation(@NotNull PatchOperation op)
Add a new patch operation this this patch request.- Parameters:
op- The patch operation to add.- Returns:
- This patch operation request.
-
-