]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5728: Substitute constants for two literal strings.
authorAron Roberts <aron@socrates.berkeley.edu>
Sat, 12 Jan 2013 01:27:53 +0000 (17:27 -0800)
committerAron Roberts <aron@socrates.berkeley.edu>
Sat, 12 Jan 2013 01:27:53 +0000 (17:27 -0800)
services/batch/service/src/main/java/org/collectionspace/services/batch/nuxeo/UpdateObjectLocationBatchJob.java

index 5e5b287f6b97c8a9e55a66ddb7d137c4461a7a25..6abcbccabee5be54dd3cf52bfb294cfc4b141048 100644 (file)
@@ -14,6 +14,7 @@ import javax.ws.rs.core.UriInfo;
 import org.collectionspace.services.batch.AbstractBatchInvocable;
 import org.collectionspace.services.client.AbstractCommonListUtils;
 import org.collectionspace.services.client.CollectionObjectClient;
+import org.collectionspace.services.client.IQueryManager;
 import org.collectionspace.services.client.MovementClient;
 import org.collectionspace.services.client.PoxPayloadOut;
 import org.collectionspace.services.client.workflow.WorkflowClient;
@@ -440,7 +441,7 @@ public class UpdateObjectLocationBatchJob extends AbstractBatchInvocable {
      * @throws URISyntaxException
      */
     private AbstractCommonList getRecordsRelatedToObjectCsid(ResourceBase resource, String csid, boolean excludeDeletedRecords) throws URISyntaxException {
-        return getRecordsRelatedToCsid(resource, csid, "rtObj", excludeDeletedRecords);
+        return getRecordsRelatedToCsid(resource, csid, IQueryManager.SEARCH_RELATED_TO_CSID_AS_OBJECT, excludeDeletedRecords);
     }
 
     /**
@@ -457,7 +458,7 @@ public class UpdateObjectLocationBatchJob extends AbstractBatchInvocable {
      * @throws URISyntaxException
      */
     private AbstractCommonList getRecordsRelatedToSubjectCsid(ResourceBase resource, String csid, boolean excludeDeletedRecords) throws URISyntaxException {
-        return getRecordsRelatedToCsid(resource, csid, "rtSbj", excludeDeletedRecords);
+        return getRecordsRelatedToCsid(resource, csid, IQueryManager.SEARCH_RELATED_TO_CSID_AS_SUBJECT, excludeDeletedRecords);
     }
 
     private AbstractCommonList getRelatedRecords(ResourceBase resource, String csid, boolean excludeDeletedRecords)