Class AuditLog
- java.lang.Object
-
- 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
Constructors Constructor Description AuditLog()AuditLog(AuditLogFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, AuditLogEntry element)Not supported.booleanadd(AuditLogEntry e)Add a new AuditLogEntry at the beginning of the list.booleanaddAll(int index, Collection<? extends AuditLogEntry> c)Not supported.booleanaddAll(Collection<? extends AuditLogEntry> c)Not supported.voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)AuditLogEntryget(int index)AuditLogFiltergetAuditLogFilter()inthashCode()intindexOf(Object o)booleanisEmpty()Iterator<AuditLogEntry>iterator()intlastIndexOf(Object o)ListIterator<AuditLogEntry>listIterator()ListIterator<AuditLogEntry>listIterator(int index)AuditLogEntryremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)Not supported.booleanretainAll(Collection<?> c)Not supported.AuditLogEntryset(int index, AuditLogEntry element)Not supported.intsize()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
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
AuditLog
public AuditLog()
-
AuditLog
public AuditLog(AuditLogFilter filter)
-
-
Method Detail
-
getAuditLogFilter
public AuditLogFilter getAuditLogFilter()
-
size
public int size()
- Specified by:
sizein interfaceCollection<AuditLogEntry>- Specified by:
sizein interfaceList<AuditLogEntry>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<AuditLogEntry>- Specified by:
isEmptyin interfaceList<AuditLogEntry>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<AuditLogEntry>- Specified by:
containsin interfaceList<AuditLogEntry>
-
iterator
public Iterator<AuditLogEntry> iterator()
- Specified by:
iteratorin interfaceCollection<AuditLogEntry>- Specified by:
iteratorin interfaceIterable<AuditLogEntry>- Specified by:
iteratorin interfaceList<AuditLogEntry>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<AuditLogEntry>- Specified by:
toArrayin interfaceList<AuditLogEntry>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArrayin interfaceCollection<AuditLogEntry>- Specified by:
toArrayin interfaceList<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:
addin interfaceCollection<AuditLogEntry>- Specified by:
addin interfaceList<AuditLogEntry>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<AuditLogEntry>- Specified by:
removein interfaceList<AuditLogEntry>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<AuditLogEntry>- Specified by:
containsAllin interfaceList<AuditLogEntry>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<AuditLogEntry>- Specified by:
clearin interfaceList<AuditLogEntry>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceCollection<AuditLogEntry>- Specified by:
equalsin interfaceList<AuditLogEntry>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCollection<AuditLogEntry>- Specified by:
hashCodein interfaceList<AuditLogEntry>- Overrides:
hashCodein classObject
-
get
public AuditLogEntry get(int index)
- Specified by:
getin interfaceList<AuditLogEntry>
-
remove
public AuditLogEntry remove(int index)
- Specified by:
removein interfaceList<AuditLogEntry>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOfin interfaceList<AuditLogEntry>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<AuditLogEntry>
-
listIterator
public ListIterator<AuditLogEntry> listIterator()
- Specified by:
listIteratorin interfaceList<AuditLogEntry>
-
listIterator
public ListIterator<AuditLogEntry> listIterator(int index)
- Specified by:
listIteratorin interfaceList<AuditLogEntry>
-
subList
public List<AuditLogEntry> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceList<AuditLogEntry>
-
addAll
public boolean addAll(Collection<? extends AuditLogEntry> c)
Not supported.- Specified by:
addAllin interfaceCollection<AuditLogEntry>- Specified by:
addAllin interfaceList<AuditLogEntry>
-
addAll
public boolean addAll(int index, Collection<? extends AuditLogEntry> c)Not supported.- Specified by:
addAllin interfaceList<AuditLogEntry>
-
removeAll
public boolean removeAll(Collection<?> c)
Not supported.- Specified by:
removeAllin interfaceCollection<AuditLogEntry>- Specified by:
removeAllin interfaceList<AuditLogEntry>
-
retainAll
public boolean retainAll(Collection<?> c)
Not supported.- Specified by:
retainAllin interfaceCollection<AuditLogEntry>- Specified by:
retainAllin interfaceList<AuditLogEntry>
-
set
public AuditLogEntry set(int index, AuditLogEntry element)
Not supported.- Specified by:
setin interfaceList<AuditLogEntry>
-
add
public void add(int index, AuditLogEntry element)Not supported.- Specified by:
addin interfaceList<AuditLogEntry>
-
-