public class ProjectSearchRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProjectSearchRequest.Builder |
Modifier and Type | Method and Description |
---|---|
String |
getName()
|
Permission |
getPermission()
When set, limits returned
projects to only those for which the current user has the required
Permission . |
boolean |
hasName()
Retrieves a flag indicating whether
name text has been set. |
boolean |
hasPermission()
Retrieves a flag indicating whether a specific
permission has been set. |
@Nullable public String getName()
projects
to only those whose names
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.
null
to return projects regardless of name@Nullable public Permission getPermission()
projects
to only those for which the current user has the required
Permission
. The provided value may be null
, in which case projects will automatically be
limited to those for which the current user has VIEW
permission.null
to default to VIEW
public boolean hasName()
name
text has been set.true
if getName()
is not null
or whitespace; otherwise, false
public boolean hasPermission()
permission
has been set. If no explicit
permission has been set, the search will default to VIEW
.true
if getPermission()
is not null
; otherwise, false
Copyright © 2022 Atlassian. All rights reserved.