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.
| |||||||||||
Gets the display name of the current 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.
| |||||||||||
Gets the email address used in the 'sender' field for any email notification.
| |||||||||||
Retrieves the server ID used for licensing.
| |||||||||||
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
Gets the display name of the current instance.
null
if the display name is not configured
"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 |
---|
Gets the email address used in the 'sender' field for any email notification.
Retrieves the server ID used for licensing.
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 |
---|