bdemers commented on code in PR #411:
URL: https://github.com/apache/directory-scimple/pull/411#discussion_r1401219607
##########
scim-server-examples/scim-server-jersey/src/main/java/org/apache/directory/scim/example/jersey/service/InMemoryUserService.java:
##########
@@ -130,17 +134,21 @@ public ScimUser create(ScimUser resource) throws
UnableToCreateResourceException
return resource;
}
- /**
- * @see Repository#update(UpdateRequest)
- */
@Override
- public ScimUser update(UpdateRequest<ScimUser> updateRequest) throws
UnableToUpdateResourceException {
- String id = updateRequest.getId();
- ScimUser resource = updateRequest.getResource();
+ public ScimUser update(String id, String version, ScimUser resource,
Set<AttributeReference> includedAttributeReferences, Set<AttributeReference>
excludedAttributeReferences) throws ResourceException {
+ users.put(id, resource);
+ return resource;
+ }
+
+ @Override
+ public ScimUser patch(String id, String version, List<PatchOperation>
patchOperations, Set<AttributeReference> includedAttributeReferences,
Set<AttributeReference> excludedAttributeReferences) throws ResourceException {
+ PatchHandler patchHandler = new PatchHandlerImpl(schemaRegistry);
Review Comment:
I just pushed an updated, and injected the PatchHandler, please take a look!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]