Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brfrn169 committed Nov 25, 2023
1 parent ca46a9d commit b8c724e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/src/main/java/com/scalar/db/api/AuthAdmin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.scalar.db.api;

import com.scalar.db.exception.storage.ExecutionException;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Nullable;

/**
Expand All @@ -17,10 +17,10 @@ public interface AuthAdmin {
*
* @param username the username
* @param password the password. If null, the user is created without a password
* @param userOption the user options
* @param userOptions the user options
* @throws ExecutionException if the operation fails
*/
default void createUser(String username, @Nullable String password, UserOption... userOption)
default void createUser(String username, @Nullable String password, UserOption... userOptions)
throws ExecutionException {
throw new UnsupportedOperationException("Not supported in the community edition");
}
Expand All @@ -31,10 +31,10 @@ default void createUser(String username, @Nullable String password, UserOption..
*
* @param username the username
* @param password the password. If null, the password is not changed
* @param userOption the user options
* @param userOptions the user options
* @throws ExecutionException if the operation fails
*/
default void alterUser(String username, @Nullable String password, UserOption... userOption)
default void alterUser(String username, @Nullable String password, UserOption... userOptions)
throws ExecutionException {
throw new UnsupportedOperationException("Not supported in the community edition");
}
Expand Down Expand Up @@ -123,7 +123,7 @@ default List<User> getUsers() throws ExecutionException {
* @return a set of privileges
* @throws ExecutionException if the user does not exist or the operation fails
*/
default EnumSet<Privilege> getPrivileges(String username, String namespaceName)
default Set<Privilege> getPrivileges(String username, String namespaceName)
throws ExecutionException {
throw new UnsupportedOperationException("Not supported in the community edition");
}
Expand All @@ -137,13 +137,13 @@ default EnumSet<Privilege> getPrivileges(String username, String namespaceName)
* @return a set of privileges
* @throws ExecutionException if the user does not exist or the operation fails
*/
default EnumSet<Privilege> getPrivileges(String username, String namespaceName, String tableName)
default Set<Privilege> getPrivileges(String username, String namespaceName, String tableName)
throws ExecutionException {
throw new UnsupportedOperationException("Not supported in the community edition");
}

interface User {
String getUsername();
String getName();

boolean isSuperuser();
}
Expand Down

0 comments on commit b8c724e

Please sign in to comment.