public abstract class AbstractLegacyPortletUpgradeTask extends Object implements LegacyPortletUpgradeTask
Modifier and Type | Field and Description |
---|---|
protected static String |
MULTIVALUE_SEPARATOR
Separator used by new gadgets
|
static String |
PORTLET_MULTI_VALUE_SEPARATOR |
protected static String |
SEPARATOR_ENCODED
If a multivalue value contains a '|' then Shindig will %encode it to this
|
Constructor and Description |
---|
AbstractLegacyPortletUpgradeTask() |
Modifier and Type | Method and Description |
---|---|
protected String |
convertMultiSelectValue(String values) |
Map<String,String> |
convertUserPrefs(com.opensymphony.module.propertyset.PropertySet propertySet)
Converts the propertySet in use by this portletConfiguration to a Map
|
abstract URI |
getGadgetUri()
Returns the gadget URI to be used for this portlet.
|
abstract String |
getPortletKey()
Returns the portletKey that this upgrade task can convert.
|
protected static final String MULTIVALUE_SEPARATOR
protected static final String SEPARATOR_ENCODED
public static final String PORTLET_MULTI_VALUE_SEPARATOR
public abstract String getPortletKey()
LegacyPortletUpgradeTask
com.atlassian.jira.portal.Portlet#getId()
. For example: 'com.atlassian.jira.plugin.system.portlets:inprogress'getPortletKey
in interface LegacyPortletUpgradeTask
public abstract URI getGadgetUri()
LegacyPortletUpgradeTask
getGadgetUri
in interface LegacyPortletUpgradeTask
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
propertySet
- the old portletConfiguration propertySet to be convertedCopyright © 2002-2022 Atlassian. All Rights Reserved.