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
AnAuditServicethat generates Audit-relatedQuads for various write operations.This class makes use of the
PROVvocabulary andBlankNodeobjects in ahttp://www.trellisldp.org/ns/trellis#PreferAuditnamed 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:AuditServiceGenerate the audit quads for a Create event.- Specified by:
creationin 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:AuditServiceGenerate the audit quads for a Delete event.- Specified by:
deletionin 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:AuditServiceGenerate the audit quads for an Update event.- Specified by:
updatein interfaceAuditService- Parameters:
subject- the resource identifiersession- the session data- Returns:
- the list of quads
-
-