Drools Workbench - Data Model API 6.0.1.Final

org.drools.workbench.models.datamodel.auditlog
Class DefaultAuditLogFilter

java.lang.Object
  extended by org.drools.workbench.models.datamodel.auditlog.DefaultAuditLogFilter
All Implemented Interfaces:
AuditLogFilter

public class DefaultAuditLogFilter
extends Object
implements AuditLogFilter

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


Constructor Summary
DefaultAuditLogFilter()
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuditLogFilter

public DefaultAuditLogFilter()
Method Detail

addType

public 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.

Specified by:
addType in interface AuditLogFilter
Parameters:
type -

accept

public 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.

Specified by:
accept in interface AuditLogFilter
Parameters:
entry -
Returns:
true if the AuditLogEntry should be added to the AuditLog

getAcceptedTypes

public Map<String,Boolean> getAcceptedTypes()
Specified by:
getAcceptedTypes in interface AuditLogFilter

Drools Workbench - Data Model API 6.0.1.Final

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