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 newBuilderwhich will copy initial values from the providedrequest. - 
Method Summary
Modifier and TypeMethodDescriptionbuild()Assembles a newProjectSearchRequestfrom the provided values.permission(Permission value) When set, limits returnedprojectsto only those for which the current user has the requiredPermission. 
- 
Constructor Details
- 
Builder
public Builder() - 
Builder
Constructs a newBuilderwhich will copy initial values from the providedrequest.- Parameters:
 request- request to copy
 
 - 
 - 
Method Details
- 
build
Assembles a newProjectSearchRequestfrom the provided values.- Returns:
 - a new request
 
 - 
name
When set, limits returnedprojectsto only those whosenamescontain 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, ornullto return projects regardless of name- Returns:
 this
 - 
permission
When set, limits returnedprojectsto 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 hasVIEWpermission.- Parameters:
 value- the required permission, ornullto default toVIEW- Returns:
 this- Throws:
 IllegalArgumentException- if the providedPermissionis notproject related
 
 -