Package org.alfresco.service.cmr.audit
Class AuditQueryParameters
java.lang.Object
org.alfresco.service.cmr.audit.AuditQueryParameters
Parameters controlling audit queries.
- Since:
- 3.3
- Author:
- Derek Hulley
-
Constructor Summary
ConstructorsConstructorDescriptionDefaults:
forward = true;
searchKeyValues = emptylist
others = null -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchKey(String searchKey, Serializable searchValue) Add a search key pair.getToId()getUser()booleanbooleanvoidsetApplicationName(String applicationName) voidsetForward(boolean forward) voidvoidsetFromTime(Long fromTime) voidvoidvoid
-
Constructor Details
-
AuditQueryParameters
public AuditQueryParameters()Defaults:
forward = true;
searchKeyValues = emptylist
others = null
-
-
Method Details
-
isZeroResultQuery
public boolean isZeroResultQuery()- Returns:
- Returns true if any query using these parameters will necessarily yield no results.
-
isForward
public boolean isForward()- Returns:
- Returns true if the results are ordered by increasing ID
-
setForward
public void setForward(boolean forward) - Parameters:
forward- true for results to ordered from first to last, or false to order from last to first
-
getApplicationName
- Returns:
- Returns if not null, find entries logged against this application
-
setApplicationName
- Parameters:
applicationName- if not null, find entries logged against this application
-
getUser
- Returns:
- Returns if not null, find entries logged against this user
-
setUser
- Parameters:
user- if not null, find entries logged against this user
-
getFromId
- Returns:
- Returns the ID to search from (null to start at the beginning)
-
setFromId
- Parameters:
fromId- the ID to search from (null to start at the beginning)
-
getToId
- Returns:
- Returns the ID to search to (null for no limit)
-
setToId
- Parameters:
toId- the start ID to search to (null for no limit)
-
getFromTime
- Returns:
- Returns the start search time (null to start at the beginning)
-
setFromTime
- Parameters:
fromTime- the start search time (null to start at the beginning)
-
getToTime
- Returns:
- Returns the end search time (null for no limit)
-
setToTime
- Parameters:
toTime- the end search time (null for no limit)
-
getSearchKeyValues
- Returns:
- Returns the search keys for the query
-
addSearchKey
Add a search key pair.
-