Fluent, JS-facing query builder for LoginNonce records, the login session tracking rows created each time a user authenticates. Reached from server-side JS via UserManager's newLoginNonceSearchBuilder method, a builder is configured by chaining the exported setter methods and then run with search or count. A start and end date are always required, and the query is restricted to the current tenant's admin organisation. The caller must hold an admin or user administrator role for that organisation.
Group: Builders
Methods
hostName(String hostName) · sourceIp(String sourceIp) · device(String device) · profileId(Long profileId) · startDate(Date startDate) · endDate(Date endDate) · searchProperties(SearchProperties searchProperties) · search() · count()
hostName(String hostName)
Returns: LoginNonceSearchBuilder
Sets an exact host name filter, restricting results to login nonces recorded against that host.
| Parameter | Description |
|---|---|
hostName | the host name to filter by |
sourceIp(String sourceIp)
Returns: LoginNonceSearchBuilder
Sets an exact source IP filter, restricting results to login nonces recorded from that IP address.
| Parameter | Description |
|---|---|
sourceIp | the source IP address to filter by |
device(String device)
Returns: LoginNonceSearchBuilder
Sets a device filter, restricting results to login nonces whose device field contains the given text (case insensitive, matched anywhere in the value).
| Parameter | Description |
|---|---|
device | the device text to filter by |
profileId(Long profileId)
Returns: LoginNonceSearchBuilder
Sets an exact profile filter, restricting results to login nonces for the given profile.
| Parameter | Description |
|---|---|
profileId | the id of the profile to filter by |
startDate(Date startDate)
Returns: LoginNonceSearchBuilder
Sets the inclusive lower bound on the createdAt date. Required before calling search or count.
| Parameter | Description |
|---|---|
startDate | the earliest creation date to include |
endDate(Date endDate)
Returns: LoginNonceSearchBuilder
Sets the inclusive upper bound on the createdAt date. Required before calling search or count.
| Parameter | Description |
|---|---|
endDate | the latest creation date to include |
searchProperties(SearchProperties searchProperties)
Returns: LoginNonceSearchBuilder
Sets the paging, sorting and text search properties applied to the query. Required before calling search.
| Parameter | Description |
|---|---|
searchProperties | the paging and sorting properties to apply |
search()
Returns: List<LoginNonce>
Runs the query built from the configured filters and returns the matching page of login nonces, ordered and paged according to the configured search properties.
count()
Returns: Long
Runs the query built from the configured filters and returns the total number of matching login nonces, ignoring any paging.