Skip to content

Commit a31425c

Browse files
committed
Rename extension points
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 50b0bc0 commit a31425c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

server/src/main/java/org/opensearch/identity/ScheduledJobIdentityManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ public interface ScheduledJobIdentityManager {
2626
* @param indexName The index where scheduled job details is stored
2727
* @param operator (Optional) The operator of the scheduled job, if not present it will default to currently authenticated user
2828
*/
29-
void saveUserDetails(String jobId, String indexName, Optional<ScheduledJobOperator> operator);
29+
void associateJobWithOperator(String jobId, String indexName, Optional<ScheduledJobOperator> operator);
3030

3131
/**
3232
* Method implemented by an identity plugin to delete user information for a scheduled job
3333
* @param jobId The id of the scheduled job
3434
* @param indexName The index where scheduled job details is stored
3535
*/
36-
void deleteUserDetails(String jobId, String indexName);
36+
void deleteJobOperatorEntry(String jobId, String indexName);
3737

3838
/**
3939
* Method implemented by an identity plugin to issue an access token for a scheduler job runner
4040
* @param jobId The id of the scheduled job
4141
* @param indexName The index where scheduled job details is stored
4242
* @param extensionUniqueId The unique id of an extension
4343
*/
44-
AuthToken issueAccessTokenOnBehalfOfUser(String jobId, String indexName, Optional<String> extensionUniqueId);
44+
AuthToken issueAccessTokenOnBehalfOfOperator(String jobId, String indexName, Optional<String> extensionUniqueId);
4545
}

server/src/main/java/org/opensearch/identity/noop/NoopScheduledJobIdentityManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
*/
2424
public class NoopScheduledJobIdentityManager implements ScheduledJobIdentityManager {
2525
@Override
26-
public void saveUserDetails(String jobId, String indexName, Optional<ScheduledJobOperator> operator) {
26+
public void associateJobWithOperator(String jobId, String indexName, Optional<ScheduledJobOperator> operator) {
2727
return;
2828
}
2929

3030
@Override
31-
public void deleteUserDetails(String jobId, String indexName) {
31+
public void deleteJobOperatorEntry(String jobId, String indexName) {
3232
return;
3333
}
3434

3535
@Override
36-
public AuthToken issueAccessTokenOnBehalfOfUser(String jobId, String indexName, Optional<String> extensionUniqueId) {
36+
public AuthToken issueAccessTokenOnBehalfOfOperator(String jobId, String indexName, Optional<String> extensionUniqueId) {
3737
return new NoopAuthToken();
3838
}
3939
}

0 commit comments

Comments
 (0)