Package com.atlassian.bitbucket.project
Class ProjectSearchRequest
java.lang.Object
com.atlassian.bitbucket.project.ProjectSearchRequest
Request for searching projects. The purpose and behaviour of each field is described on its accessor.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
When set, limits returnedprojects
to only those for which the current user has the requiredPermission
.boolean
hasName()
Retrieves a flag indicating whethername
text has been set.boolean
Retrieves a flag indicating whether a specificpermission
has been set.
-
Method Details
-
getName
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.
- Returns:
- filter text match against project names, or
null
to return projects regardless of name
-
getPermission
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.- Returns:
- the required permission, or
null
to default toVIEW
-
hasName
public boolean hasName()Retrieves a flag indicating whethername
text has been set.- Returns:
true
ifgetName()
is notnull
or whitespace; otherwise,false
-
hasPermission
public boolean hasPermission()Retrieves a flag indicating whether a specificpermission
has been set. If no explicit permission has been set, the search will default toVIEW
.- Returns:
true
ifgetPermission()
is notnull
; otherwise,false
-