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.

ParameterDescription
hostNamethe 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.

ParameterDescription
sourceIpthe 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).

ParameterDescription
devicethe device text to filter by

profileId(Long profileId)

Returns: LoginNonceSearchBuilder

Sets an exact profile filter, restricting results to login nonces for the given profile.

ParameterDescription
profileIdthe 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.

ParameterDescription
startDatethe 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.

ParameterDescription
endDatethe 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.

ParameterDescription
searchPropertiesthe paging and sorting properties to apply

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.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.