Package org.trellisldp.audit
Class DefaultAuditService
- java.lang.Object
-
- org.trellisldp.audit.DefaultAuditService
-
- All Implemented Interfaces:
AuditService
@ApplicationScoped public class DefaultAuditService extends Object implements AuditService
AnAuditService
that generates Audit-relatedQuad
s for various write operations.This class makes use of the
PROV
vocabulary andBlankNode
objects in ahttp://www.trellisldp.org/ns/trellis#PreferAudit
named graph.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuditService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
creation
public List<Quad> creation(IRI subject, Session session)
Description copied from interface:AuditService
Generate the audit quads for a Create event.- Specified by:
creation
in interfaceAuditService
- Parameters:
subject
- the resource identifiersession
- the session data- Returns:
- the list of quads
-
deletion
public List<Quad> deletion(IRI subject, Session session)
Description copied from interface:AuditService
Generate the audit quads for a Delete event.- Specified by:
deletion
in interfaceAuditService
- Parameters:
subject
- the resource identifiersession
- the session data- Returns:
- the list of quads
-
update
public List<Quad> update(IRI subject, Session session)
Description copied from interface:AuditService
Generate the audit quads for an Update event.- Specified by:
update
in interfaceAuditService
- Parameters:
subject
- the resource identifiersession
- the session data- Returns:
- the list of quads
-
-