|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.utilities.StringUtilities
public class StringUtilities
Constructor Summary | |
---|---|
StringUtilities()
|
Method Summary | |
---|---|
static java.lang.String[] |
findAttributeValues(java.lang.String attributeValue)
Find the attribute values in case of multi value attribute. |
static java.lang.String |
quote(java.lang.String s)
Quote. |
static java.lang.String |
substituteParametersInString(java.lang.String statement,
java.util.Map valuesMap,
boolean surroundWithQuotes)
Substitutes parameters with sintax "$P{parameter_name}" whose value is set in the map. |
static java.lang.String |
substituteProfileAttributesInString(java.lang.String statement,
it.eng.spago.security.IEngUserProfile profile)
Substitutes the profile attributes with sintax "${attribute_name}" with the correspondent value in the string passed at input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtilities()
Method Detail |
---|
public static java.lang.String substituteProfileAttributesInString(java.lang.String statement, it.eng.spago.security.IEngUserProfile profile) throws java.lang.Exception
statement
- The string to be modified (tipically a query)profile
- The IEngUserProfile object
java.lang.Exception
- the exceptionpublic static java.lang.String[] findAttributeValues(java.lang.String attributeValue) throws java.lang.Exception
attributeValue
- The String representing the list of attribute values
java.lang.Exception
- in case of sintax errorpublic static java.lang.String quote(java.lang.String s)
s
- the s
public static java.lang.String substituteParametersInString(java.lang.String statement, java.util.Map valuesMap, boolean surroundWithQuotes) throws java.lang.Exception
statement
- The string to be modified (tipically a query)valuesMap
- Map name-valuesurroundWithQuotes
- flag: if true, the replacement will be surrounded by quotes if they are missing
java.lang.Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |