org.pentaho.platform.plugin.action.pentahometadata
Class ActionDefinitionEncoder

java.lang.Object
  extended by org.pentaho.platform.plugin.action.pentahometadata.ActionDefinitionEncoder

public class ActionDefinitionEncoder
extends Object

This class was created to solve the following jira case. PDB-1122 Space in the filter name causes an XPATH error in charting. http://jira.pentaho.com/browse/PDB-1122 When creating charts on Dashboards with parameters using blank spaces the ActionSequence DOM generation was failing due to those parameters with blank spaces getting used to create xml elements. Look for references to this class to see where those blank spaces are encoded/decoded to solve this issue.

Author:
Ezequiel Cuellar

Field Summary
static String BLANK_SPACE_STR_REPLACEMENT
           
 
Constructor Summary
ActionDefinitionEncoder()
           
 
Method Summary
static String decodeBlankSpaces(String input)
           
static String encodeBlankSpaces(String input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLANK_SPACE_STR_REPLACEMENT

public static final String BLANK_SPACE_STR_REPLACEMENT
See Also:
Constant Field Values
Constructor Detail

ActionDefinitionEncoder

public ActionDefinitionEncoder()
Method Detail

encodeBlankSpaces

public static String encodeBlankSpaces(String input)

decodeBlankSpaces

public static String decodeBlankSpaces(String input)