83544231552897c38c18fd84f08f375757b67614
Files Diff
- Added: 0
 - Removed: 0
 - Renamed: 0
 - Modified: 8
 
Refactorings reported:
| Refactoring Name | Occurences | ||
|---|---|---|---|
| Rename Method | 1 | ||
| Rename Method public getIdentity() : ConnectorIdentity renamed to public getGrantee() : PrestoPrincipal in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Parameter Type | 3 | ||
| Change Parameter Type privilegeInfo : Set<PrivilegeInfo> to privilegeInfo : PrivilegeInfo in method public GrantInfo(privilegeInfo PrivilegeInfo, grantee PrestoPrincipal, schemaTableName SchemaTableName, grantor Optional<PrestoPrincipal>, withHierarchy Optional<Boolean>) in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Parameter Type grantee : ConnectorIdentity to grantee : PrestoPrincipal in method public GrantInfo(privilegeInfo PrivilegeInfo, grantee PrestoPrincipal, schemaTableName SchemaTableName, grantor Optional<PrestoPrincipal>, withHierarchy Optional<Boolean>) in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Parameter Type grantor : Optional<ConnectorIdentity> to grantor : Optional<PrestoPrincipal> in method public GrantInfo(privilegeInfo PrivilegeInfo, grantee PrestoPrincipal, schemaTableName SchemaTableName, grantor Optional<PrestoPrincipal>, withHierarchy Optional<Boolean>) in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Rename Variable | 1 | ||
| Rename Variable grantInfos : ImmutableList.Builder<GrantInfo> to result : ImmutableList.Builder<GrantInfo> in method public listTablePrivileges(session ConnectorSession, schemaTablePrefix SchemaTablePrefix) : List<GrantInfo> in class com.facebook.presto.hive.HiveMetadata | From | To | |
| Change Return Type | 3 | ||
| Change Return Type Optional<ConnectorIdentity> to Optional<PrestoPrincipal> in method public getGrantor() : Optional<PrestoPrincipal> in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Return Type ConnectorIdentity to PrestoPrincipal in method public getGrantee() : PrestoPrincipal in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Return Type Set<PrivilegeInfo> to PrivilegeInfo in method public getPrivilegeInfo() : PrivilegeInfo in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Attribute Type | 3 | ||
| Change Attribute Type grantee : ConnectorIdentity to grantee : PrestoPrincipal in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Attribute Type privilegeInfo : Set<PrivilegeInfo> to privilegeInfo : PrivilegeInfo in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Change Attribute Type grantor : Optional<ConnectorIdentity> to grantor : Optional<PrestoPrincipal> in class com.facebook.presto.spi.security.GrantInfo | From | To | |
| Extract Method | 1 | ||
| Extract Method public listEnabledPrincipals(metastore SemiTransactionalHiveMetastore, identity ConnectorIdentity) : Set<PrestoPrincipal> extracted from public listEnabledTablePrivileges(metastore SemiTransactionalHiveMetastore, databaseName String, tableName String, identity ConnectorIdentity) : Set<HivePrivilegeInfo> in class com.facebook.presto.hive.metastore.thrift.ThriftMetastoreUtil | From | To | |
| Extract And Move Method | 1 | ||
| Extract And Move Method public listEnabledPrincipals(metastore SemiTransactionalHiveMetastore, identity ConnectorIdentity) : Set<PrestoPrincipal> extracted from public listTablePrivileges(session ConnectorSession, schemaTablePrefix SchemaTablePrefix) : List<GrantInfo> in class com.facebook.presto.hive.HiveMetadata & moved to class com.facebook.presto.hive.metastore.thrift.ThriftMetastoreUtil | From | To |