private UserAggregator aggregationFunction( QualifiedName name, final AccessMode mode ) throws ProcedureException { ktx.assertOpen(); SecurityContext securityContext = ktx.securityContext().withMode( mode ); try ( KernelTransaction.Revertable ignore = ktx.overrideWith( securityContext ) ) { return procedures.createAggregationFunction( prepareContext( securityContext ), name ); } }
private UserAggregator aggregationFunction( int id, final AccessMode mode ) throws ProcedureException { ktx.assertOpen(); SecurityContext securityContext = ktx.securityContext().withMode( mode ); try ( KernelTransaction.Revertable ignore = ktx.overrideWith( securityContext ) ) { return procedures.createAggregationFunction( prepareContext( securityContext ), id ); } }
private UserAggregator aggregationFunction( QualifiedName name, final AccessMode mode ) throws ProcedureException { ktx.assertOpen(); SecurityContext securityContext = ktx.securityContext().withMode( mode ); try ( KernelTransaction.Revertable ignore = ktx.overrideWith( securityContext ) ) { return procedures.createAggregationFunction( prepareContext( securityContext ), name ); } }
private UserAggregator aggregationFunction( int id, final AccessMode mode ) throws ProcedureException { ktx.assertOpen(); SecurityContext securityContext = ktx.securityContext().withMode( mode ); try ( KernelTransaction.Revertable ignore = ktx.overrideWith( securityContext ) ) { return procedures.createAggregationFunction( prepareContext( securityContext ), id ); } }