]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4406: Now including authorities in default refobjs requests
authorRichard Millet <remillet@berkeley.edu>
Tue, 3 Jul 2012 21:17:31 +0000 (14:17 -0700)
committerRichard Millet <remillet@berkeley.edu>
Tue, 3 Jul 2012 21:17:31 +0000 (14:17 -0700)
services/servicegroup/service/src/main/java/org/collectionspace/services/servicegroup/ServiceGroupResource.java

index 87c2bbb4355f78995935d603570b16d1f24ac571..42f33c34596017ac1352b592dc019c60e95c73b8 100644 (file)
@@ -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<String> 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<String>();
                        groupsList.add(groupname);
@@ -228,7 +229,7 @@ public class ServiceGroupResource extends AbstractCollectionSpaceResourceImpl {
                                                createDocumentHandler(ctx);
                ArrayList<String> 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<String>();
                        groupsList.add(serviceGroupName);