Package com.sap.cds.services.auditlog
Interface DataModificationLogContext
- All Superinterfaces:
EventContext
Data modification interface for logging successful and
unsuccessful modification to any sensitive personal data.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DataModificationLogContext
create()
getData()
Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setCreatedAt
(Instant createdAt) void
setData
(DataModificationLog event) Methods 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
-
Field Details
-
CDS_NAME
- See Also:
-
-
Method Details
-
getService
AuditLogService 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
.
-
getData
DataModificationLog getData() -
setData
-
getCreatedAt
Instant getCreatedAt() -
setCreatedAt
-
create
-