]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4469: The value of the uri element in the collectionspace_core part for Contac...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 17 Nov 2011 04:06:40 +0000 (04:06 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 17 Nov 2011 04:06:40 +0000 (04:06 +0000)
services/contact/service/src/main/java/org/collectionspace/services/contact/AuthorityResourceWithContacts.java

index 36e720d6a3635ef8ca38f5efa30424c523a5c650..7494b590bda48002ce7008693b49967d00bbba54 100644 (file)
@@ -109,7 +109,8 @@ public abstract class AuthorityResourceWithContacts<AuthCommon, AuthItemHandler>
     public Response createContact(
             @PathParam("parentcsid") String parentspecifier,
             @PathParam("itemcsid") String itemspecifier,
-            String xmlPayload) {
+            String xmlPayload,
+            @Context UriInfo ui) {
         try {
             PoxPayloadIn input = new PoxPayloadIn(xmlPayload);
             String parentcsid = lookupParentCSID(parentspecifier, "createContact(authority)", "CREATE_ITEM_CONTACT", null);
@@ -120,7 +121,7 @@ public abstract class AuthorityResourceWithContacts<AuthCommon, AuthItemHandler>
             // Note that we have to create the service context and document
             // handler for the Contact service, not the main service.
             ServiceContext ctx = createServiceContext(getContactServiceName(), input);
-            DocumentHandler handler = createContactDocumentHandler(ctx, parentcsid, itemcsid);
+            DocumentHandler handler = createContactDocumentHandler(ctx, parentcsid, itemcsid, ui);
             String csid = getRepositoryClient(ctx).create(ctx, handler);
             UriBuilder path = UriBuilder.fromResource(resourceClass);
             path.path("" + parentcsid + "/items/" + itemcsid + "/contacts/" + csid);