Skip to content

Commit

Permalink
HSEARCH-4771 Restore backwards compatibility in PojoScopeDelegate
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Jan 4, 2023
1 parent eede375 commit f996c4f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Expand Up @@ -153,6 +153,12 @@ public PojoScopeSchemaManager schemaManager() {
return new PojoScopeSchemaManagerImpl( targetedTypeContexts );
}

@Override
@Deprecated
public PojoMassIndexer massIndexer(PojoMassIndexingContext context, DetachedBackendSessionContext detachedSession) {
return massIndexer( context, Collections.singleton( detachedSession.tenantIdentifier() ) );
}

@Override
public PojoMassIndexer massIndexer(PojoMassIndexingContext context, Collection<DetachedBackendSessionContext> detachedSessions) {
return new PojoDefaultMassIndexer( context, mappingContext, indexedTypeContextProvider, targetedTypeContexts,
Expand Down
Expand Up @@ -53,6 +53,15 @@ public interface PojoScopeDelegate<R, E, C> {

PojoScopeSchemaManager schemaManager();

/**
* @param context The mass indexing context.
* @param detachedSession The detached session, for the tenant ID.
* @return A {@link PojoMassIndexer}.
* @deprecated Use {@link #massIndexer(PojoMassIndexingContext, Collection)} instead.
*/
@Deprecated
PojoMassIndexer massIndexer(PojoMassIndexingContext context, DetachedBackendSessionContext detachedSession);

PojoMassIndexer massIndexer(PojoMassIndexingContext context, Collection<DetachedBackendSessionContext> detachedSessions);

<T> T extension(IndexScopeExtension<T> extension);
Expand Down

0 comments on commit f996c4f

Please sign in to comment.