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 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.
-
Constructor Details
-
InitialHelpUrlsParser
-
-
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(@Nonnull Map<String, String> userProperties, @Nonnull 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.
-