From 285dbbf3a04fae274d1e77565a31b5a74a6c67ae Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 12 Dec 2024 16:32:11 -0500 Subject: [PATCH] reorg Signed-off-by: Craig Perkins --- .../security/sampleextension/SampleExtensionPlugin.java | 6 +++--- .../{ => sharing}/UpdateSampleResourceSharingAction.java | 2 +- .../UpdateSampleResourceSharingRestAction.java | 3 ++- .../UpdateSampleResourceSharingTransportAction.java | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) rename sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/{ => sharing}/UpdateSampleResourceSharingAction.java (93%) rename sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/{ => sharing}/UpdateSampleResourceSharingRestAction.java (94%) rename sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/{ => sharing}/UpdateSampleResourceSharingTransportAction.java (90%) diff --git a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/SampleExtensionPlugin.java b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/SampleExtensionPlugin.java index f014e39980..c6d541f7f0 100644 --- a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/SampleExtensionPlugin.java +++ b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/SampleExtensionPlugin.java @@ -45,9 +45,9 @@ import org.opensearch.security.sampleextension.actions.ListSampleResourceRestAction; import org.opensearch.security.sampleextension.actions.ListSampleResourceTransportAction; import org.opensearch.security.sampleextension.actions.SampleResource; -import org.opensearch.security.sampleextension.actions.UpdateSampleResourceSharingAction; -import org.opensearch.security.sampleextension.actions.UpdateSampleResourceSharingRestAction; -import org.opensearch.security.sampleextension.actions.UpdateSampleResourceSharingTransportAction; +import org.opensearch.security.sampleextension.actions.sharing.UpdateSampleResourceSharingAction; +import org.opensearch.security.sampleextension.actions.sharing.UpdateSampleResourceSharingRestAction; +import org.opensearch.security.sampleextension.actions.sharing.UpdateSampleResourceSharingTransportAction; import org.opensearch.security.sampleextension.actions.update.UpdateSampleResourceAction; import org.opensearch.security.sampleextension.actions.update.UpdateSampleResourceRestAction; import org.opensearch.security.sampleextension.actions.update.UpdateSampleResourceTransportAction; diff --git a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingAction.java b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingAction.java similarity index 93% rename from sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingAction.java rename to sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingAction.java index 4a70d8ff04..4fcd311d3c 100644 --- a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingAction.java +++ b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingAction.java @@ -6,7 +6,7 @@ * compatible open source license. */ -package org.opensearch.security.sampleextension.actions; +package org.opensearch.security.sampleextension.actions.sharing; import org.opensearch.action.ActionType; import org.opensearch.security.spi.actions.UpdateResourceSharingResponse; diff --git a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingRestAction.java b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingRestAction.java similarity index 94% rename from sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingRestAction.java rename to sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingRestAction.java index 0b55ff83da..efb68b134d 100644 --- a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingRestAction.java +++ b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingRestAction.java @@ -6,7 +6,7 @@ * compatible open source license. */ -package org.opensearch.security.sampleextension.actions; +package org.opensearch.security.sampleextension.actions.sharing; import java.io.IOException; import java.util.List; @@ -17,6 +17,7 @@ import org.opensearch.rest.BaseRestHandler; import org.opensearch.rest.RestRequest; import org.opensearch.rest.action.RestToXContentListener; +import org.opensearch.security.sampleextension.actions.SampleResource; import org.opensearch.security.spi.ShareWith; import org.opensearch.security.spi.actions.UpdateResourceSharingRequest; diff --git a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingTransportAction.java b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingTransportAction.java similarity index 90% rename from sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingTransportAction.java rename to sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingTransportAction.java index 4c54465467..26803dcd02 100644 --- a/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/UpdateSampleResourceSharingTransportAction.java +++ b/sample-extension-plugin/src/main/java/org/opensearch/security/sampleextension/actions/sharing/UpdateSampleResourceSharingTransportAction.java @@ -6,7 +6,7 @@ * compatible open source license. */ -package org.opensearch.security.sampleextension.actions; +package org.opensearch.security.sampleextension.actions.sharing; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -14,6 +14,7 @@ import org.opensearch.action.support.ActionFilters; import org.opensearch.client.Client; import org.opensearch.common.inject.Inject; +import org.opensearch.security.sampleextension.actions.SampleResource; import org.opensearch.security.spi.ShareWith; import org.opensearch.security.spi.actions.UpdateResourceSharingTransportAction; import org.opensearch.transport.TransportService;