Package com.atlassian.jira.help
Class InitialHelpUrlsParser
java.lang.Object
com.atlassian.jira.help.InitialHelpUrlsParser
- All Implemented Interfaces:
HelpUrlsParser
This is the actual
HelpUrlsParser in core container. It provides
an DefaultHelpUrlsParser instance with an initial onDemand that does a runtime check
to determine how to process .ondemand properties.- Since:
- v6.2.4
-
Constructor Summary
ConstructorsConstructorDescriptionInitialHelpUrlsParser(BuildUtilsInfo buildUtilsInfo, LocalHelpUrls localUrls) -
Method Summary
Modifier and TypeMethodDescriptionParse the passed properties and return an equivalentHelpUrlsinstance.Parse two passed maps with user and admin properties and return an equivalentHelpUrlsinstance.parse(Properties properties) Parse the passed properties and return an equivalentHelpUrlsinstance.parse(Properties externalProperties, Properties internalProperties) Parse the passed properties and return an equivalentHelpUrlsinstance.
-
Constructor Details
-
InitialHelpUrlsParser
-
-
Method Details
-
parse
Description copied from interface:HelpUrlsParserParse the passed properties and return an equivalentHelpUrlsinstance.- Specified by:
parsein interfaceHelpUrlsParser- Parameters:
properties- the properties to parse.- Returns:
- the
HelpUrlsrepresentation of the passed properties.
-
parse
@Nonnull public HelpUrls parse(@Nonnull Properties externalProperties, @Nonnull Properties internalProperties) Description copied from interface:HelpUrlsParserParse the passed properties and return an equivalentHelpUrlsinstance.This method should not be called by plugins as the format of
internalPropertiesis not documented and is subject to change.- Specified by:
parsein 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
HelpUrlsrepresentation of the passed properties.
-
parse
Description copied from interface:HelpUrlsParserParse the passed properties and return an equivalentHelpUrlsinstance.- Specified by:
parsein interfaceHelpUrlsParser- Parameters:
properties- the properties to parse.- Returns:
- the
HelpUrlsrepresentation of the passed properties.
-
parse
@Nonnull public HelpUrls parse(@Nonnull Map<String, String> userProperties, @Nonnull Map<String, String> adminProperties) Description copied from interface:HelpUrlsParserParse two passed maps with user and admin properties and return an equivalentHelpUrlsinstance. 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:
parsein interfaceHelpUrlsParser- Parameters:
userProperties- map containing user propertiesadminProperties- map containing admin properties- Returns:
- the
HelpUrlsrepresentation of the passed properties.
-