List<String> serviceTypes = queryParams.remove(ServiceBindingUtils.SERVICE_TYPE_PROP);
if(serviceTypes == null || serviceTypes.isEmpty()) {
- serviceTypes = ServiceBindingUtils.getCommonServiceTypes();
+ serviceTypes = ServiceBindingUtils.getCommonServiceTypes(true); //CSPACE-5359: Should now include objects, procedures, and authorities
}
// Note that we have to create the service context for the Items, not the main service
private static ArrayList<String> commonServiceTypes = null;\r
private static ArrayList<String> commonProcedureServiceTypes = null;\r
\r
- public static ArrayList<String> getCommonServiceTypes() {\r
+ public static ArrayList<String> getCommonServiceTypes(boolean includeAuthorities) {\r
if(commonServiceTypes == null) {\r
commonServiceTypes = new ArrayList<String>();\r
- // Problematic at this point: commonServiceTypes.add(SERVICE_TYPE_AUTHORITY);\r
+ if (includeAuthorities == true) {\r
+ commonServiceTypes.add(SERVICE_TYPE_AUTHORITY); // REM - CSPACE-5359: Added back authorities to resolve this issue.\r
+ }\r
commonServiceTypes.add(SERVICE_TYPE_OBJECT);\r
commonServiceTypes.add(SERVICE_TYPE_PROCEDURE);\r
}\r
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
+ private final static boolean EXCLUDE_AUTHORITIES = false;
+
@Override
public String getServiceName(){
return ServiceGroupClient.SERVICE_NAME;
// We need to get all the procedures, authorities, and objects.
ArrayList<String> groupsList = null;
if("common".equalsIgnoreCase(groupname)) {
- groupsList = ServiceBindingUtils.getCommonServiceTypes();
+ groupsList = ServiceBindingUtils.getCommonServiceTypes(false); // CSPACE-5359: Excluding Authority type to stay backward compat with v2.4
} else {
groupsList = new ArrayList<String>();
groupsList.add(groupname);
createDocumentHandler(ctx);
ArrayList<String> groupsList = null;
if("common".equalsIgnoreCase(serviceGroupName)) {
- groupsList = ServiceBindingUtils.getCommonServiceTypes();
+ groupsList = ServiceBindingUtils.getCommonServiceTypes(); //CSPACE-5359: Exclude authorities to remain backward compat with v2.4
} else {
groupsList = new ArrayList<String>();
groupsList.add(serviceGroupName);