public interface StoragePrivilegeHandler
extends org.apache.shardingsphere.spi.typed.TypedSPI
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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.
|
Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> diff(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
users - users from exteriordataSource - target data sourceSQLException - SQL exceptionvoid create(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
users - users to be createddataSource - target data sourceSQLException - SQL exceptionvoid grantAll(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
users - users to be granteddataSource - target data sourceSQLException - SQL exceptionMap<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser,NativePrivileges> load(Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users, DataSource dataSource) throws SQLException
users - users to be loadeddataSource - target data sourceSQLException - SQL exceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.