public class SimpleLegacyPortletUpgradeTask extends AbstractLegacyPortletUpgradeTask
MULTIVALUE_SEPARATOR, PORTLET_MULTI_VALUE_SEPARATOR, SEPARATOR_ENCODED
Constructor and Description |
---|
SimpleLegacyPortletUpgradeTask(String portletKey,
String gadgetUri) |
SimpleLegacyPortletUpgradeTask(String portletKey,
URI gadgetUri) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
convertUserPrefs(com.opensymphony.module.propertyset.PropertySet propertySet)
Converts the propertySet in use by this portletConfiguration to a Map
|
URI |
getGadgetUri()
Returns the gadget URI to be used for this portlet.
|
String |
getPortletKey()
Returns the portletKey that this upgrade task can convert.
|
convertMultiSelectValue
public SimpleLegacyPortletUpgradeTask(String portletKey, URI gadgetUri)
public String getPortletKey()
LegacyPortletUpgradeTask
com.atlassian.jira.portal.Portlet#getId()
. For example: 'com.atlassian.jira.plugin.system.portlets:inprogress'getPortletKey
in interface LegacyPortletUpgradeTask
getPortletKey
in class AbstractLegacyPortletUpgradeTask
public URI getGadgetUri()
LegacyPortletUpgradeTask
getGadgetUri
in interface LegacyPortletUpgradeTask
getGadgetUri
in class AbstractLegacyPortletUpgradeTask
public Map<String,String> convertUserPrefs(com.opensymphony.module.propertyset.PropertySet propertySet)
LegacyPortletUpgradeTask
Implementations may choose to convert properties to userprefs depending on the new gadgets requirements. This doesn't have to represent a 1 to 1 mapping.
convertUserPrefs
in interface LegacyPortletUpgradeTask
convertUserPrefs
in class AbstractLegacyPortletUpgradeTask
propertySet
- the old portletConfiguration propertySet to be convertedCopyright © 2002-2023 Atlassian. All Rights Reserved.