Package com.cloudimpl.outstack.runtime
Class AsyncRootEntityQueryContext<T extends RootEntity>
java.lang.Object
com.cloudimpl.outstack.runtime.AsyncRootEntityQueryContext<T>
- All Implemented Interfaces:
EntityQueryContext<T>,RootEntityQueryContext<T>
public class AsyncRootEntityQueryContext<T extends RootEntity> extends java.lang.Object implements RootEntityQueryContext<T>
- Author:
- nuwan
-
Constructor Summary
Constructors Constructor Description AsyncRootEntityQueryContext(RootEntityContext<T> inst, java.util.function.BiFunction<java.lang.String,java.lang.Object,reactor.core.publisher.Mono> requestHandler) -
Method Summary
Modifier and Type Method Description AsyncRootEntityQueryContext<T>asAsyncQueryContext()<R extends RootEntity, K extends ChildEntity<R>>
ChildEntityQueryContext<R,K>asChildQueryContext()RootEntityContext<T>asNonTenantContext(java.lang.String id)RootEntityQueryContext<T>asRootQueryContext()ResultSet<T>getAll(Query.PagingRequest pagingRequest)<C extends ChildEntity<T>>
ResultSet<C>getAllChildEntitiesByType(java.lang.Class<C> childType, Query.PagingRequest pageRequest)<C extends ChildEntity<T>>
java.util.Optional<C>getChildEntityById(java.lang.Class<C> childType, java.lang.String id)<C extends ChildEntity<T>>
ResultSet<Event<C>>getChildEntityEventsById(java.lang.Class<C> childType, java.lang.String id, Query.PagingRequest pageRequest)java.util.Optional<T>getEntity()java.util.Optional<T>getEntityById(java.lang.String id)ResultSet<Event<T>>getEntityEventsById(java.lang.String id, Query.PagingRequest pageRequest)<R extends RootEntity>
ExternalEntityQueryProvider<R>getEntityQueryProvider(java.lang.Class<R> rootType)<R extends RootEntity>
ExternalEntityQueryProvider<R>getEntityQueryProviderFromTenantList(java.lang.Class<R> rootType, java.util.Collection<java.lang.String> tenantId)java.lang.StringgetTenantId()booleanisIdExist(java.lang.String id, java.lang.String tenantId)<T> reactor.core.publisher.Mono<T>sendRequest(java.lang.String domainOwner, java.lang.String domainContext, java.lang.String version, java.lang.String serviceName, java.lang.Object req)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudimpl.outstack.runtime.EntityQueryContext
getEntityQueryProviderMethods inherited from interface com.cloudimpl.outstack.runtime.RootEntityQueryContext
getAllChildEntitiesByType
-
Constructor Details
-
AsyncRootEntityQueryContext
public AsyncRootEntityQueryContext(RootEntityContext<T> inst, java.util.function.BiFunction<java.lang.String,java.lang.Object,reactor.core.publisher.Mono> requestHandler)
-
-
Method Details
-
getTenantId
public java.lang.String getTenantId()- Specified by:
getTenantIdin interfaceEntityQueryContext<T extends RootEntity>
-
getChildEntityById
public <C extends ChildEntity<T>> java.util.Optional<C> getChildEntityById(java.lang.Class<C> childType, java.lang.String id)- Specified by:
getChildEntityByIdin interfaceRootEntityQueryContext<T extends RootEntity>
-
getChildEntityEventsById
public <C extends ChildEntity<T>> ResultSet<Event<C>> getChildEntityEventsById(java.lang.Class<C> childType, java.lang.String id, Query.PagingRequest pageRequest)- Specified by:
getChildEntityEventsByIdin interfaceRootEntityQueryContext<T extends RootEntity>
-
getAllChildEntitiesByType
public <C extends ChildEntity<T>> ResultSet<C> getAllChildEntitiesByType(java.lang.Class<C> childType, Query.PagingRequest pageRequest)- Specified by:
getAllChildEntitiesByTypein interfaceRootEntityQueryContext<T extends RootEntity>
-
getEntity
- Specified by:
getEntityin interfaceRootEntityQueryContext<T extends RootEntity>
-
getAll
- Specified by:
getAllin interfaceRootEntityQueryContext<T extends RootEntity>
-
getEntityById
- Specified by:
getEntityByIdin interfaceEntityQueryContext<T extends RootEntity>
-
asRootQueryContext
- Specified by:
asRootQueryContextin interfaceEntityQueryContext<T extends RootEntity>
-
asChildQueryContext
public <R extends RootEntity, K extends ChildEntity<R>> ChildEntityQueryContext<R,K> asChildQueryContext()- Specified by:
asChildQueryContextin interfaceEntityQueryContext<T extends RootEntity>
-
getEntityQueryProvider
public <R extends RootEntity> ExternalEntityQueryProvider<R> getEntityQueryProvider(java.lang.Class<R> rootType)- Specified by:
getEntityQueryProviderin interfaceEntityQueryContext<T extends RootEntity>
-
getEntityEventsById
public ResultSet<Event<T>> getEntityEventsById(java.lang.String id, Query.PagingRequest pageRequest)- Specified by:
getEntityEventsByIdin interfaceEntityQueryContext<T extends RootEntity>
-
asAsyncQueryContext
- Specified by:
asAsyncQueryContextin interfaceEntityQueryContext<T extends RootEntity>
-
asNonTenantContext
- Specified by:
asNonTenantContextin interfaceRootEntityQueryContext<T extends RootEntity>
-
sendRequest
public <T> reactor.core.publisher.Mono<T> sendRequest(java.lang.String domainOwner, java.lang.String domainContext, java.lang.String version, java.lang.String serviceName, java.lang.Object req) -
isIdExist
public boolean isIdExist(java.lang.String id, java.lang.String tenantId)- Specified by:
isIdExistin interfaceEntityQueryContext<T extends RootEntity>
-
getEntityQueryProviderFromTenantList
public <R extends RootEntity> ExternalEntityQueryProvider<R> getEntityQueryProviderFromTenantList(java.lang.Class<R> rootType, java.util.Collection<java.lang.String> tenantId)- Specified by:
getEntityQueryProviderFromTenantListin interfaceEntityQueryContext<T extends RootEntity>
-