Package com.sap.cds.services.mt
Interface ReadTenantsEventContext
- All Superinterfaces:
EventContext
The
EventContext for the TenantProviderService.EVENT_READ_TENANTS event.-
Method Summary
Modifier and TypeMethodDescriptionstatic ReadTenantsEventContextcreate()Creates anEventContextalready overlaid with this interface.Returns theService(Consumption API) of the service, targeted by theEventContext.voidvoidsetResult(List<TenantInfo> result) Methods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, proceed, put, setCompleted
-
Method Details
-
create
Creates anEventContextalready overlaid with this interface. The event is set to beTenantProviderService.EVENT_READ_TENANTS- Returns:
- the
ReadTenantsEventContext
-
getService
TenantProviderService getService()Description copied from interface:EventContextReturns theService(Consumption API) of the service, targeted by theEventContext. This is the service, on which theService.emit(EventContext)method (or specialized Consumption API) was called.- Specified by:
getServicein interfaceEventContext- Returns:
- the
Service(Consumption API) of the service, targeted by theEventContext.
-
getFields
- Returns:
- A set of fields to retain from the
TenantInfoobject.
-
setFields
- Parameters:
fields- A set of fields to retain from theTenantInfoobjects.
-
getResult
List<TenantInfo> getResult()- Returns:
- A list of tenant identifiers that are currently subscribed to this application.
-
setResult
- Parameters:
result- A list of tenant identifiers that are currently subscribed to this application.
-