Package com.atlassian.crowd.audit.query
Class AuditLogQueryBuilder<T>
java.lang.Object
com.atlassian.crowd.audit.query.AuditLogQueryBuilder<T>
Allows creating AuditLogQueries
- Since:
- v3.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddAction
(AuditLogEventType action) addAllActions
(Collection<AuditLogEventType> actions) addAllApplications
(Collection<AuditLogQueryEntityRestriction> applications) addAllDirectories
(Collection<AuditLogQueryEntityRestriction> directories) addAllSources
(Collection<AuditLogEventSource> sources) addApplication
(AuditLogQueryEntityRestriction application) addAuthor
(AuditLogQueryAuthorRestriction authors) addDirectory
(AuditLogQueryEntityRestriction directory) addSource
(AuditLogEventSource source) build()
static <T> AuditLogQueryBuilder<T>
setApplications
(Collection<AuditLogQueryEntityRestriction> applications) setBeforeOrOn
(Instant beforeOrOn) setDirectories
(Collection<AuditLogQueryEntityRestriction> directories) setMaxResults
(int maxResults) setOnOrAfter
(Instant onOrAfter) setProjection
(AuditLogChangesetProjection projection) setStartIndex
(int startIndex)
-
Method Details
-
changesetQuery
- Returns:
- a builder for queries returning changesets - this is the most common use for audit log queries
-
queryFor
- Returns:
- a builder for queries returning a specific types of results - this is mostly used with changeset projections, for example to return matching authors or entities. Available result types might be different for different queries.
- See Also:
-
setBeforeOrOn
-
setOnOrAfter
-
addAllActions
-
addAction
-
addAllSources
-
addSource
-
addAllAuthors
-
addAuthor
-
addAllUsers
-
addUser
-
setUsers
-
addAllGroups
-
addGroup
-
setGroups
-
addAllApplications
public AuditLogQueryBuilder<T> addAllApplications(Collection<AuditLogQueryEntityRestriction> applications) -
addApplication
-
setApplications
public AuditLogQueryBuilder<T> setApplications(Collection<AuditLogQueryEntityRestriction> applications) -
addAllDirectories
public AuditLogQueryBuilder<T> addAllDirectories(Collection<AuditLogQueryEntityRestriction> directories) -
addDirectory
-
setDirectories
public AuditLogQueryBuilder<T> setDirectories(Collection<AuditLogQueryEntityRestriction> directories) -
setProjection
-
setStartIndex
-
setMaxResults
-
build
-