public class PropertySourcePatchSetter extends Object implements PropPatchSetter
| Modifier and Type | Class and Description |
|---|---|
static interface |
PropertySourcePatchSetter.CommitableResource |
| Constructor and Description |
|---|
PropertySourcePatchSetter(List<PropertySource> propertySources) |
PropertySourcePatchSetter(List<PropertySource> propertySources,
ValueWriters valueWriters) |
| Modifier and Type | Method and Description |
|---|---|
PropFindResponse |
setProperties(String href,
PropPatchParseResult parseResult,
Resource r)
Update the given resource with the properties specified in the parseResult
and return appropriate responses
|
boolean |
supports(Resource r)
This returns true for all resources, but it actually depends on the
configured property sources.
|
public PropertySourcePatchSetter(List<PropertySource> propertySources, ValueWriters valueWriters)
public PropertySourcePatchSetter(List<PropertySource> propertySources)
public boolean supports(Resource r)
supports in interface PropPatchSetterr - public PropFindResponse setProperties(String href, PropPatchParseResult parseResult, Resource r) throws NotAuthorizedException, BadRequestException
PropPatchSettersetProperties in interface PropPatchSetterhref - - the address of the resource being patchedparseResult - - the list of properties to be mutatedr - - the resource to be updatedNotAuthorizedExceptionBadRequestExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.