public static interface UserContext.Builder extends SdkPojo, CopyableBuilder<UserContext.Builder,UserContext>
| Modifier and Type | Method and Description |
|---|---|
UserContext.Builder |
dataSourceGroups(Collection<DataSourceGroup> dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that
data source.
|
UserContext.Builder |
dataSourceGroups(Consumer<DataSourceGroup.Builder>... dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that
data source.
|
UserContext.Builder |
dataSourceGroups(DataSourceGroup... dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that
data source.
|
UserContext.Builder |
groups(Collection<String> groups)
The list of groups you want to filter search results based on the groups' access to documents.
|
UserContext.Builder |
groups(String... groups)
The list of groups you want to filter search results based on the groups' access to documents.
|
UserContext.Builder |
token(String token)
The user context token for filtering search results for a user.
|
UserContext.Builder |
userId(String userId)
The identifier of the user you want to filter search results based on their access to documents.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildUserContext.Builder token(String token)
The user context token for filtering search results for a user. It must be a JWT or a JSON token.
token - The user context token for filtering search results for a user. It must be a JWT or a JSON token.UserContext.Builder userId(String userId)
The identifier of the user you want to filter search results based on their access to documents.
userId - The identifier of the user you want to filter search results based on their access to documents.UserContext.Builder groups(Collection<String> groups)
The list of groups you want to filter search results based on the groups' access to documents.
groups - The list of groups you want to filter search results based on the groups' access to documents.UserContext.Builder groups(String... groups)
The list of groups you want to filter search results based on the groups' access to documents.
groups - The list of groups you want to filter search results based on the groups' access to documents.UserContext.Builder dataSourceGroups(Collection<DataSourceGroup> dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
dataSourceGroups - The list of data source groups you want to filter search results based on groups' access to documents
in that data source.UserContext.Builder dataSourceGroups(DataSourceGroup... dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
dataSourceGroups - The list of data source groups you want to filter search results based on groups' access to documents
in that data source.UserContext.Builder dataSourceGroups(Consumer<DataSourceGroup.Builder>... dataSourceGroups)
The list of data source groups you want to filter search results based on groups' access to documents in that data source.
This is a convenience method that creates an instance of theDataSourceGroup.Builder avoiding the need to create one
manually via DataSourceGroup.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #dataSourceGroups(List.
dataSourceGroups - a consumer that will call methods on
DataSourceGroup.Builder#dataSourceGroups(java.util.Collection) Copyright © 2023. All rights reserved.