Skip to content

Commit

Permalink
init principals
Browse files Browse the repository at this point in the history
  • Loading branch information
UnsungHero97 committed Feb 16, 2022
1 parent bc05df6 commit f64c27e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.openlattice.authorization.DbCredentialService
import com.openlattice.authorization.HazelcastAclKeyReservationService
import com.openlattice.authorization.HazelcastAuthorizationService
import com.openlattice.authorization.HazelcastPrincipalsMapManager
import com.openlattice.authorization.Principals
import com.openlattice.authorization.PrincipalsMapManager
import com.openlattice.conductor.rpc.ConductorConfiguration
import com.openlattice.conductor.rpc.ConductorElasticsearchApi
Expand Down Expand Up @@ -334,7 +335,7 @@ class MechanicUpgradePod {
}

@Bean
fun principalsManager(): SecurePrincipalsManager {
fun principalService(): SecurePrincipalsManager {
return HazelcastPrincipalService(
hazelcastInstance,
aclKeyReservationService(),
Expand Down Expand Up @@ -368,14 +369,15 @@ class MechanicUpgradePod {
return V3StudyMigrationUpgrade(
toolbox,
rhizomeConfiguration,
principalsManager(),
principalService(),
dataQueryService(),
searchService()
)
}

@PostConstruct
fun post() {
Principals.init(principalService(), hazelcastInstance)
lateInitProvider.setDataSourceResolver(dataSourceResolver())
}
}

0 comments on commit f64c27e

Please sign in to comment.