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.
|
convertMultiSelectValuepublic SimpleLegacyPortletUpgradeTask(String portletKey, URI gadgetUri)
public String getPortletKey()
LegacyPortletUpgradeTaskcom.atlassian.jira.portal.Portlet#getId(). For example: 'com.atlassian.jira.plugin.system.portlets:inprogress'getPortletKey in interface LegacyPortletUpgradeTaskgetPortletKey in class AbstractLegacyPortletUpgradeTaskpublic URI getGadgetUri()
LegacyPortletUpgradeTaskgetGadgetUri in interface LegacyPortletUpgradeTaskgetGadgetUri in class AbstractLegacyPortletUpgradeTaskpublic Map<String,String> convertUserPrefs(com.opensymphony.module.propertyset.PropertySet propertySet)
LegacyPortletUpgradeTaskImplementations 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 LegacyPortletUpgradeTaskconvertUserPrefs in class AbstractLegacyPortletUpgradeTaskpropertySet - the old portletConfiguration propertySet to be convertedCopyright © 2002-2017 Atlassian. All Rights Reserved.