com.atlassian.bitbucket.project.Project |
Known Indirect Subclasses |
Describes a project in the system.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | KEY_REGEXP | The regexp to validate the project key when creating or updating from an untrusted source. | |||||||||
String | KEY_TRUSTED_REGEXP | The regexp to validate the project key when creating or updating from a trusted source - slightly more relaxed
than KEY_REGEXP by allowing project keys that start with a tilda as do personal projects. |
|||||||||
int | MAX_KEY_LENGTH | The maximum length of a project key. | |||||||||
int | MAX_NAMESPACE_LENGTH | The maximum length of a project namespace. | |||||||||
int | MAX_NAME_LENGTH | The maximum length of a project name. | |||||||||
String | NAMESPACE_REGEXP | The regexp to validate the project namespace. | |||||||||
String | NAME_REGEXP | The regexp to validate the project name. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the project's
type . | |||||||||||
Retrieves a flag indicating whether this project is public.
|
The regexp to validate the project key when creating or updating from an untrusted source.
The regexp to validate the project key when creating or updating from a trusted source - slightly more relaxed
than KEY_REGEXP
by allowing project keys that start with a tilda as do personal projects.
The maximum length of a project key.
The maximum length of a project namespace.
The maximum length of a project name.
The regexp to validate the project namespace.
The regexp to validate the project name.
visitor | the visitor to process the project instance |
---|
mirror mode
and will be null
in standard installations.Retrieves a flag indicating whether this project is public.
Note, this flag is taken into account when calculating whether this project is accessible to
unauthenticated users but is not the definitive answer. For a definitive answer, use
isPubliclyAccessible
.
true
if the project has been marked as public, false
otherwise