com.atlassian.bitbucket.server.ApplicationPropertiesService |
A service for retrieving and updating application properties.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Remove the mail host configuration.
| |||||||||||
Retrieves the configured base URL for the instance.
| |||||||||||
This method is deprecated.
in 5.11 for removal without replacement in 6.0. The
bin directory contains nothing
intended for use by app developers.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getCacheDir() instead.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getConfigDir() instead.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getDataDir() instead.
| |||||||||||
Gets the display name of the current instance.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getHomeDir() instead.
| |||||||||||
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 apps will no longer be
allowed to directly access repository data on disk. They will be required to use API services
to interact with repositories instead.
| |||||||||||
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 apps will no longer be
allowed to directly access repository data on disk. They will be required to use API services
to interact with repositories instead.
| |||||||||||
Gets the email address used in the 'sender' field for any email notification.
| |||||||||||
Retrieves the server ID used for licensing.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getSharedHomeDir() instead.
| |||||||||||
This method is deprecated.
in 5.11 for removal in 6.0. Use
getTempDir() instead.
| |||||||||||
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.
Retrieves the configured base URL for the instance. If the returned value is not null
it is guaranteed
to not end with a trailing slash.
null
if one has not been configured
This method is deprecated.
in 5.11 for removal without replacement in 6.0. The bin
directory contains nothing
intended for use by app developers.
This method is deprecated.
in 5.11 for removal in 6.0. Use getCacheDir()
instead.
This method is deprecated.
in 5.11 for removal in 6.0. Use getConfigDir()
instead.
This method is deprecated.
in 5.11 for removal in 6.0. Use getDataDir()
instead.
Gets the display name of the current instance.
null
if the display name is not configured
This method is deprecated.
in 5.11 for removal in 6.0. Use getHomeDir()
instead.
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 apps will no longer be
allowed to directly access repository data on disk. They will be required to use API services
to interact with repositories instead.
This method is deprecated.
in 5.10 for removal without replacement in 6.0. Starting in 6.0 apps will no longer be
allowed to directly access repository data on disk. They will be required to use API services
to interact with repositories instead.
repository | the repository |
---|
Gets the email address used in the 'sender' field for any email notification.
Retrieves the server ID used for licensing.
This method is deprecated.
in 5.11 for removal in 6.0. Use getSharedHomeDir()
instead.
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.
This method is deprecated.
in 5.11 for removal in 6.0. Use getTempDir()
instead.
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 |
---|