]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-774 - Filter proxies from query to get items. Should help with perf, although...
authorPatrick Schmitz <pschmitz@berkeley.edu>
Tue, 19 Jan 2010 17:04:54 +0000 (17:04 +0000)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Tue, 19 Jan 2010 17:04:54 +0000 (17:04 +0000)
services/person/service/src/main/java/org/collectionspace/services/person/PersonAuthorityResource.java

index 5719d0c3a83ba224c31d12a812b5080aae6e93ab..ff5f5ebca233a3a411569fd3b44d7020496b001a 100644 (file)
@@ -420,7 +420,7 @@ public class PersonAuthorityResource extends AbstractCollectionSpaceResource {
             // Add the where clause "persons_common:inAuthority='" + parentcsid + "'"
             myFilter.setWhereClause(PersonJAXBSchema.PERSONS_COMMON + ":" +
                        PersonJAXBSchema.IN_AUTHORITY +
-                       "='" + parentcsid + "'");
+                       "='" + parentcsid + "'" + "AND ecm:isProxy = 0");
             
             // AND persons_common:displayName LIKE '%partialTerm%'
             if (partialTerm != null && !partialTerm.isEmpty()) {