Package com.sap.cds.services.mt
Interface UpgradeEventContext
- All Superinterfaces:
EventContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic UpgradeEventContext
create()
Creates anEventContext
already overlayed with this interface.Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setOptions
(Map<String, Object> options) Sets the optional additional optionsvoid
setTenants
(List<String> tenants) Sets the tenant IDsMethods inherited from interface com.sap.cds.services.EventContext
as, get, getAuthenticationInfo, getCdsRuntime, getChangeSetContext, getEvent, getFeatureTogglesInfo, getMessages, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, keySet, put, setCompleted
-
Method Details
-
create
Creates anEventContext
already overlayed with this interface. The event is set to beDeploymentService.EVENT_UPGRADE
- Returns:
- the
UpgradeEventContext
-
getService
DeploymentService getService()Description copied from interface:EventContext
Returns 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:
getService
in interfaceEventContext
- Returns:
- the
Service
(Consumption API) of the service, targeted by theEventContext
.
-
getTenants
- Returns:
- the tenant IDs
-
setTenants
Sets the tenant IDs- Parameters:
tenants
- the tenant IDs
-
getOptions
- Returns:
- the optional additional options
-
setOptions
Sets the optional additional options- Parameters:
options
- the optional additional options
-