Package com.atlassian.jira.help
Class MockHelpUrlsParser
java.lang.Object
com.atlassian.jira.help.MockHelpUrlsParser
- All Implemented Interfaces:
HelpUrlsParser
- Since:
- v6.2.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUrlOd
(String key, String url) io.atlassian.fugue.Option
<String> getGeneratedDefault
(String value) getGeneratedUrl
(HelpUrl url, String value) Parse the passed properties and return an equivalentHelpUrls
instance.Parse two passed maps with user and admin properties and return an equivalentHelpUrls
instance.parse
(Properties properties) Parse the passed properties and return an equivalentHelpUrls
instance.parse
(Properties externalProperties, Properties internalProperties) Parse the passed properties and return an equivalentHelpUrls
instance.registerOd
(HelpUrl url) void
setApplicationHelpSpace
(io.atlassian.fugue.Option<String> applicationHelpSpace) setDefaultUrl
(String url, String title) setOnDemand
(boolean onDemand)
-
Constructor Details
-
MockHelpUrlsParser
public MockHelpUrlsParser()
-
-
Method Details
-
parse
Description copied from interface:HelpUrlsParser
Parse the passed properties and return an equivalentHelpUrls
instance.- Specified by:
parse
in interfaceHelpUrlsParser
- Parameters:
properties
- the properties to parse.- Returns:
- the
HelpUrls
representation of the passed properties.
-
parse
@Nonnull public HelpUrls parse(@Nonnull Properties externalProperties, @Nonnull Properties internalProperties) Description copied from interface:HelpUrlsParser
Parse the passed properties and return an equivalentHelpUrls
instance.This method should not be called by plugins as the format of
internalProperties
is not documented and is subject to change.- Specified by:
parse
in interfaceHelpUrlsParser
- Parameters:
externalProperties
- 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.- Returns:
- the
HelpUrls
representation of the passed properties.
-
parse
Description copied from interface:HelpUrlsParser
Parse the passed properties and return an equivalentHelpUrls
instance.- Specified by:
parse
in interfaceHelpUrlsParser
- Parameters:
properties
- the properties to parse.- Returns:
- the
HelpUrls
representation of the passed properties.
-
parse
@Nonnull public HelpUrls parse(Map<String, String> userProperties, Map<String, String> adminProperties) Description copied from interface:HelpUrlsParser
Parse two passed maps with user and admin properties and return an equivalentHelpUrls
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.- Specified by:
parse
in interfaceHelpUrlsParser
- Parameters:
userProperties
- map containing user propertiesadminProperties
- map containing admin properties- Returns:
- the
HelpUrls
representation of the passed properties.
-
getDefault
-
registerOd
-
register
-
createUrl
-
createUrlOd
-
getGeneratedUrl
-
getGeneratedDefault
-
getApplicationHelpSpace
-
setApplicationHelpSpace
-
setDefaultUrl
-
setOnDemand
-