public interface ApplicationProperties
| Modifier and Type | Field and Description |
|---|---|
static String |
PLATFORM_BAMBOO |
static String |
PLATFORM_CONFLUENCE |
static String |
PLATFORM_CROWD |
static String |
PLATFORM_FECRU |
static String |
PLATFORM_JIRA |
static String |
PLATFORM_STASH |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseUrl()
Deprecated.
since 2.10. This implementation is application-specific, and unreliable for a cross product plugin.
Use
getBaseUrl(UrlMode) instead. |
String |
getBaseUrl(UrlMode urlMode)
Get the base URL of the current application, with respect to the given
UrlMode. |
Date |
getBuildDate() |
String |
getBuildNumber() |
String |
getDisplayName()
Returns the display name for this application.
|
File |
getHomeDirectory() |
String |
getPlatformId()
Returns the exact ID of this application/platform, as defined in HAMS and used for licensing purposes.
|
String |
getPropertyValue(String key)
Deprecated.
As of SAL 2.7.
|
String |
getVersion() |
static final String PLATFORM_JIRA
static final String PLATFORM_CONFLUENCE
static final String PLATFORM_BAMBOO
static final String PLATFORM_CROWD
static final String PLATFORM_FECRU
static final String PLATFORM_STASH
@Deprecated String getBaseUrl()
getBaseUrl(UrlMode) instead.@Nonnull String getBaseUrl(UrlMode urlMode)
UrlMode. This varies as follows:
UrlMode.CANONICAL return the configured base URL.UrlMode.ABSOLUTE return either the base URL of a request in the current scope, or the
configured base URL if there is no such request.UrlMode.RELATIVE return either the context path of a request in the current scope, or the
configured context path if there is no such request.UrlMode.RELATIVE_CANONICAL return the configured context path.UrlMode.AUTO return either a relative URL if there is a request in the current scope, or the
canonical URL if there is no such request.urlMode - the UrlMode to use.@Nonnull String getDisplayName()
getPlatformId()@Nonnull String getPlatformId()
PLATFORM_FECRU) from this method.getDisplayName()@Nonnull String getBuildNumber()
Long.parseLong(String)@Nullable File getHomeDirectory()
@Deprecated String getPropertyValue(String key)
key - The Key of the property to retrieve.Copyright © 2015 Atlassian. All rights reserved.