From eb43578e173ee8d70f5d347d659be40a1b605ac8 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura Date: Wed, 18 Dec 2024 14:40:51 -0500 Subject: [PATCH] Adds missing experimental annotations Signed-off-by: Darshit Chanpura --- .../opensearch/accesscontrol/resources/ResourceService.java | 2 +- .../accesscontrol/resources/fallback/package-info.java | 2 ++ .../org/opensearch/accesscontrol/resources/package-info.java | 4 +++- .../org/opensearch/plugins/ResourceAccessControlPlugin.java | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/opensearch/accesscontrol/resources/ResourceService.java b/server/src/main/java/org/opensearch/accesscontrol/resources/ResourceService.java index 70d9c837931d8..7ea58cf223aa5 100644 --- a/server/src/main/java/org/opensearch/accesscontrol/resources/ResourceService.java +++ b/server/src/main/java/org/opensearch/accesscontrol/resources/ResourceService.java @@ -25,7 +25,7 @@ * Resource access control for OpenSearch * * @opensearch.experimental - * */ + */ public class ResourceService { private static final Logger log = LogManager.getLogger(ResourceService.class); diff --git a/server/src/main/java/org/opensearch/accesscontrol/resources/fallback/package-info.java b/server/src/main/java/org/opensearch/accesscontrol/resources/fallback/package-info.java index 1c0ab7a081f25..5658a60d641d6 100644 --- a/server/src/main/java/org/opensearch/accesscontrol/resources/fallback/package-info.java +++ b/server/src/main/java/org/opensearch/accesscontrol/resources/fallback/package-info.java @@ -8,5 +8,7 @@ /** * This package defines all default implementations of Resource Sharing and Access Control which will be utilized when security is disabled + * + * @opensearch.experimental */ package org.opensearch.accesscontrol.resources.fallback; diff --git a/server/src/main/java/org/opensearch/accesscontrol/resources/package-info.java b/server/src/main/java/org/opensearch/accesscontrol/resources/package-info.java index b8ad5237a60ca..a0dfd013dc5c3 100644 --- a/server/src/main/java/org/opensearch/accesscontrol/resources/package-info.java +++ b/server/src/main/java/org/opensearch/accesscontrol/resources/package-info.java @@ -7,6 +7,8 @@ */ /** - * This package defines all classes required for Resource Sharing and Access Control + * This package defines all classes required for Resource Sharing and Access Control in OpenSearch + * + * @opensearch.experimental */ package org.opensearch.accesscontrol.resources; diff --git a/server/src/main/java/org/opensearch/plugins/ResourceAccessControlPlugin.java b/server/src/main/java/org/opensearch/plugins/ResourceAccessControlPlugin.java index 5e02024adc701..7d93065d6983c 100644 --- a/server/src/main/java/org/opensearch/plugins/ResourceAccessControlPlugin.java +++ b/server/src/main/java/org/opensearch/plugins/ResourceAccessControlPlugin.java @@ -22,7 +22,7 @@ * In clusters, where security plugin is disabled these requests will be pass-through via a No-op implementation. * There are 3 scope of sharing for a resource: Private, Restricted, Public. To learn more visit ... * If security plugin is disabled, all resources will be considered public by default. - * TODO: add documentation around "how to use" + * Refer to the sample-resource-plugin introduced here to understand the usage of this class. * * @opensearch.experimental */