Package org.alfresco.service.cmr.audit
Class AuditQueryParameters
- java.lang.Object
-
- org.alfresco.service.cmr.audit.AuditQueryParameters
-
public class AuditQueryParameters extends java.lang.ObjectParameters controlling audit queries.- Since:
- 3.3
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description AuditQueryParameters()Defaults:
forward = true;
searchKeyValues = emptylist
others = null
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSearchKey(java.lang.String searchKey, java.io.Serializable searchValue)Add a search key pair.java.lang.StringgetApplicationName()java.lang.LonggetFromId()java.lang.LonggetFromTime()java.util.List<org.alfresco.util.Pair<java.lang.String,java.io.Serializable>>getSearchKeyValues()java.lang.LonggetToId()java.lang.LonggetToTime()java.lang.StringgetUser()booleanisForward()booleanisZeroResultQuery()voidsetApplicationName(java.lang.String applicationName)voidsetForward(boolean forward)voidsetFromId(java.lang.Long fromId)voidsetFromTime(java.lang.Long fromTime)voidsetToId(java.lang.Long toId)voidsetToTime(java.lang.Long toTime)voidsetUser(java.lang.String user)
-
-
-
Method Detail
-
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
public java.lang.String getApplicationName()
- Returns:
- Returns if not null, find entries logged against this application
-
setApplicationName
public void setApplicationName(java.lang.String applicationName)
- Parameters:
applicationName- if not null, find entries logged against this application
-
getUser
public java.lang.String getUser()
- Returns:
- Returns if not null, find entries logged against this user
-
setUser
public void setUser(java.lang.String user)
- Parameters:
user- if not null, find entries logged against this user
-
getFromId
public java.lang.Long getFromId()
- Returns:
- Returns the ID to search from (null to start at the beginning)
-
setFromId
public void setFromId(java.lang.Long fromId)
- Parameters:
fromId- the ID to search from (null to start at the beginning)
-
getToId
public java.lang.Long getToId()
- Returns:
- Returns the ID to search to (null for no limit)
-
setToId
public void setToId(java.lang.Long toId)
- Parameters:
toId- the start ID to search to (null for no limit)
-
getFromTime
public java.lang.Long getFromTime()
- Returns:
- Returns the start search time (null to start at the beginning)
-
setFromTime
public void setFromTime(java.lang.Long fromTime)
- Parameters:
fromTime- the start search time (null to start at the beginning)
-
getToTime
public java.lang.Long getToTime()
- Returns:
- Returns the end search time (null for no limit)
-
setToTime
public void setToTime(java.lang.Long toTime)
- Parameters:
toTime- the end search time (null for no limit)
-
getSearchKeyValues
public java.util.List<org.alfresco.util.Pair<java.lang.String,java.io.Serializable>> getSearchKeyValues()
- Returns:
- Returns the search keys for the query
-
addSearchKey
public void addSearchKey(java.lang.String searchKey, java.io.Serializable searchValue)Add a search key pair.- Parameters:
searchKey- the path-value pair. Either the path (firstvalue) or the search value (secondvalue) may be null, but not both.
-
-