public interface DraftActivateEventContext extends EventContext
EventContext
for the DraftService.EVENT_DRAFT_ACTIVATE
event.Modifier and Type | Method and Description |
---|---|
static DraftActivateEventContext |
create(String entityName)
Creates an
EventContext already overlayed with this interface. |
com.sap.cds.ql.cqn.CqnSelect |
getCqn() |
com.sap.cds.Result |
getResult() |
DraftService |
getService()
Returns the
Service (Consumption API) of the service, targeted by the EventContext . |
void |
setCqn(com.sap.cds.ql.cqn.CqnSelect cqn)
Sets the
CqnSelect statement |
void |
setResult(Iterable<? extends Map<String,?>> result)
Sets the result of the
DraftService.EVENT_DRAFT_ACTIVATE event |
as, create, create, get, getChangeSetContext, getEvent, getModel, getParameterInfo, getServiceCatalog, getTarget, getUserInfo, isCompleted, put, setCompleted
static DraftActivateEventContext create(String entityName)
EventContext
already overlayed with this interface. The event is set to be DraftService.EVENT_DRAFT_ACTIVATE
entityName
- the name of the entityDraftActivateEventContext
DraftService getService()
EventContext
Service
(Consumption API) of the service, targeted by the EventContext
.
This is the service, on which the Service.emit(EventContext)
method (or specialized Consumption API) was called.getService
in interface EventContext
Service
(Consumption API) of the service, targeted by the EventContext
.com.sap.cds.ql.cqn.CqnSelect getCqn()
CqnSelect
statementvoid setCqn(com.sap.cds.ql.cqn.CqnSelect cqn)
CqnSelect
statementcqn
- the CqnSelect
statementcom.sap.cds.Result getResult()
Result
of the DraftService.EVENT_DRAFT_ACTIVATE
eventvoid setResult(Iterable<? extends Map<String,?>> result)
DraftService.EVENT_DRAFT_ACTIVATE
eventresult
- a Result
or a list of Maps, which will be transformed into a Result
Copyright © 2019. All rights reserved.