Drools Workbench - Data Model API 6.2.0.CR4

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

java.lang.Object
  extended by org.drools.workbench.models.datamodel.auditlog.AuditLog
All Implemented Interfaces:
Iterable<AuditLogEntry>, Collection<AuditLogEntry>, List<AuditLogEntry>

public class AuditLog
extends Object
implements List<AuditLogEntry>

An Audit Log that filters entries added to it depending on the type of entries the Log is configured to receive. Users of this log need therefore not filter which entries should be appended as this is handled by the log itself.


Constructor Summary
AuditLog()
           
AuditLog(AuditLogFilter filter)
           
 
Method Summary
 boolean add(AuditLogEntry e)
          Add a new AuditLogEntry at the beginning of the list.
 void add(int index, AuditLogEntry element)
          Not supported.
 boolean addAll(Collection<? extends AuditLogEntry> c)
          Not supported.
 boolean addAll(int index, Collection<? extends AuditLogEntry> c)
          Not supported.
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 boolean equals(Object o)
           
 AuditLogEntry get(int index)
           
 AuditLogFilter getAuditLogFilter()
           
 int hashCode()
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 Iterator<AuditLogEntry> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<AuditLogEntry> listIterator()
           
 ListIterator<AuditLogEntry> listIterator(int index)
           
 AuditLogEntry remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
          Not supported.
 boolean retainAll(Collection<?> c)
          Not supported.
 AuditLogEntry set(int index, AuditLogEntry element)
          Not supported.
 int size()
           
 List<AuditLogEntry> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditLog

public AuditLog()

AuditLog

public AuditLog(AuditLogFilter filter)
Method Detail

getAuditLogFilter

public AuditLogFilter getAuditLogFilter()

size

public int size()
Specified by:
size in interface Collection<AuditLogEntry>
Specified by:
size in interface List<AuditLogEntry>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<AuditLogEntry>
Specified by:
isEmpty in interface List<AuditLogEntry>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<AuditLogEntry>
Specified by:
contains in interface List<AuditLogEntry>

iterator

public Iterator<AuditLogEntry> iterator()
Specified by:
iterator in interface Iterable<AuditLogEntry>
Specified by:
iterator in interface Collection<AuditLogEntry>
Specified by:
iterator in interface List<AuditLogEntry>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<AuditLogEntry>
Specified by:
toArray in interface List<AuditLogEntry>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<AuditLogEntry>
Specified by:
toArray in interface List<AuditLogEntry>

add

public boolean add(AuditLogEntry e)
Add a new AuditLogEntry at the beginning of the list. This is different behaviour to a regular List but it prevents the need to sort entries in descending order.

Specified by:
add in interface Collection<AuditLogEntry>
Specified by:
add in interface List<AuditLogEntry>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<AuditLogEntry>
Specified by:
remove in interface List<AuditLogEntry>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<AuditLogEntry>
Specified by:
containsAll in interface List<AuditLogEntry>

clear

public void clear()
Specified by:
clear in interface Collection<AuditLogEntry>
Specified by:
clear in interface List<AuditLogEntry>

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<AuditLogEntry>
Specified by:
equals in interface List<AuditLogEntry>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<AuditLogEntry>
Specified by:
hashCode in interface List<AuditLogEntry>
Overrides:
hashCode in class Object

get

public AuditLogEntry get(int index)
Specified by:
get in interface List<AuditLogEntry>

remove

public AuditLogEntry remove(int index)
Specified by:
remove in interface List<AuditLogEntry>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<AuditLogEntry>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<AuditLogEntry>

listIterator

public ListIterator<AuditLogEntry> listIterator()
Specified by:
listIterator in interface List<AuditLogEntry>

listIterator

public ListIterator<AuditLogEntry> listIterator(int index)
Specified by:
listIterator in interface List<AuditLogEntry>

subList

public List<AuditLogEntry> subList(int fromIndex,
                                   int toIndex)
Specified by:
subList in interface List<AuditLogEntry>

addAll

public boolean addAll(Collection<? extends AuditLogEntry> c)
Not supported.

Specified by:
addAll in interface Collection<AuditLogEntry>
Specified by:
addAll in interface List<AuditLogEntry>

addAll

public boolean addAll(int index,
                      Collection<? extends AuditLogEntry> c)
Not supported.

Specified by:
addAll in interface List<AuditLogEntry>

removeAll

public boolean removeAll(Collection<?> c)
Not supported.

Specified by:
removeAll in interface Collection<AuditLogEntry>
Specified by:
removeAll in interface List<AuditLogEntry>

retainAll

public boolean retainAll(Collection<?> c)
Not supported.

Specified by:
retainAll in interface Collection<AuditLogEntry>
Specified by:
retainAll in interface List<AuditLogEntry>

set

public AuditLogEntry set(int index,
                         AuditLogEntry element)
Not supported.

Specified by:
set in interface List<AuditLogEntry>

add

public void add(int index,
                AuditLogEntry element)
Not supported.

Specified by:
add in interface List<AuditLogEntry>

Drools Workbench - Data Model API 6.2.0.CR4

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