public final class SQLServerPrivilegeHandler extends Object implements StoragePrivilegeHandler
| Constructor and Description |
|---|
SQLServerPrivilegeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users,
DataSource dataSource)
Create users in storage.
|
Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> |
diff(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users,
DataSource dataSource)
Differentiate users between storage and exterior.
|
String |
getType() |
void |
grantAll(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users,
DataSource dataSource)
Grant all privileges to users.
|
Map<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser,NativePrivileges> |
load(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users,
DataSource dataSource)
Load privileges from storage.
|
public Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> diff(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
StoragePrivilegeHandlerdiff in interface StoragePrivilegeHandlerusers - users from exteriordataSource - target data sourceSQLException - SQL exceptionpublic void create(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
StoragePrivilegeHandlercreate in interface StoragePrivilegeHandlerusers - users to be createddataSource - target data sourceSQLException - SQL exceptionpublic void grantAll(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
StoragePrivilegeHandlergrantAll in interface StoragePrivilegeHandlerusers - users to be granteddataSource - target data sourceSQLException - SQL exceptionpublic Map<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser,NativePrivileges> load(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
StoragePrivilegeHandlerload in interface StoragePrivilegeHandlerusers - users to be loadeddataSource - target data sourceSQLException - SQL exceptionpublic String getType()
getType in interface org.apache.shardingsphere.infra.spi.typed.TypedSPICopyright © 2021 The Apache Software Foundation. All rights reserved.