public final class AuthorityRule extends Object implements org.apache.shardingsphere.infra.rule.identifier.scope.GlobalRule
| 构造器和说明 |
|---|
AuthorityRule(AuthorityRuleConfiguration ruleConfig,
Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases) |
| 限定符和类型 | 方法和说明 |
|---|---|
Optional<ShardingSpherePrivileges> |
findPrivileges(org.apache.shardingsphere.infra.metadata.user.Grantee grantee)
Find Privileges.
|
Optional<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> |
findUser(org.apache.shardingsphere.infra.metadata.user.Grantee grantee)
Find user.
|
String |
getType() |
void |
refresh(Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases,
Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users)
Refresh authority.
|
public AuthorityRule(AuthorityRuleConfiguration ruleConfig, Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases)
public Optional<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> findUser(org.apache.shardingsphere.infra.metadata.user.Grantee grantee)
grantee - grantee userpublic Optional<ShardingSpherePrivileges> findPrivileges(org.apache.shardingsphere.infra.metadata.user.Grantee grantee)
grantee - granteepublic void refresh(Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases, Collection<org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser> users)
databases - databasesusers - userspublic String getType()
getType 在接口中 org.apache.shardingsphere.infra.rule.ShardingSphereRuleCopyright © 2022 The Apache Software Foundation. All rights reserved.