|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.upgrade.util.AbstractLegacyPortletUpgradeTask
public abstract class AbstractLegacyPortletUpgradeTask
Abstract implementation that provides a default way of converting properties to the new userpreferences format.
Field Summary | |
---|---|
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 Summary | |
---|---|
AbstractLegacyPortletUpgradeTask()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String MULTIVALUE_SEPARATOR
protected static final String SEPARATOR_ENCODED
public static final String PORTLET_MULTI_VALUE_SEPARATOR
Constructor Detail |
---|
public AbstractLegacyPortletUpgradeTask()
Method Detail |
---|
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
convertUserPrefs
in interface LegacyPortletUpgradeTask
propertySet
- the old portletConfiguration propertySet to be converted
protected String convertMultiSelectValue(String values)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |