com.atlassian.bitbucket.server.ApplicationPropertiesService |
A service for retrieving and updating application properties.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Remove the mail host configuration.
| |||||||||||
Gets the base URL of the current instance.
| |||||||||||
Gets the display name of the current instance.
| |||||||||||
Returns the current home directory for this instance.
| |||||||||||
Gets the login page URI for the current instance.
| |||||||||||
Retrieves the mail host configuration
| |||||||||||
Return a value of a property as defined in the applications configuration files.
| |||||||||||
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 add-ons will no longer
be allowed to directly access repository data on disk. Instead, they will be required to use
other API services to interact with repositories.
| |||||||||||
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 add-ons will no longer
be allowed to directly access repository data on disk. Instead, they will be required to use
other API services to interact with repositories.
| |||||||||||
Gets the email address used in the 'sender' field for any email notification.
| |||||||||||
Retrieves the server ID used for licensing.
| |||||||||||
Returns the shared home directory.
| |||||||||||
Sets whether public signup is allowed for external users.
| |||||||||||
Sets the base URL of the current instance.
| |||||||||||
Sets the display name of the current instance.
| |||||||||||
Sets whether the SCM requests are allowed over HTTP(S).
| |||||||||||
Sets the mail host configuration, replacing any existing configuration.
| |||||||||||
Sets the number of failed login attempts before the user is required to enter a CAPTCHA verification.
| |||||||||||
Sets the email address used in the 'sender' field for any email notification.
| |||||||||||
Sets whether a CAPTCHA verification is required for signing up.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.bitbucket.server.ApplicationModeSupplier
|
Remove the mail host configuration.
Gets the base URL of the current instance.
The URL is guaranteed to be without a trailing slash
null
if the base URL is not configured
stash.home
that contains any scripts / executables used by the application.
stash.home
that contains any caches used by the application.
stash.home
that contains the configuration files.
stash.home
that contains data files, such as repositories
Gets the display name of the current instance.
null
if the display name is not configured
Returns the current home directory for this instance. The home directory will contain only node-local data,
such as caches, backups, logs and tmp. When running standalone this directory will also generally contain
the shared home under /shared
, but it is not required to.
"Unknown"
is returned.
Gets the login page URI for the current instance.
redirectUri | the URI the user should be redirected to after a successful login. |
---|
Retrieves the mail host configuration
null
if undefined.
propertyName | name of the property |
---|---|
defaultValue | the default value to return if it is not present |
NumberFormatException |
---|
Return a value of a property as defined in the applications configuration files. Code usually should use the Spring @Value annotation to get these injected, but in cases where that is not possible or the property name must be dynamically determined, this method and its adjuncts can be used instead.
This method should be used only by plugins.
propertyName | name of the property, which must start with "plugin." |
---|
IllegalArgumentException | if the property name is null, or if the property name does not start with "plugin." |
---|
propertyName | name of the property |
---|---|
defaultValue | the default value to return if it is not present |
propertyName | name of the property |
---|---|
defaultValue | the default value to return if it is not present |
propertyName | name of the property |
---|---|
defaultValue | the default value to return if it is not present |
NumberFormatException |
---|
propertyName | name of the property |
---|---|
defaultValue | the default value to return if it is not present |
NumberFormatException |
---|
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 add-ons will no longer
be allowed to directly access repository data on disk. Instead, they will be required to use
other API services to interact with repositories.
stash.shared.home
that contains the repositories.
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 add-ons will no longer
be allowed to directly access repository data on disk. Instead, they will be required to use
other API services to interact with repositories.
repository | the repository |
---|
Gets the email address used in the 'sender' field for any email notification.
Retrieves the server ID used for licensing.
Returns the shared home directory. This directory contains repository data, config and plugins/installed-plugins. When the application is clustered, this directory is shared among all nodes.
Sets whether public signup is allowed for external users.
publicSignUp | whether to allow public signup |
---|
Sets the base URL of the current instance.
The URL will be persisted without a trailing slash, if present.
Ex: given http://server/stash/
, the property will be saved as http://server/stash
baseUrl | publicly accessible URL for the current instance |
---|
Sets the display name of the current instance.
name | display name for the current instance |
---|
Sets whether the SCM requests are allowed over HTTP(S).
enabled | whether to enable HTTP(S) access |
---|
Sets the mail host configuration, replacing any existing configuration.
mailHostConfiguration | the configuration to store |
---|
Sets the number of failed login attempts before the user is required to enter a CAPTCHA verification.
maxCaptchaAttempts | maximum number of failed CAPTCHA |
---|
Sets the email address used in the 'sender' field for any email notification.
emailAddress | sender address for email notifications |
---|
Sets whether a CAPTCHA verification is required for signing up.
captchaOnSignUp | whether to enable CAPTCHA on signup |
---|