Added force to context facility

This commit is contained in:
Luca Frosini 2022-06-08 17:43:43 +02:00
parent 7ebebdda11
commit 824e2eabf3
1 changed files with 2 additions and 0 deletions

View File

@ -782,6 +782,8 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
Map<String, String> queryParams = new HashMap<>();
queryParams.put(SharingPath.OPERATION_QUERY_PARAMETER, SharingOperation.ADD.name());
queryParams.put(SharingPath.DRY_RUN_QUERY_PARAMETER, dryRun.toString());
Boolean forceAddToContext = getCurrentContextUUID().compareTo(contextUUID)==0;
queryParams.put(SharingPath.FORCE_ADD_TO_CONTEXT_QUERY_PARAMETER, forceAddToContext.toString());
includeAdditionalQueryParameters(gxHTTPStringRequest, queryParams);