public class MockHelpUrlsParser extends Object implements HelpUrlsParser
| Constructor and Description |
|---|
MockHelpUrlsParser() |
| Modifier and Type | Method and Description |
|---|---|
MockHelpUrl |
createUrl(String key,
String url) |
MockHelpUrl |
createUrlOd(String key,
String url) |
HelpUrlsParser |
defaultUrl(String url,
String title)
Returns a new parser that will use the passed URL (title) in URLs that don't have a URL (title) set.
|
io.atlassian.fugue.Option<String> |
getApplicationHelpSpace() |
HelpUrl |
getDefault() |
HelpUrl |
getGeneratedDefault(String value) |
HelpUrl |
getGeneratedUrl(HelpUrl url,
String value) |
HelpUrlsParser |
onDemand(boolean onDemand)
Returns a new parser that will either use or ignore
.ondemand properties. |
MockHelpUrls |
parse(Map<String,String> properties)
Parse the passed properties and return an equivalent
HelpUrls instance. |
HelpUrls |
parse(Map<String,String> userProperties,
Map<String,String> adminProperties)
Parse two passed maps with user and admin properties and return an equivalent
HelpUrls instance. |
HelpUrls |
parse(Properties properties)
Parse the passed properties and return an equivalent
HelpUrls instance. |
HelpUrls |
parse(Properties externalProperties,
Properties internalProperties)
Parse the passed properties and return an equivalent
HelpUrls instance. |
MockHelpUrlsParser |
register(HelpUrl url) |
MockHelpUrlsParser |
registerOd(HelpUrl url) |
void |
setApplicationHelpSpace(io.atlassian.fugue.Option<String> applicationHelpSpace) |
@Nonnull public HelpUrlsParser onDemand(boolean onDemand)
HelpUrlsParser.ondemand properties.onDemand in interface HelpUrlsParseronDemand - true if the parser should use .ondemand properties, or false if they
should be ignored..ondemand properties@Nonnull public HelpUrlsParser defaultUrl(String url, String title)
HelpUrlsParserdefaultUrl in interface HelpUrlsParserurl - the default URL.title - the default title of the URL.HelpUrl configured.@Nonnull public HelpUrls parse(@Nonnull Properties properties)
HelpUrlsParserHelpUrls instance.parse in interface HelpUrlsParserproperties - the properties to parse.HelpUrls representation of the passed properties.@Nonnull public HelpUrls parse(@Nonnull Properties externalProperties, @Nonnull Properties internalProperties)
HelpUrlsParserHelpUrls instance.
This method should not be called by plugins as the format of internalProperties is not documented
and is subject to change.
parse in interface HelpUrlsParserexternalProperties - the properties to parse.internalProperties - the internal properties to parse. These properties follow a different format to the
that documented on this interface and should only be used by JIRA internally.HelpUrls representation of the passed properties.@Nonnull public MockHelpUrls parse(@Nonnull Map<String,String> properties)
HelpUrlsParserHelpUrls instance.parse in interface HelpUrlsParserproperties - the properties to parse.HelpUrls representation of the passed properties.@Nonnull public HelpUrls parse(Map<String,String> userProperties, Map<String,String> adminProperties)
HelpUrlsParserHelpUrls instance. Default
url will be read from the first map. Any other entries existing in both maps will be overwritten by entries from
second (admin properties) map.parse in interface HelpUrlsParseruserProperties - map containing user propertiesadminProperties - map containing admin propertiesHelpUrls representation of the passed properties.public HelpUrl getDefault()
public MockHelpUrlsParser registerOd(HelpUrl url)
public MockHelpUrlsParser register(HelpUrl url)
public MockHelpUrl createUrl(String key, String url)
public MockHelpUrl createUrlOd(String key, String url)
public io.atlassian.fugue.Option<String> getApplicationHelpSpace()
public void setApplicationHelpSpace(io.atlassian.fugue.Option<String> applicationHelpSpace)
Copyright © 2002-2019 Atlassian. All Rights Reserved.