@ApplicationScoped public class DefaultAuditService extends Object implements AuditService
AuditService
that generates Audit-related Quad
s for
various write operations.
This class makes use of the PROV
vocabulary and BlankNode
objects in a http://www.trellisldp.org/ns/trellis#PreferAudit
named
graph.
Constructor and Description |
---|
DefaultAuditService() |
Modifier and Type | Method and Description |
---|---|
List<Quad> |
creation(IRI subject,
Session session)
Generate the audit quads for a Create event.
|
List<Quad> |
deletion(IRI subject,
Session session)
Generate the audit quads for a Delete event.
|
List<Quad> |
update(IRI subject,
Session session)
Generate the audit quads for an Update event.
|
public List<Quad> creation(IRI subject, Session session)
AuditService
creation
in interface AuditService
subject
- the resource identifiersession
- the session datapublic List<Quad> deletion(IRI subject, Session session)
AuditService
deletion
in interface AuditService
subject
- the resource identifiersession
- the session datapublic List<Quad> update(IRI subject, Session session)
AuditService
update
in interface AuditService
subject
- the resource identifiersession
- the session data