Package org.bremersee.keycloak.api
Interface GetUsersParameters
@Immutable
public interface GetUsersParameters
The get user parameters.
- Author:
- Christian Bremer
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GetUsersParameters.Builderbuilder()Creates new builder.static GetUsersParametersdefaults()Default get user parameters.@Nullable BooleanBoolean which defines whether brief representations are returned (default: false).@Nullable OffsetDateTimeOnly return users created after (inclusive) the given date.default @Nullable StringGets created after as epoch second string.@Nullable OffsetDateTimeOnly return users created before (inclusive) the given date.default @Nullable StringGets created before as epoch second string.@Nullable StringgetEmail()A String contained in email, or the complete email, if param "exact" is true.@Nullable BooleanWhether the email has been verified.@Nullable BooleanBoolean representing if user is enabled or not.@Nullable BooleangetExact()Boolean which defines whether the params "last", "firstName", "email" and "username" must match exactly.@Nullable IntegergetFirst()Gets pagination offset.@Nullable StringA String contained in firstName, or the complete firstName, if param "exact" is true.@Nullable StringThe alias of an Identity Provider linked to the user.@Nullable StringThe userId at an Identity Provider linked to the user.@Nullable StringA String contained in lastName, or the complete lastName, if param "exact" is true.@Nullable IntegergetMax()Maximum results size (defaults to 100).@Nullable StringgetQuery()A query to search for custom attributes, in the format 'key1:value2 key2:value2'.@Nullable StringA String contained in username, first or last name, or email.@Nullable StringA String contained in username, or the complete username, if param "exact" is true.
-
Method Details
-
getBriefRepresentation
@Nullable Boolean getBriefRepresentation()Boolean which defines whether brief representations are returned (default: false).- Returns:
- the brief representation
-
getCreatedAfter
@Nullable OffsetDateTime getCreatedAfter()Only return users created after (inclusive) the given date.- Returns:
- the created after
-
getCreatedAfterAsString
Gets created after as epoch second string.- Returns:
- the created after as string
-
getCreatedBefore
@Nullable OffsetDateTime getCreatedBefore()Only return users created before (inclusive) the given date.- Returns:
- the created before
-
getCreatedBeforeAsString
Gets created before as epoch second string.- Returns:
- the created before as string
-
getEmail
@Nullable String getEmail()A String contained in email, or the complete email, if param "exact" is true.- Returns:
- the email
-
getEmailVerified
@Nullable Boolean getEmailVerified()Whether the email has been verified.- Returns:
- the email verified
-
getEnabled
@Nullable Boolean getEnabled()Boolean representing if user is enabled or not.- Returns:
- the enabled
-
getExact
@Nullable Boolean getExact()Boolean which defines whether the params "last", "firstName", "email" and "username" must match exactly.- Returns:
- the exact
-
getFirst
@Nullable Integer getFirst()Gets pagination offset.- Returns:
- the first
-
getFirstName
@Nullable String getFirstName()A String contained in firstName, or the complete firstName, if param "exact" is true.- Returns:
- the first name
-
getIdpAlias
@Nullable String getIdpAlias()The alias of an Identity Provider linked to the user.- Returns:
- the idp alias
-
getIdpUserId
@Nullable String getIdpUserId()The userId at an Identity Provider linked to the user.- Returns:
- the idp user id
-
getLastName
@Nullable String getLastName()A String contained in lastName, or the complete lastName, if param "exact" is true.- Returns:
- the last name
-
getMax
@Nullable Integer getMax()Maximum results size (defaults to 100).- Returns:
- the max
-
getQuery
@Nullable String getQuery()A query to search for custom attributes, in the format 'key1:value2 key2:value2'.- Returns:
- the query
-
getSearch
@Nullable String getSearch()A String contained in username, first or last name, or email. Default search behavior is prefix-based (e.g., foo or foo*). Use *foo* for infix search and "foo" for exact search.- Returns:
- the search
-
getUsername
@Nullable String getUsername()A String contained in username, or the complete username, if param "exact" is true.- Returns:
- the username
-
defaults
Default get user parameters.- Returns:
- the get user parameters
-
builder
Creates new builder.- Returns:
- the builder
-