| java.lang.Object | |
| ↳ | com.atlassian.bitbucket.web.conditions.IsPersonalProjectCondition |
A condition for testing whether a project is personal.
By default, any personal project will match this condition. Setting the
onlyMine parameter to true restricts the condition to only return true if the project
is the current user's PersonalProject personal project.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ONLY_MINE | ||||||||||
| String | PROJECT | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Parses parameters for this condition.
| |||||||||||
Retrieves a flag indicating whether the project, which is expected to be present in the provided
context
under the key "project", is a personal project. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.web.Condition
| |||||||||||
Parses parameters for this condition. Supported parameters are:
onlyMine: true if the condition should only match the current user's personal project;
false if all personal project should match (Default: false)| params | configuration parameters for this condition |
|---|
Retrieves a flag indicating whether the project, which is expected to be present in the provided context
under the key "project", is a personal project.
If onlyMine is set to true, project must not only be personal but
must belong to the current user.
| context | the context containing the project |
|---|
true if the project is personal (optionally further restricted to only the current user);
otherwise, false