Skip to content

Commit

Permalink
Changes package name for sample plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Oct 4, 2024
1 parent a395541 commit f692bc1
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion sample-resource-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.opensearch.gradle.test.RestIntegTestTask
opensearchplugin {
name 'opensearch-sample-resource-plugin'
description 'Sample plugin that extends OpenSearch Resource Plugin'
classname 'org.opensearch.security.sample.SampleResourcePlugin'
classname 'org.opensearch.sample.SampleResourcePlugin'
}

ext {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* GitHub history for details.
*/

package org.opensearch.security.sample;
package org.opensearch.sample;

import org.opensearch.core.common.io.stream.NamedWriteable;
import org.opensearch.core.xcontent.ToXContentFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
package org.opensearch.security.sample;
package org.opensearch.sample;

import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -44,13 +44,13 @@
import org.opensearch.repositories.RepositoriesService;
import org.opensearch.rest.RestController;
import org.opensearch.rest.RestHandler;
import org.opensearch.sample.actions.create.CreateSampleResourceAction;
import org.opensearch.sample.actions.create.CreateSampleResourceRestAction;
import org.opensearch.sample.actions.create.CreateSampleResourceTransportAction;
import org.opensearch.sample.actions.list.ListSampleResourceAction;
import org.opensearch.sample.actions.list.ListSampleResourceRestAction;
import org.opensearch.sample.actions.list.ListSampleResourceTransportAction;
import org.opensearch.script.ScriptService;
import org.opensearch.security.sample.actions.create.CreateSampleResourceAction;
import org.opensearch.security.sample.actions.create.CreateSampleResourceRestAction;
import org.opensearch.security.sample.actions.create.CreateSampleResourceTransportAction;
import org.opensearch.security.sample.actions.list.ListSampleResourceAction;
import org.opensearch.security.sample.actions.list.ListSampleResourceRestAction;
import org.opensearch.security.sample.actions.list.ListSampleResourceTransportAction;
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.watcher.ResourceWatcherService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* GitHub history for details.
*/

package org.opensearch.security.sample;
package org.opensearch.sample;

import org.opensearch.accesscontrol.resources.ResourceAccessScope;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import org.opensearch.action.ActionType;
import org.opensearch.security.sample.transport.CreateResourceResponse;
import org.opensearch.sample.transport.CreateResourceResponse;

/**
* Action to create a sample resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import java.io.IOException;

import org.opensearch.action.ActionRequest;
import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.core.common.io.stream.StreamOutput;
import org.opensearch.security.sample.Resource;
import org.opensearch.sample.Resource;

/**
* Request object for CreateSampleResource transport action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import java.io.IOException;
import java.util.List;
Expand All @@ -17,7 +17,7 @@
import org.opensearch.rest.BaseRestHandler;
import org.opensearch.rest.RestRequest;
import org.opensearch.rest.action.RestToXContentListener;
import org.opensearch.security.sample.transport.CreateResourceRequest;
import org.opensearch.sample.transport.CreateResourceRequest;

import static java.util.Collections.singletonList;
import static org.opensearch.rest.RestRequest.Method.POST;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import org.opensearch.action.support.ActionFilters;
import org.opensearch.client.Client;
import org.opensearch.common.inject.Inject;
import org.opensearch.security.sample.transport.CreateResourceTransportAction;
import org.opensearch.sample.transport.CreateResourceTransportAction;
import org.opensearch.transport.TransportService;

import static org.opensearch.security.sample.SampleResourcePlugin.RESOURCE_INDEX_NAME;
import static org.opensearch.sample.SampleResourcePlugin.RESOURCE_INDEX_NAME;

/**
* Transport action for CreateSampleResource.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* GitHub history for details.
*/

package org.opensearch.security.sample.actions.create;
package org.opensearch.sample.actions.create;

import java.io.IOException;

import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.core.common.io.stream.StreamOutput;
import org.opensearch.core.xcontent.XContentBuilder;
import org.opensearch.security.sample.Resource;
import org.opensearch.sample.Resource;

import static org.opensearch.security.sample.SampleResourcePlugin.RESOURCE_INDEX_NAME;
import static org.opensearch.sample.SampleResourcePlugin.RESOURCE_INDEX_NAME;

public class SampleResource extends Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.list;
package org.opensearch.sample.actions.list;

import org.opensearch.action.ActionType;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.list;
package org.opensearch.sample.actions.list;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.list;
package org.opensearch.sample.actions.list;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.list;
package org.opensearch.sample.actions.list;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.actions.list;
package org.opensearch.sample.actions.list;

import org.opensearch.action.search.SearchRequest;
import org.opensearch.action.search.SearchResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
* compatible open source license.
*/

package org.opensearch.security.sample.transport;
package org.opensearch.sample.transport;

import java.io.IOException;

import org.opensearch.action.ActionRequest;
import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.core.common.io.stream.StreamOutput;
import org.opensearch.security.sample.Resource;
import org.opensearch.sample.Resource;

/**
* Request object for CreateSampleResource transport action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.transport;
package org.opensearch.sample.transport;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* compatible open source license.
*/

package org.opensearch.security.sample.transport;
package org.opensearch.sample.transport;

import java.io.IOException;
import java.util.List;
Expand All @@ -29,8 +29,8 @@
import org.opensearch.core.action.ActionListener;
import org.opensearch.core.common.io.stream.Writeable;
import org.opensearch.core.xcontent.ToXContent;
import org.opensearch.security.sample.Resource;
import org.opensearch.security.sample.SampleResourcePlugin;
import org.opensearch.sample.Resource;
import org.opensearch.sample.SampleResourcePlugin;
import org.opensearch.tasks.Task;
import org.opensearch.transport.TransportService;

Expand Down

0 comments on commit f692bc1

Please sign in to comment.