]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-1692,CSPACE-2330: OrgAuthorityClientUtils.createOrgAuthorityInstance() now...
authorAron Roberts <aron@socrates.berkeley.edu>
Thu, 8 Jul 2010 03:43:26 +0000 (03:43 +0000)
committerAron Roberts <aron@socrates.berkeley.edu>
Thu, 8 Jul 2010 03:43:26 +0000 (03:43 +0000)
services/organization/client/src/main/java/org/collectionspace/services/client/OrgAuthorityClientUtils.java
services/organization/client/src/test/java/org/collectionspace/services/client/test/OrgAuthorityServiceTest.java

index 1459ae28b6af923e9f46bcdf5dc19c5a94f976a2..4f7411fb510d06e4bccce1a4ea4eb0d368133535 100644 (file)
@@ -90,7 +90,8 @@ public class OrgAuthorityClientUtils {
     }\r
 \r
     /**\r
-     * @param csid the id of the PersonAuthority\r
+     * @param inAuthority the ID of the parent OrgAuthority\r
+     * @param csid the ID of the Organization\r
      * @param client if null, creates a new client\r
      * @return\r
      */\r
@@ -136,6 +137,7 @@ public class OrgAuthorityClientUtils {
         orgAuthority.setDisplayName(displayName);\r
         orgAuthority.setShortIdentifier(shortIdentifier);\r
         String refName = createOrgAuthRefName(shortIdentifier, displayName);\r
+        orgAuthority.setRefName(refName);\r
         orgAuthority.setVocabType("OrgAuthority");\r
         MultipartOutput multipart = new MultipartOutput();\r
         OutputPart commonPart = multipart.addPart(orgAuthority, MediaType.APPLICATION_XML_TYPE);\r
index d6527eb5f948c78cb5369a2aa9fa7a27d8163838..ad59422109850dca0f5e644644753fd459c06c51 100644 (file)
@@ -508,7 +508,7 @@ public class OrgAuthorityServiceTest extends AbstractServiceTestImpl {
     @Test(dataProvider="testName", dataProviderClass=AbstractServiceTestImpl.class,
             groups = {"read"}, dependsOnGroups = {"create"})
         public void readByName(String testName) throws Exception {
-       readInternal(testName, null, knownResourceShortIdentifer);
+           readInternal(testName, null, knownResourceShortIdentifer);
     }
     
     protected void readInternal(String testName, String CSID, String shortId) {