com.atlassian.stash.server.ApplicationPropertiesService |
Queries various properties of Stash.
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 of this Stash 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.
| |||||||||||
Returns the stash 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 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.
|
Remove the mail host configuration.
Gets the base URL of the current instance.
The URL is guaranteed to be without a trailing slash.
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 repositoriesGets the display name of the current instance.
Returns the current home directory of this Stash instance. The Stash home directory will contain only node local data like caches, backups, logs and tmp. In case Stash is running standalone mode this directory will mostly likely contains Stash shared home under /shared, but there is no guarantee.
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 |
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 |
---|
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 |
NumberFormatException |
---|
stash.home
that contains the 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 stash shared home directory. This directory is the new home of data, config and plugins/installed-plugins. When in clustering environment this directory is shared among all clustering nodes (most likely by NFS).
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 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 |
---|