List<String> serviceTypes = queryParams.remove(ServiceBindingUtils.SERVICE_TYPE_PROP);
if(serviceTypes == null || serviceTypes.isEmpty()) {
- serviceTypes = ServiceBindingUtils.getCommonServiceTypes();
+ // Temporary workaround for CSPACE-4963
+ // serviceTypes = ServiceBindingUtils.getCommonServiceTypes();
+ serviceTypes = ServiceBindingUtils.getCommonProcedureServiceTypes();
}
// Note that we have to create the service context for the Items, not the main service
return commonServiceTypes;\r
}\r
\r
+ // Temporary workaround for CSPACE-4963, to help reduce the\r
+ // number of service types searched for authority references\r
+ // in AuthorityResource.getReferencingObjects(), to in turn\r
+ // help reduce database query complexity.\r
+ //\r
+ // FIXME; this method is intended to be temporary. It was added in part to\r
+ // make the effect of the workaround more explicit, and in part to avoid\r
+ // breaking the use of the getCommonServiceTypes method in ServiceGroups.\r
+ public static ArrayList<String> getCommonProcedureServiceTypes() {\r
+ if(commonServiceTypes == null) {\r
+ commonServiceTypes = new ArrayList<String>();\r
+ commonServiceTypes.add(SERVICE_TYPE_PROCEDURE);\r
+ }\r
+ return commonServiceTypes;\r
+ }\r
+ \r
\r
\r
}\r