From 05843e384b5633eb4d2ac3d9be35d27173a14878 Mon Sep 17 00:00:00 2001 From: yma Date: Tue, 26 Aug 2025 12:30:04 +0800 Subject: [PATCH] Add addConstituentToGroup API access for store client module --- .../indy/client/core/module/IndyStoresClientModule.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core-java/src/main/java/org/commonjava/indy/client/core/module/IndyStoresClientModule.java b/core-java/src/main/java/org/commonjava/indy/client/core/module/IndyStoresClientModule.java index 3b71e59..df60749 100644 --- a/core-java/src/main/java/org/commonjava/indy/client/core/module/IndyStoresClientModule.java +++ b/core-java/src/main/java/org/commonjava/indy/client/core/module/IndyStoresClientModule.java @@ -39,6 +39,8 @@ public class IndyStoresClientModule public static final String STORE_BASEPATH = "admin/stores"; + public static final String ADD_CONSTITUENT = "addConstituent"; + private final Logger logger = LoggerFactory.getLogger( getClass() ); public T create( final T value, final String changelog, final Class type ) @@ -170,4 +172,11 @@ public StoreListingDTO getRemoteByUrl( final String url, final { } ); } + + public boolean addConstituentToGroup( final StoreKey key, final StoreKey member ) + throws IndyClientException + { + return http.put( UrlUtils.buildUrl( STORE_BASEPATH, key.getPackageType(), key.getType().singularEndpointName(), + key.getName(), ADD_CONSTITUENT ), member ); + } }