Uses of Class
io.trino.plugin.hive.metastore.HivePrincipal
Packages that use HivePrincipal
Package
Description
-
Uses of HivePrincipal in io.trino.plugin.hive
Methods in io.trino.plugin.hive with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidHiveMetastoreClosure.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidHiveMetastoreClosure.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) HiveMetastoreClosure.listRoleGrants(HivePrincipal principal) voidHiveMetastoreClosure.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidHiveMetastoreClosure.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidHiveMetastoreClosure.setDatabaseOwner(String databaseName, HivePrincipal principal) voidHiveMetastoreClosure.setTableOwner(String databaseName, String tableName, HivePrincipal principal) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore
Methods in io.trino.plugin.hive.metastore that return HivePrincipalModifier and TypeMethodDescriptionstatic HivePrincipalHivePrincipal.from(ConnectorIdentity identity) static HivePrincipalHivePrincipal.from(TrinoPrincipal trinoPrincipal) HivePrivilegeInfo.getGrantee()HivePrivilegeInfo.getGrantor()Methods in io.trino.plugin.hive.metastore that return types with arguments of type HivePrincipalModifier and TypeMethodDescriptionstatic Set<HivePrincipal>HivePrincipal.from(Set<TrinoPrincipal> trinoPrincipals) SemiTransactionalHiveMetastore.getDatabaseOwner(String databaseName) UserTableKey.getPrincipal()Methods in io.trino.plugin.hive.metastore with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidForwardingHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidSemiTransactionalHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidForwardingHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidSemiTransactionalHiveMetastore.grantTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) ForwardingHiveMetastore.listRoleGrants(HivePrincipal principal) HiveMetastore.listRoleGrants(HivePrincipal principal) SemiTransactionalHiveMetastore.listRoleGrants(HivePrincipal principal) voidForwardingHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidSemiTransactionalHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidForwardingHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidSemiTransactionalHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidForwardingHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidSemiTransactionalHiveMetastore.setDatabaseOwner(String source, HivePrincipal principal) voidForwardingHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) voidHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) voidSemiTransactionalHiveMetastore.setTableOwner(String schema, String table, HivePrincipal principal) Method parameters in io.trino.plugin.hive.metastore with type arguments of type HivePrincipalModifier and TypeMethodDescriptionSemiTransactionalHiveMetastore.listTablePrivileges(String databaseName, String tableName, Optional<HivePrincipal> principal) Constructors in io.trino.plugin.hive.metastore with parameters of type HivePrincipalModifierConstructorDescriptionHivePrivilegeInfo(HivePrivilegeInfo.HivePrivilege hivePrivilege, boolean grantOption, HivePrincipal grantor, HivePrincipal grantee) Constructor parameters in io.trino.plugin.hive.metastore with type arguments of type HivePrincipalModifierConstructorDescriptionUserTableKey(Optional<HivePrincipal> principal, String database, String table, Optional<String> owner) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore.cache
Methods in io.trino.plugin.hive.metastore.cache with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidCachingHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidCachingHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) CachingHiveMetastore.listRoleGrants(HivePrincipal principal) voidCachingHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidCachingHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidCachingHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidCachingHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore.file
Methods in io.trino.plugin.hive.metastore.file that return HivePrincipalMethods in io.trino.plugin.hive.metastore.file with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidFileHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidFileHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) FileHiveMetastore.listRoleGrants(HivePrincipal principal) voidFileHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidFileHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidFileHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidFileHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) Constructors in io.trino.plugin.hive.metastore.file with parameters of type HivePrincipalModifierConstructorDescriptionPermissionMetadata(HivePrivilegeInfo.HivePrivilege permission, boolean grantOption, HivePrincipal grantee) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore.glue
Methods in io.trino.plugin.hive.metastore.glue with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidGlueHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidGlueHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) GlueHiveMetastore.listRoleGrants(HivePrincipal principal) voidGlueHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidGlueHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidGlueHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidGlueHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore.recording
Methods in io.trino.plugin.hive.metastore.recording that return types with arguments of type HivePrincipalMethods in io.trino.plugin.hive.metastore.recording with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidRecordingHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidRecordingHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) HiveMetastoreRecording.listRoleGrants(HivePrincipal principal, Supplier<Set<RoleGrant>> valueSupplier) RecordingHiveMetastore.listRoleGrants(HivePrincipal principal) voidRecordingHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidRecordingHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidRecordingHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidRecordingHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) -
Uses of HivePrincipal in io.trino.plugin.hive.metastore.thrift
Methods in io.trino.plugin.hive.metastore.thrift that return types with arguments of type HivePrincipalModifier and TypeMethodDescriptionstatic Stream<HivePrincipal>ThriftMetastoreUtil.listEnabledPrincipals(ConnectorIdentity identity, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) Methods in io.trino.plugin.hive.metastore.thrift with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidBridgingHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidThriftHiveMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidThriftMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidBridgingHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidThriftHiveMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidThriftMetastore.grantTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) static booleanThriftMetastoreUtil.isRoleApplicable(HivePrincipal principal, String role, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) ThriftMetastoreUtil.listApplicableRoles(HivePrincipal principal, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) BridgingHiveMetastore.listRoleGrants(HivePrincipal principal) ThriftHiveMetastore.listRoleGrants(HivePrincipal principal) ThriftMetastore.listRoleGrants(HivePrincipal principal) voidBridgingHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidThriftHiveMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidThriftMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) voidBridgingHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidThriftHiveMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidThriftMetastore.revokeTablePrivileges(String databaseName, String tableName, String tableOwner, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) voidBridgingHiveMetastore.setDatabaseOwner(String databaseName, HivePrincipal principal) voidBridgingHiveMetastore.setTableOwner(String databaseName, String tableName, HivePrincipal principal) Method parameters in io.trino.plugin.hive.metastore.thrift with type arguments of type HivePrincipalModifier and TypeMethodDescriptionstatic booleanThriftMetastoreUtil.isRoleApplicable(HivePrincipal principal, String role, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) static booleanThriftMetastoreUtil.isRoleEnabled(ConnectorIdentity identity, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants, String role) ThriftMetastoreUtil.listApplicableRoles(HivePrincipal principal, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) static Stream<HivePrincipal>ThriftMetastoreUtil.listEnabledPrincipals(ConnectorIdentity identity, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) ThriftMetastoreUtil.listEnabledRoles(ConnectorIdentity identity, Function<HivePrincipal, Set<RoleGrant>> listRoleGrants) static Set<HivePrivilegeInfo>ThriftMetastoreUtil.parsePrivilege(io.trino.hive.thrift.metastore.PrivilegeGrantInfo userGrant, Optional<HivePrincipal> grantee) -
Uses of HivePrincipal in io.trino.plugin.hive.security
Methods in io.trino.plugin.hive.security that return types with arguments of type HivePrincipalModifier and TypeMethodDescriptionSqlStandardAccessControlMetadataMetastore.getDatabaseOwner(String databaseName) default Optional<HivePrincipal>AccessControlMetadata.getSchemaOwner(ConnectorSession session, String schemaName) Get the owner on the specified schemaSqlStandardAccessControlMetadata.getSchemaOwner(ConnectorSession session, String schemaName) Methods in io.trino.plugin.hive.security with parameters of type HivePrincipalModifier and TypeMethodDescriptionvoidSqlStandardAccessControlMetadataMetastore.grantRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) default voidAccessControlMetadata.grantSchemaPrivileges(ConnectorSession session, String schemaName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schemadefault voidAccessControlMetadata.grantTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tablevoidSqlStandardAccessControlMetadata.grantTablePrivileges(ConnectorSession session, SchemaTableName schemaTableName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) voidSqlStandardAccessControlMetadataMetastore.grantTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) AccessControlMetadata.listApplicableRoles(ConnectorSession session, HivePrincipal principal) List applicable roles, including the transitive grants, for the specified principalSqlStandardAccessControlMetadata.listApplicableRoles(ConnectorSession session, HivePrincipal principal) AccessControlMetadata.listRoleGrants(ConnectorSession session, HivePrincipal principal) List role grants for a given principal, not recursively.SemiTransactionalSqlStandardAccessControlMetastore.listRoleGrants(ConnectorSecurityContext context, HivePrincipal principal) SqlStandardAccessControlMetadata.listRoleGrants(ConnectorSession session, HivePrincipal principal) SqlStandardAccessControlMetadataMetastore.listRoleGrants(HivePrincipal principal) SqlStandardAccessControlMetastore.listRoleGrants(ConnectorSecurityContext context, HivePrincipal principal) voidSqlStandardAccessControlMetadataMetastore.revokeRoles(Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, HivePrincipal grantor) default voidAccessControlMetadata.revokeSchemaPrivileges(ConnectorSession session, String schemaName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified userdefault voidAccessControlMetadata.revokeTablePrivileges(ConnectorSession session, SchemaTableName tableName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified uservoidSqlStandardAccessControlMetadata.revokeTablePrivileges(ConnectorSession session, SchemaTableName schemaTableName, Set<Privilege> privileges, HivePrincipal grantee, boolean grantOption) voidSqlStandardAccessControlMetadataMetastore.revokeTablePrivileges(String databaseName, String tableName, HivePrincipal grantee, HivePrincipal grantor, Set<HivePrivilegeInfo.HivePrivilege> privileges, boolean grantOption) Method parameters in io.trino.plugin.hive.security with type arguments of type HivePrincipalModifier and TypeMethodDescriptiondefault voidAccessControlMetadata.createRole(ConnectorSession session, String role, Optional<HivePrincipal> grantor) Creates the specified role.voidSqlStandardAccessControlMetadata.createRole(ConnectorSession session, String role, Optional<HivePrincipal> grantor) default voidAccessControlMetadata.grantRoles(ConnectorSession connectorSession, Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, Optional<HivePrincipal> grantor) Grants the specified roles to the specified granteesvoidSqlStandardAccessControlMetadata.grantRoles(ConnectorSession session, Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, Optional<HivePrincipal> grantor) SemiTransactionalSqlStandardAccessControlMetastore.listTablePrivileges(ConnectorSecurityContext context, String databaseName, String tableName, Optional<HivePrincipal> principal) SqlStandardAccessControlMetadataMetastore.listTablePrivileges(String databaseName, String tableName, Optional<HivePrincipal> principal) SqlStandardAccessControlMetastore.listTablePrivileges(ConnectorSecurityContext context, String databaseName, String tableName, Optional<HivePrincipal> principal) default voidAccessControlMetadata.revokeRoles(ConnectorSession connectorSession, Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, Optional<HivePrincipal> grantor) Revokes the specified roles from the specified granteesvoidSqlStandardAccessControlMetadata.revokeRoles(ConnectorSession session, Set<String> roles, Set<HivePrincipal> grantees, boolean adminOption, Optional<HivePrincipal> grantor)