@ThreadSafe
public class ClusterClientTransactionAdmin
extends java.lang.Object
implements com.scalar.db.api.DistributedTransactionAdmin
DistributedTransactionAdmin
for ScalarDB Cluster.
It uses ClusterRequestRouter
with round-robin routing because any cluster node can
execute the administrative operations.
com.scalar.db.api.AuthAdmin.Privilege, com.scalar.db.api.AuthAdmin.User, com.scalar.db.api.AuthAdmin.UserOption
com.scalar.db.api.AbacAdmin.AccessMode, com.scalar.db.api.AbacAdmin.Compartment, com.scalar.db.api.AbacAdmin.Group, com.scalar.db.api.AbacAdmin.Level, com.scalar.db.api.AbacAdmin.NamespacePolicy, com.scalar.db.api.AbacAdmin.Policy, com.scalar.db.api.AbacAdmin.PolicyState, com.scalar.db.api.AbacAdmin.TablePolicy, com.scalar.db.api.AbacAdmin.UserTagInfo
Constructor and Description |
---|
ClusterClientTransactionAdmin(com.scalar.db.config.DatabaseConfig databaseConfig) |
Modifier and Type | Method and Description |
---|---|
void |
addCompartmentToUser(java.lang.String policyName,
java.lang.String username,
java.lang.String compartmentShortName,
com.scalar.db.api.AbacAdmin.AccessMode accessMode,
boolean defaultCompartment,
boolean rowCompartment) |
void |
addGroupToUser(java.lang.String policyName,
java.lang.String username,
java.lang.String groupShortName,
com.scalar.db.api.AbacAdmin.AccessMode accessMode,
boolean defaultGroup,
boolean rowGroup) |
void |
addNewColumnToTable(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
com.scalar.db.io.DataType columnType) |
void |
addNewColumnToTable(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
com.scalar.db.io.DataType columnType,
boolean encrypted) |
void |
alterUser(java.lang.String username,
java.lang.String password,
com.scalar.db.api.AuthAdmin.UserOption... userOptions) |
void |
close() |
boolean |
coordinatorTablesExist() |
void |
createCompartment(java.lang.String policyName,
java.lang.String compartmentShortName,
java.lang.String compartmentLongName) |
void |
createCoordinatorTables() |
void |
createCoordinatorTables(boolean ifNotExist) |
void |
createCoordinatorTables(boolean ifNotExist,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options) |
void |
createGroup(java.lang.String policyName,
java.lang.String groupShortName,
java.lang.String groupLongName,
java.lang.String parentGroupShortName) |
void |
createIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName) |
void |
createIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
boolean ifNotExists) |
void |
createIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
boolean ifNotExists,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createLevel(java.lang.String policyName,
java.lang.String levelShortName,
java.lang.String levelLongName,
int levelNumber) |
void |
createNamespace(java.lang.String namespaceName) |
void |
createNamespace(java.lang.String namespaceName,
boolean ifNotExists) |
void |
createNamespace(java.lang.String namespaceName,
boolean ifNotExists,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createNamespace(java.lang.String namespaceName,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createNamespacePolicy(java.lang.String namespacePolicyName,
java.lang.String policyName,
java.lang.String namespaceName) |
void |
createPolicy(java.lang.String policyName,
java.lang.String dataTagColumnName) |
void |
createReplicationTables() |
void |
createReplicationTables(boolean ifNotExist) |
void |
createReplicationTables(boolean ifNotExist,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createReplicationTables(java.util.Map<java.lang.String,java.lang.String> options) |
void |
createTable(java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.TableMetadata tableMetadata) |
void |
createTable(java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.TableMetadata tableMetadata,
boolean ifNotExists) |
void |
createTable(java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.TableMetadata tableMetadata,
boolean ifNotExists,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createTable(java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.TableMetadata tableMetadata,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
createTablePolicy(java.lang.String tablePolicyName,
java.lang.String policyName,
java.lang.String namespaceName,
java.lang.String tableName) |
void |
createUser(java.lang.String username,
java.lang.String password,
com.scalar.db.api.AuthAdmin.UserOption... userOptions) |
void |
disableNamespacePolicy(java.lang.String namespacePolicyName) |
void |
disablePolicy(java.lang.String policyName) |
void |
disableTablePolicy(java.lang.String tablePolicyName) |
void |
dropCompartment(java.lang.String policyName,
java.lang.String compartmentShortName) |
void |
dropCoordinatorTables() |
void |
dropCoordinatorTables(boolean ifExist) |
void |
dropGroup(java.lang.String policyName,
java.lang.String groupShortName) |
void |
dropIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName) |
void |
dropIndex(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName,
boolean ifExists) |
void |
dropLevel(java.lang.String policyName,
java.lang.String levelShortName) |
void |
dropNamespace(java.lang.String namespaceName) |
void |
dropNamespace(java.lang.String namespaceName,
boolean ifExists) |
void |
dropReplicationTables() |
void |
dropReplicationTables(boolean ifExist) |
void |
dropTable(java.lang.String namespaceName,
java.lang.String tableName) |
void |
dropTable(java.lang.String namespaceName,
java.lang.String tableName,
boolean ifExists) |
void |
dropUser(java.lang.String username) |
void |
dropUserTagInfoFromUser(java.lang.String policyName,
java.lang.String username) |
void |
enableNamespacePolicy(java.lang.String namespacePolicyName) |
void |
enablePolicy(java.lang.String policyName) |
void |
enableTablePolicy(java.lang.String tablePolicyName) |
java.util.Optional<com.scalar.db.api.AbacAdmin.Compartment> |
getCompartment(java.lang.String policyName,
java.lang.String compartmentShortName) |
java.util.List<com.scalar.db.api.AbacAdmin.Compartment> |
getCompartments(java.lang.String policyName) |
com.scalar.db.api.AuthAdmin.User |
getCurrentUser() |
java.util.Optional<com.scalar.db.api.AbacAdmin.Group> |
getGroup(java.lang.String policyName,
java.lang.String groupShortName) |
java.util.List<com.scalar.db.api.AbacAdmin.Group> |
getGroups(java.lang.String policyName) |
java.util.Optional<com.scalar.db.api.AbacAdmin.Level> |
getLevel(java.lang.String policyName,
java.lang.String levelShortName) |
java.util.List<com.scalar.db.api.AbacAdmin.Level> |
getLevels(java.lang.String policyName) |
java.util.Set<java.lang.String> |
getNamespaceNames() |
java.util.List<com.scalar.db.api.AbacAdmin.NamespacePolicy> |
getNamespacePolicies() |
java.util.Optional<com.scalar.db.api.AbacAdmin.NamespacePolicy> |
getNamespacePolicy(java.lang.String namespacePolicyName) |
java.util.Set<java.lang.String> |
getNamespaceTableNames(java.lang.String namespaceName) |
java.util.List<com.scalar.db.api.AbacAdmin.Policy> |
getPolicies() |
java.util.Optional<com.scalar.db.api.AbacAdmin.Policy> |
getPolicy(java.lang.String policyName) |
java.util.Set<com.scalar.db.api.AuthAdmin.Privilege> |
getPrivileges(java.lang.String username,
java.lang.String namespaceName) |
java.util.Set<com.scalar.db.api.AuthAdmin.Privilege> |
getPrivileges(java.lang.String username,
java.lang.String namespaceName,
java.lang.String tableName) |
com.scalar.db.api.TableMetadata |
getTableMetadata(java.lang.String namespaceName,
java.lang.String tableName) |
java.util.List<com.scalar.db.api.AbacAdmin.TablePolicy> |
getTablePolicies() |
java.util.Optional<com.scalar.db.api.AbacAdmin.TablePolicy> |
getTablePolicy(java.lang.String tablePolicyName) |
java.util.Optional<com.scalar.db.api.AuthAdmin.User> |
getUser(java.lang.String username) |
java.util.List<com.scalar.db.api.AuthAdmin.User> |
getUsers() |
java.util.Optional<com.scalar.db.api.AbacAdmin.UserTagInfo> |
getUserTagInfo(java.lang.String policyName,
java.lang.String username) |
void |
grant(java.lang.String username,
java.lang.String namespaceName,
com.scalar.db.api.AuthAdmin.Privilege... privileges) |
void |
grant(java.lang.String username,
java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.AuthAdmin.Privilege... privileges) |
void |
importTable(java.lang.String namespace,
java.lang.String table,
java.util.Map<java.lang.String,java.lang.String> options) |
void |
importTable(java.lang.String namespace,
java.lang.String table,
java.util.Map<java.lang.String,java.lang.String> options,
java.util.Map<java.lang.String,com.scalar.db.io.DataType> overrideColumnsType) |
boolean |
indexExists(java.lang.String namespaceName,
java.lang.String tableName,
java.lang.String columnName) |
boolean |
namespaceExists(java.lang.String namespaceName) |
void |
removeCompartmentFromUser(java.lang.String policyName,
java.lang.String username,
java.lang.String compartmentShortName) |
void |
removeGroupFromUser(java.lang.String policyName,
java.lang.String username,
java.lang.String groupShortName) |
void |
repairCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options) |
void |
repairReplicationTables(java.util.Map<java.lang.String,java.lang.String> options) |
void |
repairTable(java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.TableMetadata tableMetadata,
java.util.Map<java.lang.String,java.lang.String> options) |
boolean |
replicationTablesExist() |
void |
revoke(java.lang.String username,
java.lang.String namespaceName,
com.scalar.db.api.AuthAdmin.Privilege... privileges) |
void |
revoke(java.lang.String username,
java.lang.String namespaceName,
java.lang.String tableName,
com.scalar.db.api.AuthAdmin.Privilege... privileges) |
void |
setLevelsToUser(java.lang.String policyName,
java.lang.String username,
java.lang.String levelShortName,
java.lang.String defaultLevelShortName,
java.lang.String rowLevelShortName) |
boolean |
tableExists(java.lang.String namespaceName,
java.lang.String tableName) |
void |
truncateCoordinatorTables() |
void |
truncateReplicationTables() |
void |
truncateTable(java.lang.String namespaceName,
java.lang.String tableName) |
public ClusterClientTransactionAdmin(com.scalar.db.config.DatabaseConfig databaseConfig)
public void createNamespace(java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
createNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createNamespace(java.lang.String namespaceName, boolean ifNotExists) throws com.scalar.db.exception.storage.ExecutionException
createNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createNamespace(java.lang.String namespaceName, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createNamespace(java.lang.String namespaceName, boolean ifNotExists, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createTable(java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.TableMetadata tableMetadata) throws com.scalar.db.exception.storage.ExecutionException
createTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createTable(java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.TableMetadata tableMetadata, boolean ifNotExists) throws com.scalar.db.exception.storage.ExecutionException
createTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createTable(java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.TableMetadata tableMetadata, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createTable(java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.TableMetadata tableMetadata, boolean ifNotExists, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropTable(java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
dropTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropTable(java.lang.String namespaceName, java.lang.String tableName, boolean ifExists) throws com.scalar.db.exception.storage.ExecutionException
dropTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropNamespace(java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
dropNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropNamespace(java.lang.String namespaceName, boolean ifExists) throws com.scalar.db.exception.storage.ExecutionException
dropNamespace
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void truncateTable(java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
truncateTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName) throws com.scalar.db.exception.storage.ExecutionException
createIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, boolean ifNotExists) throws com.scalar.db.exception.storage.ExecutionException
createIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, boolean ifNotExists, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName) throws com.scalar.db.exception.storage.ExecutionException
dropIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void dropIndex(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, boolean ifExists) throws com.scalar.db.exception.storage.ExecutionException
dropIndex
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
@Nullable public com.scalar.db.api.TableMetadata getTableMetadata(java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
getTableMetadata
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public java.util.Set<java.lang.String> getNamespaceNames() throws com.scalar.db.exception.storage.ExecutionException
getNamespaceNames
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public java.util.Set<java.lang.String> getNamespaceTableNames(java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
getNamespaceTableNames
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public boolean namespaceExists(java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
namespaceExists
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public boolean tableExists(java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
tableExists
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public boolean indexExists(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName) throws com.scalar.db.exception.storage.ExecutionException
indexExists
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void repairTable(java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.TableMetadata tableMetadata, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
repairTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void addNewColumnToTable(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, com.scalar.db.io.DataType columnType) throws com.scalar.db.exception.storage.ExecutionException
addNewColumnToTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void addNewColumnToTable(java.lang.String namespaceName, java.lang.String tableName, java.lang.String columnName, com.scalar.db.io.DataType columnType, boolean encrypted) throws com.scalar.db.exception.storage.ExecutionException
addNewColumnToTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createCoordinatorTables() throws com.scalar.db.exception.storage.ExecutionException
createCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void createCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void createCoordinatorTables(boolean ifNotExist) throws com.scalar.db.exception.storage.ExecutionException
createCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void createCoordinatorTables(boolean ifNotExist, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropCoordinatorTables() throws com.scalar.db.exception.storage.ExecutionException
dropCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropCoordinatorTables(boolean ifExist) throws com.scalar.db.exception.storage.ExecutionException
dropCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void truncateCoordinatorTables() throws com.scalar.db.exception.storage.ExecutionException
truncateCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public boolean coordinatorTablesExist() throws com.scalar.db.exception.storage.ExecutionException
coordinatorTablesExist
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void repairCoordinatorTables(java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
repairCoordinatorTables
in interface com.scalar.db.api.DistributedTransactionAdmin
com.scalar.db.exception.storage.ExecutionException
public void createReplicationTables() throws com.scalar.db.exception.storage.ExecutionException
createReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void createReplicationTables(java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void createReplicationTables(boolean ifNotExist) throws com.scalar.db.exception.storage.ExecutionException
createReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void createReplicationTables(boolean ifNotExist, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
createReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropReplicationTables() throws com.scalar.db.exception.storage.ExecutionException
dropReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropReplicationTables(boolean ifExist) throws com.scalar.db.exception.storage.ExecutionException
dropReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void truncateReplicationTables() throws com.scalar.db.exception.storage.ExecutionException
truncateReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public boolean replicationTablesExist() throws com.scalar.db.exception.storage.ExecutionException
replicationTablesExist
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void repairReplicationTables(java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
repairReplicationTables
in interface com.scalar.db.api.ReplicationAdmin
com.scalar.db.exception.storage.ExecutionException
public void importTable(java.lang.String namespace, java.lang.String table, java.util.Map<java.lang.String,java.lang.String> options) throws com.scalar.db.exception.storage.ExecutionException
importTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void importTable(java.lang.String namespace, java.lang.String table, java.util.Map<java.lang.String,java.lang.String> options, java.util.Map<java.lang.String,com.scalar.db.io.DataType> overrideColumnsType) throws com.scalar.db.exception.storage.ExecutionException
importTable
in interface com.scalar.db.api.Admin
com.scalar.db.exception.storage.ExecutionException
public void createUser(java.lang.String username, @Nullable java.lang.String password, com.scalar.db.api.AuthAdmin.UserOption... userOptions) throws com.scalar.db.exception.storage.ExecutionException
createUser
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void alterUser(java.lang.String username, @Nullable java.lang.String password, com.scalar.db.api.AuthAdmin.UserOption... userOptions) throws com.scalar.db.exception.storage.ExecutionException
alterUser
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropUser(java.lang.String username) throws com.scalar.db.exception.storage.ExecutionException
dropUser
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void grant(java.lang.String username, java.lang.String namespaceName, com.scalar.db.api.AuthAdmin.Privilege... privileges) throws com.scalar.db.exception.storage.ExecutionException
grant
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void grant(java.lang.String username, java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.AuthAdmin.Privilege... privileges) throws com.scalar.db.exception.storage.ExecutionException
grant
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void revoke(java.lang.String username, java.lang.String namespaceName, com.scalar.db.api.AuthAdmin.Privilege... privileges) throws com.scalar.db.exception.storage.ExecutionException
revoke
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void revoke(java.lang.String username, java.lang.String namespaceName, java.lang.String tableName, com.scalar.db.api.AuthAdmin.Privilege... privileges) throws com.scalar.db.exception.storage.ExecutionException
revoke
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AuthAdmin.User> getUser(java.lang.String username) throws com.scalar.db.exception.storage.ExecutionException
getUser
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AuthAdmin.User> getUsers() throws com.scalar.db.exception.storage.ExecutionException
getUsers
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public com.scalar.db.api.AuthAdmin.User getCurrentUser() throws com.scalar.db.exception.storage.ExecutionException
getCurrentUser
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Set<com.scalar.db.api.AuthAdmin.Privilege> getPrivileges(java.lang.String username, java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
getPrivileges
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Set<com.scalar.db.api.AuthAdmin.Privilege> getPrivileges(java.lang.String username, java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
getPrivileges
in interface com.scalar.db.api.AuthAdmin
com.scalar.db.exception.storage.ExecutionException
public void createPolicy(java.lang.String policyName, @Nullable java.lang.String dataTagColumnName) throws com.scalar.db.exception.storage.ExecutionException
createPolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void enablePolicy(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
enablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void disablePolicy(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
disablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.Policy> getPolicy(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
getPolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.Policy> getPolicies() throws com.scalar.db.exception.storage.ExecutionException
getPolicies
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void createLevel(java.lang.String policyName, java.lang.String levelShortName, java.lang.String levelLongName, int levelNumber) throws com.scalar.db.exception.storage.ExecutionException
createLevel
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropLevel(java.lang.String policyName, java.lang.String levelShortName) throws com.scalar.db.exception.storage.ExecutionException
dropLevel
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.Level> getLevel(java.lang.String policyName, java.lang.String levelShortName) throws com.scalar.db.exception.storage.ExecutionException
getLevel
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.Level> getLevels(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
getLevels
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void createCompartment(java.lang.String policyName, java.lang.String compartmentShortName, java.lang.String compartmentLongName) throws com.scalar.db.exception.storage.ExecutionException
createCompartment
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropCompartment(java.lang.String policyName, java.lang.String compartmentShortName) throws com.scalar.db.exception.storage.ExecutionException
dropCompartment
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.Compartment> getCompartment(java.lang.String policyName, java.lang.String compartmentShortName) throws com.scalar.db.exception.storage.ExecutionException
getCompartment
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.Compartment> getCompartments(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
getCompartments
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void createGroup(java.lang.String policyName, java.lang.String groupShortName, java.lang.String groupLongName, @Nullable java.lang.String parentGroupShortName) throws com.scalar.db.exception.storage.ExecutionException
createGroup
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropGroup(java.lang.String policyName, java.lang.String groupShortName) throws com.scalar.db.exception.storage.ExecutionException
dropGroup
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.Group> getGroup(java.lang.String policyName, java.lang.String groupShortName) throws com.scalar.db.exception.storage.ExecutionException
getGroup
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.Group> getGroups(java.lang.String policyName) throws com.scalar.db.exception.storage.ExecutionException
getGroups
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void setLevelsToUser(java.lang.String policyName, java.lang.String username, java.lang.String levelShortName, @Nullable java.lang.String defaultLevelShortName, @Nullable java.lang.String rowLevelShortName) throws com.scalar.db.exception.storage.ExecutionException
setLevelsToUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void addCompartmentToUser(java.lang.String policyName, java.lang.String username, java.lang.String compartmentShortName, com.scalar.db.api.AbacAdmin.AccessMode accessMode, boolean defaultCompartment, boolean rowCompartment) throws com.scalar.db.exception.storage.ExecutionException
addCompartmentToUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void removeCompartmentFromUser(java.lang.String policyName, java.lang.String username, java.lang.String compartmentShortName) throws com.scalar.db.exception.storage.ExecutionException
removeCompartmentFromUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void addGroupToUser(java.lang.String policyName, java.lang.String username, java.lang.String groupShortName, com.scalar.db.api.AbacAdmin.AccessMode accessMode, boolean defaultGroup, boolean rowGroup) throws com.scalar.db.exception.storage.ExecutionException
addGroupToUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void removeGroupFromUser(java.lang.String policyName, java.lang.String username, java.lang.String groupShortName) throws com.scalar.db.exception.storage.ExecutionException
removeGroupFromUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void dropUserTagInfoFromUser(java.lang.String policyName, java.lang.String username) throws com.scalar.db.exception.storage.ExecutionException
dropUserTagInfoFromUser
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.UserTagInfo> getUserTagInfo(java.lang.String policyName, java.lang.String username) throws com.scalar.db.exception.storage.ExecutionException
getUserTagInfo
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void createNamespacePolicy(java.lang.String namespacePolicyName, java.lang.String policyName, java.lang.String namespaceName) throws com.scalar.db.exception.storage.ExecutionException
createNamespacePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void enableNamespacePolicy(java.lang.String namespacePolicyName) throws com.scalar.db.exception.storage.ExecutionException
enableNamespacePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void disableNamespacePolicy(java.lang.String namespacePolicyName) throws com.scalar.db.exception.storage.ExecutionException
disableNamespacePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.NamespacePolicy> getNamespacePolicy(java.lang.String namespacePolicyName) throws com.scalar.db.exception.storage.ExecutionException
getNamespacePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.NamespacePolicy> getNamespacePolicies() throws com.scalar.db.exception.storage.ExecutionException
getNamespacePolicies
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void createTablePolicy(java.lang.String tablePolicyName, java.lang.String policyName, java.lang.String namespaceName, java.lang.String tableName) throws com.scalar.db.exception.storage.ExecutionException
createTablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void enableTablePolicy(java.lang.String tablePolicyName) throws com.scalar.db.exception.storage.ExecutionException
enableTablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void disableTablePolicy(java.lang.String tablePolicyName) throws com.scalar.db.exception.storage.ExecutionException
disableTablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.Optional<com.scalar.db.api.AbacAdmin.TablePolicy> getTablePolicy(java.lang.String tablePolicyName) throws com.scalar.db.exception.storage.ExecutionException
getTablePolicy
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public java.util.List<com.scalar.db.api.AbacAdmin.TablePolicy> getTablePolicies() throws com.scalar.db.exception.storage.ExecutionException
getTablePolicies
in interface com.scalar.db.api.AbacAdmin
com.scalar.db.exception.storage.ExecutionException
public void close()
close
in interface com.scalar.db.api.DistributedTransactionAdmin
close
in interface java.lang.AutoCloseable