Package fr.becpg.repo.audit.model
Class AuditQuery
java.lang.Object
fr.becpg.repo.audit.model.AuditQuery
AuditQuery class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasc(boolean asc) asc.copy()copy.static AuditQuerycreateQuery.dbAsc(boolean dbAsc) dbAsc.filter.filter.filters.Getter for the fieldfilter.getFilters.Getter for the fieldfromId.Getter for the fieldfromTime.Getter for the fieldinMemoryFilters.intGetter for the fieldmaxResults.Getter for the fieldsortBy.Getter for the fieldstartAfterId.getToId()Getter for the fieldtoId.Getter for the fieldtoTime.idRange.booleanisAscending.booleanisDbAscending.maxResults(int maxResults) maxResults.sortBy.startAfterId(Long startAfterId) startAfterId.timeRange.
-
Field Details
-
sortBy
-
filter
-
inMemoryFilters
-
asc
private boolean asc -
dbAsc
private boolean dbAsc -
maxResults
private int maxResults -
fromId
-
toId
-
fromTime
-
toTime
-
startAfterId
-
-
Constructor Details
-
AuditQuery
private AuditQuery()Constructor for AuditQuery.
-
-
Method Details
-
copy
copy.
A copy of this query, so that a caller can derive a query of its own without touching the one it was given.- Returns:
- a
AuditQueryobject
-
createQuery
createQuery.
- Returns:
- a
AuditQueryobject
-
idRange
idRange.
- Parameters:
fromId- aLongobjecttoId- aLongobject- Returns:
- a
AuditQueryobject
-
timeRange
timeRange.
- Parameters:
fromTime- aDateobjecttoTime- aDateobject- Returns:
- a
AuditQueryobject
-
startAfterId
startAfterId.
Resume a keyset paged scan right after the given entry identifier, in the database order the query asks for.- Parameters:
startAfterId- aLongobject- Returns:
- a
AuditQueryobject
-
sortBy
sortBy.
- Parameters:
sortBy- aStringobject- Returns:
- a
AuditQueryobject
-
filter
filter.
- Parameters:
key- aStringobjectvalue- aStringobject- Returns:
- a
AuditQueryobject
-
filter
filter.
- Parameters:
filter- aStringobject- Returns:
- a
AuditQueryobject
-
filters
filters.
The audit query of Alfresco matches a single key-value pair: the first filter is the one the database reads with, the next ones are applied in memory on the entries it returns. The audit service puts the most selective one first, following the filter hierarchy of the plugin. The given filters replace every filter of the query: an empty list leaves it unfiltered.- Parameters:
filters- the filters, each written "key=value", all of which an entry must match- Returns:
- a
AuditQueryobject
-
dbAsc
dbAsc.
- Parameters:
dbAsc- a boolean- Returns:
- a
AuditQueryobject
-
asc
asc.
- Parameters:
asc- a boolean- Returns:
- a
AuditQueryobject
-
maxResults
maxResults.
- Parameters:
maxResults- a int- Returns:
- a
AuditQueryobject
-
isDbAscending
public boolean isDbAscending()isDbAscending.
- Returns:
- a boolean
-
getFromId
Getter for the field
fromId.- Returns:
- a
Longobject
-
getToId
Getter for the field
toId.- Returns:
- a
Longobject
-
getStartAfterId
Getter for the field
startAfterId.- Returns:
- a
Longobject
-
getFromTime
Getter for the field
fromTime.- Returns:
- a
Dateobject
-
getToTime
Getter for the field
toTime.- Returns:
- a
Dateobject
-
getMaxResults
public int getMaxResults()Getter for the field
maxResults.- Returns:
- a int
-
getSortBy
Getter for the field
sortBy.- Returns:
- a
Stringobject
-
getFilter
Getter for the field
filter.- Returns:
- a
Stringobject
-
getFilters
getFilters.
Every filter of the query, the one the database reads with first.- Returns:
- a
Listobject
-
getInMemoryFilters
Getter for the field
The filters the entries read from the database still have to match.inMemoryFilters.- Returns:
- a
Listobject
-
isAscending
public boolean isAscending()isAscending.
- Returns:
- a boolean
-