Package com.atlassian.bitbucket.project
Class ProjectSearchRequest.Builder
java.lang.Object
com.atlassian.bitbucket.project.ProjectSearchRequest.Builder
- Enclosing class:
- ProjectSearchRequest
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Builder
(ProjectSearchRequest request) Constructs a newBuilder
which will copy initial values from the providedrequest
. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Assembles a newProjectSearchRequest
from the provided values.permission
(Permission value) When set, limits returnedprojects
to only those for which the current user has the requiredPermission
.
-
Constructor Details
-
Builder
public Builder() -
Builder
Constructs a newBuilder
which will copy initial values from the providedrequest
.- Parameters:
request
- request to copy
-
-
Method Details
-
build
Assembles a newProjectSearchRequest
from the provided values.- Returns:
- a new request
-
name
When set, limits returnedprojects
to only those whosenames
contain the provided value. Matching is performed in a case-insensitive manner, and will match anywhere within projects' names.Note: Values containing only whitespace are ignored, and will not be applied. Additionally, leading and trailing whitespace are trimmed.
- Parameters:
value
- filter text match against project names, ornull
to return projects regardless of name- Returns:
this
-
permission
When set, limits returnedprojects
to only those for which the current user has the requiredPermission
. The provided value may benull
, in which case projects will automatically be limited to those for which the current user hasVIEW
permission.- Parameters:
value
- the required permission, ornull
to default toVIEW
- Returns:
this
- Throws:
IllegalArgumentException
- if the providedPermission
is notproject related
-