From 9b6276623e2eac059841637233df3888bf0df9e4 Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Tue, 3 Jul 2012 14:17:31 -0700 Subject: [PATCH] CSPACE-4406: Now including authorities in default refobjs requests --- .../services/servicegroup/ServiceGroupResource.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/servicegroup/service/src/main/java/org/collectionspace/services/servicegroup/ServiceGroupResource.java b/services/servicegroup/service/src/main/java/org/collectionspace/services/servicegroup/ServiceGroupResource.java index 87c2bbb43..42f33c345 100644 --- a/services/servicegroup/service/src/main/java/org/collectionspace/services/servicegroup/ServiceGroupResource.java +++ b/services/servicegroup/service/src/main/java/org/collectionspace/services/servicegroup/ServiceGroupResource.java @@ -83,6 +83,7 @@ public class ServiceGroupResource extends AbstractCollectionSpaceResourceImpl { protected final Logger logger = LoggerFactory.getLogger(this.getClass()); private final static boolean EXCLUDE_AUTHORITIES = false; + private final static boolean INCLUDE_AUTHORITIES = true; @Override public String getServiceName(){ @@ -172,7 +173,7 @@ public class ServiceGroupResource extends AbstractCollectionSpaceResourceImpl { // We need to get all the procedures, authorities, and objects. ArrayList groupsList = null; if("common".equalsIgnoreCase(groupname)) { - groupsList = ServiceBindingUtils.getCommonServiceTypes(false); // CSPACE-5359: Excluding Authority type to stay backward compat with v2.4 + groupsList = ServiceBindingUtils.getCommonServiceTypes(EXCLUDE_AUTHORITIES); // CSPACE-5359: Excluding Authority type to stay backward compat with v2.4 } else { groupsList = new ArrayList(); groupsList.add(groupname); @@ -228,7 +229,7 @@ public class ServiceGroupResource extends AbstractCollectionSpaceResourceImpl { createDocumentHandler(ctx); ArrayList groupsList = null; if("common".equalsIgnoreCase(serviceGroupName)) { - groupsList = ServiceBindingUtils.getCommonServiceTypes(); //CSPACE-5359: Exclude authorities to remain backward compat with v2.4 + groupsList = ServiceBindingUtils.getCommonServiceTypes(EXCLUDE_AUTHORITIES); //CSPACE-5359: Exclude authorities to remain backward compat with v2.4 } else { groupsList = new ArrayList(); groupsList.add(serviceGroupName); -- 2.47.3