public static class UserSearchRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Builder(UserSearchRequest request) |
Modifier and Type | Method and Description |
---|---|
UserSearchRequest |
build()
Assembles a new
UserSearchRequest from the provided values. |
UserSearchRequest.Builder |
filter(String filter)
Set the filter for the resulting
request instance. |
UserSearchRequest.Builder |
group(String group)
Set a group filter for the resulting
request instance. |
UserSearchRequest.Builder |
permission(Permission permission)
Set the global permission filter for the resulting
request . |
UserSearchRequest.Builder |
projectPermission(int projectId,
Permission permission)
Set the project permission filter for the resulting
request . |
UserSearchRequest.Builder |
projectPermission(Project project,
Permission permission)
Set the project permission filter for the resulting
request . |
UserSearchRequest.Builder |
repositoryPermission(int repositoryId,
Permission permission)
Set the repository permission filter for the resulting
request . |
UserSearchRequest.Builder |
repositoryPermission(Repository repository,
Permission permission)
Set the repository permission filter for the resulting
request . |
public Builder()
public Builder(@Nonnull UserSearchRequest request)
@Nonnull public UserSearchRequest build()
UserSearchRequest
from the provided values.@Nonnull public UserSearchRequest.Builder filter(@Nullable String filter)
request
instance.filter
- filter text for the user search; may be blank, which will be treated
as an empty filterUserSearchRequest.getFilter()
@Nonnull public UserSearchRequest.Builder group(@Nullable String group)
request
instance.group
- the group name for the user search; may be blankUserSearchRequest.getGroup()
@Nonnull public UserSearchRequest.Builder permission(@Nonnull Permission permission)
request
.permission
- filter permission for the user search@Nonnull public UserSearchRequest.Builder projectPermission(@Nonnull Project project, @Nonnull Permission permission)
request
.project
- filter project for the user searchpermission
- filter project permission for the user search@Nonnull public UserSearchRequest.Builder projectPermission(int projectId, @Nonnull Permission permission)
request
.
NOTE: passing in an ID of a non-existing project will not filter out any users.
projectId
- ID of the filter project for the user searchpermission
- filter project permission for the user search@Nonnull public UserSearchRequest.Builder repositoryPermission(@Nonnull Repository repository, @Nonnull Permission permission)
request
.repository
- filter repository for the user searchpermission
- filter repository permission for the user search@Nonnull public UserSearchRequest.Builder repositoryPermission(int repositoryId, @Nonnull Permission permission)
request
.
NOTE: passing in an ID of a non-existing repository will not filter out any users.
repositoryId
- ID of the filter repository for the user searchpermission
- filter repository permission for the user searchCopyright © 2021 Atlassian. All rights reserved.