Class RuleList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<RuleEntry>
-
- edu.uiuc.ncsa.security.storage.monitored.upkeep.RuleList
-
- All Implemented Interfaces:
UpkeepConstants,Serializable,Cloneable,Iterable<RuleEntry>,Collection<RuleEntry>,List<RuleEntry>,RandomAccess
public class RuleList extends ArrayList<RuleEntry> implements UpkeepConstants
Created by Jeff Gaynor
on 2/16/24 at 9:23 AM- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
Fields inherited from interface edu.uiuc.ncsa.security.storage.monitored.upkeep.UpkeepConstants
ACTION_ARCHIVE, ACTION_DELETE, ACTION_NONE, ACTION_RETAIN, ACTION_TEST, TYPE_ACCESSED, TYPE_CREATED, TYPE_MODIFIED, WHEN_AFTER, WHEN_BEFORE, WHEN_NEVER
-
-
Constructor Summary
Constructors Constructor Description RuleList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapplies(Identifier id, Long create, Long accessed, Long modified)booleanapplies(Monitored monitored)protected booleanapplyDateEntries(Identifier id, Long create, Long accessed, Long modified)protected booleanapplyIDEntries(Identifier id, Long create, Long accessed, Long modified)StringgetAction()List<String>getExtendsList()StringgetName()protected StringgetTypeKey(MonitoredKeys keys, String type)booleanhasSkipVersion()booleanisEnabled()booleanisSkipCollateral()BooleanisSkipVersions()booleanisVerbose()voidsetAction(String action)voidsetEnabled(boolean enabled)voidsetExtendsList(List<String> extendsList)voidsetName(String name)voidsetSkipCollateral(boolean skipCollateral)voidsetSkipVersions(Boolean skipVersions)voidsetVerbose(boolean verbose)StringtoSQLClause(DateEntry dateEntry, MonitoredKeys keys)StringtoSQLClause(IDEntry idEntry, MonitoredKeys keys)StringtoSQLQuery(MonitoredKeys keys, String tableName)StringtoSQLQuery(MonitoredKeys keys, String tableName, boolean skipVersions)Convert this rule to an SQL query.StringtoString()-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
isVerbose
public boolean isVerbose()
-
setVerbose
public void setVerbose(boolean verbose)
-
isSkipVersions
public Boolean isSkipVersions()
-
setSkipVersions
public void setSkipVersions(Boolean skipVersions)
-
hasSkipVersion
public boolean hasSkipVersion()
-
isSkipCollateral
public boolean isSkipCollateral()
-
setSkipCollateral
public void setSkipCollateral(boolean skipCollateral)
-
getAction
public String getAction()
-
setAction
public void setAction(String action)
-
getName
public String getName()
-
setName
public void setName(String name)
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<RuleEntry>
-
applies
public boolean applies(Monitored monitored)
-
applies
public boolean applies(Identifier id, Long create, Long accessed, Long modified)
-
applyIDEntries
protected boolean applyIDEntries(Identifier id, Long create, Long accessed, Long modified)
-
applyDateEntries
protected boolean applyDateEntries(Identifier id, Long create, Long accessed, Long modified)
-
toSQLQuery
public String toSQLQuery(MonitoredKeys keys, String tableName)
-
toSQLQuery
public String toSQLQuery(MonitoredKeys keys, String tableName, boolean skipVersions)
Convert this rule to an SQL query.- Parameters:
keys-tableName-skipVersions-- Returns:
-
toSQLClause
public String toSQLClause(IDEntry idEntry, MonitoredKeys keys)
-
toSQLClause
public String toSQLClause(DateEntry dateEntry, MonitoredKeys keys)
-
getTypeKey
protected String getTypeKey(MonitoredKeys keys, String type)
-
-