Skip to content

Commit

Permalink
Move security specific classes out of spi
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Dec 23, 2024
1 parent 7c90e88 commit 0d7c1c5
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

import org.opensearch.core.xcontent.ToXContentFragment;
import org.opensearch.core.xcontent.XContentBuilder;
import org.opensearch.security.spi.ResourceUser;
import org.opensearch.security.spi.ShareWith;
import org.opensearch.security.rest.resource.ShareWith;

public class ResourceSharingEntry implements ToXContentFragment {
private final String resourceIndex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
import org.opensearch.core.xcontent.ToXContent;
import org.opensearch.index.engine.Engine;
import org.opensearch.index.shard.IndexingOperationListener;
import org.opensearch.security.spi.ResourceUser;
import org.opensearch.security.spi.ShareWith;
import org.opensearch.security.rest.resource.ShareWith;
import org.opensearch.security.support.ConfigConstants;
import org.opensearch.security.user.User;
import org.opensearch.threadpool.ThreadPool;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* compatible open source license.
*/

package org.opensearch.security.spi;
package org.opensearch.security.resource;

import java.io.IOException;
import java.util.HashSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import org.opensearch.index.query.QueryBuilders;
import org.opensearch.search.SearchHit;
import org.opensearch.search.builder.SearchSourceBuilder;
import org.opensearch.security.rest.resource.ShareWith;
import org.opensearch.security.spi.Resource;
import org.opensearch.security.spi.ResourceFactory;
import org.opensearch.security.spi.ResourceSharingService;
import org.opensearch.security.spi.ShareWith;
import org.opensearch.security.support.ConfigConstants;
import org.opensearch.security.support.WildcardMatcher;
import org.opensearch.security.user.User;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
package org.opensearch.security.spi;
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

package org.opensearch.security.rest.resource;

import java.io.IOException;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
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.spi.ShareWith;

/**
* Request object for UpdateResourceSharing transport action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.opensearch.rest.RestRequest;
import org.opensearch.rest.action.RestToXContentListener;
import org.opensearch.security.spi.ResourceSharingExtension;
import org.opensearch.security.spi.ShareWith;

import static org.opensearch.rest.RestRequest.Method.PUT;
import static org.opensearch.security.dlic.rest.support.Utils.addRoutesPrefix;
Expand Down

0 comments on commit 0d7c1c5

Please sign in to comment.