-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces resource permissions for detectors
Signed-off-by: Darshit Chanpura <[email protected]>
- Loading branch information
1 parent
926b2e1
commit 687e6d9
Showing
11 changed files
with
144 additions
and
168 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/main/java/org/opensearch/ad/constant/ADResourceScope.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.opensearch.ad.constant; | ||
|
||
import org.opensearch.accesscontrol.resources.ResourceAccessScope; | ||
|
||
public enum ADResourceScope implements ResourceAccessScope { | ||
AD_READ_ACCESS("ad_read_access"), | ||
AD_FULL_ACCESS("ad_full_access"); | ||
|
||
private final String scopeName; | ||
|
||
ADResourceScope(String scopeName) { | ||
this.scopeName = scopeName; | ||
} | ||
|
||
public String getScopeName() { | ||
return scopeName; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.