@ApplicationScoped public class DefaultAuditService extends Object implements AuditService
AuditService that generates Audit-related Quads 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)
AuditServicecreation in interface AuditServicesubject - the resource identifiersession - the session datapublic List<Quad> deletion(IRI subject, Session session)
AuditServicedeletion in interface AuditServicesubject - the resource identifiersession - the session datapublic List<Quad> update(IRI subject, Session session)
AuditServiceupdate in interface AuditServicesubject - the resource identifiersession - the session data