Package com.sap.cds.services.draft
Interface DraftCancelEventContext
- All Superinterfaces:
EventContext
The
EventContext for the DraftService.EVENT_DRAFT_CANCEL event.-
Method Summary
Modifier and TypeMethodDescriptionstatic DraftCancelEventContextCreates anEventContextalready overlayed with this interface.com.sap.cds.ql.cqn.CqnDeletegetCqn()com.sap.cds.ResultReturns theService(Consumption API) of the service, targeted by theEventContext.voidsetCqn(com.sap.cds.ql.cqn.CqnDelete cqn) Sets theCqnDeletestatementvoidsetCqnValueSets(Iterable<Map<String, Object>> valueSets) Sets the CQN value sets, to enable batchedCqnDeletestatementsvoidSets the result of theDraftService.EVENT_DRAFT_CANCELeventMethods 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 overlayed with this interface. The event is set to beDraftService.EVENT_DRAFT_CANCEL- Parameters:
entityName- the name of the entity- Returns:
- the
DraftCancelEventContext
-
getService
DraftService 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.
-
getCqn
com.sap.cds.ql.cqn.CqnDelete getCqn()- Returns:
- the
CqnDeletestatement
-
setCqn
void setCqn(com.sap.cds.ql.cqn.CqnDelete cqn) Sets theCqnDeletestatement- Parameters:
cqn- theCqnDeletestatement
-
getCqnValueSets
- Returns:
- the CQN value sets, to enable batched
CqnDeletestatements
-
setCqnValueSets
Sets the CQN value sets, to enable batchedCqnDeletestatements- Parameters:
valueSets- the CQN value sets
-
getResult
com.sap.cds.Result getResult()- Returns:
- the
Resultof theDraftService.EVENT_DRAFT_CANCELevent
-
setResult
Sets the result of theDraftService.EVENT_DRAFT_CANCELevent- Parameters:
result- aResultor a list of Maps, which will be transformed into aResult
-