Package com.sap.cds.services.draft
Interface DraftGcEventContext
- All Superinterfaces:
EventContext
The
EventContext
for the DraftService.EVENT_DRAFT_GC
event.-
Method Summary
Modifier and TypeMethodDescriptionstatic DraftGcEventContext
create()
Creates anEventContext
already overlayed with this interface.com.sap.cds.Result
Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setResult
(com.sap.cds.Result 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 anEventContext
already overlayed with this interface. The event is set to beDraftService.EVENT_DRAFT_GC
- Returns:
- the
DraftGcEventContext
-
getService
DraftService 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
.
-
getResult
com.sap.cds.Result getResult() -
setResult
void setResult(com.sap.cds.Result result)
-