Package com.sap.cds.services.auditlog
Interface DataAccessLogContext
- All Superinterfaces:
EventContext
Data access interface for logging successful and
unsuccessful access to any sensitive personal data.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataAccessLogContext
create()
getData()
Returns theService
(Consumption API) of the service, targeted by theEventContext
.void
setCreatedAt
(Instant createdAt) void
setData
(DataAccessLog 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
DataAccessLog getData() -
setData
-
getCreatedAt
Instant getCreatedAt() -
setCreatedAt
-
create
-