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 boolean
applies(Identifier id, Long create, Long accessed, Long modified)
boolean
applies(Monitored monitored)
protected boolean
applyDateEntries(Identifier id, Long create, Long accessed, Long modified)
protected boolean
applyIDEntries(Identifier id, Long create, Long accessed, Long modified)
String
getAction()
List<String>
getExtendsList()
String
getName()
protected String
getTypeKey(MonitoredKeys keys, String type)
boolean
hasSkipVersion()
boolean
isEnabled()
boolean
isSkipCollateral()
Boolean
isSkipVersions()
boolean
isVerbose()
void
setAction(String action)
void
setEnabled(boolean enabled)
void
setExtendsList(List<String> extendsList)
void
setName(String name)
void
setSkipCollateral(boolean skipCollateral)
void
setSkipVersions(Boolean skipVersions)
void
setVerbose(boolean verbose)
String
toSQLClause(DateEntry dateEntry, MonitoredKeys keys)
String
toSQLClause(IDEntry idEntry, MonitoredKeys keys)
String
toSQLQuery(MonitoredKeys keys, String tableName)
String
toSQLQuery(MonitoredKeys keys, String tableName, boolean skipVersions)
Convert this rule to an SQL query.String
toString()
-
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:
toString
in 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)
-
-