Drools Workbench - Data Model API 6.1.0.Beta3

org.drools.workbench.models.datamodel.auditlog
Interface AuditLogFilter

All Known Implementing Classes:
DefaultAuditLogFilter

public interface AuditLogFilter

An Audit Log Filter, controlling which entries passed to the AuditLog are actually appended to the log.


Method Summary
 boolean accept(AuditLogEntry entry)
          This is the filtering method.
 void addType(String type)
          Register a type this Filter understands.
 Map<String,Boolean> getAcceptedTypes()
           
 

Method Detail

addType

void addType(String type)
Register a type this Filter understands. When a new entry is added the AuditLogFilter is set to not accept the type by default.

Parameters:
type -

accept

boolean accept(AuditLogEntry entry)
This is the filtering method. When an AuditLogEntry is added to an AuditLog the AuditLog calls this method to determine whether the AuditLogEntry should be added.

Parameters:
entry -
Returns:
true if the AuditLogEntry should be added to the AuditLog

getAcceptedTypes

Map<String,Boolean> getAcceptedTypes()

Drools Workbench - Data Model API 6.1.0.Beta3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.