Class Utils
java.lang.Object
org.exoplatform.portal.pom.config.Utils
- Version:
- $Revision$
- Author:
- Julien Viet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringtodo: move to common modulestatic Stringstatic StringEscape the provided string for being usable as a query litteral.static <E> List<E> safeImmutableList(E... list) static <E> List<E> safeImmutableList(List<E> list) static <K,V> Map <K, V> safeImmutableMap(Map<K, V> map) static String[]Splits a string according to a string separator.static String[]todo: move to common module
-
Field Details
-
USER_NAME_VALIDATOR_REGEX
- See Also:
-
FIRST_CHARACTER_NAME_VALIDATOR_REGEX
- See Also:
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
join
todo: move to common module- Parameters:
separator-strings-- Returns:
-
join
-
split
todo: move to common module- Parameters:
separator-s-- Returns:
-
safeImmutableList
-
safeImmutableList
-
safeImmutableMap
-
split
Splits a string according to a string separator.
The provided index defines the beginning of the splitted chunks in the returned array. The values from the beginning up to the value index - 1 will be null values.- Parameters:
separator- the string separatorindex- the index to which the chunks begins- the string to split- Returns:
- an array containing the splitted chunks plus extra leading pad
-
queryEscape
Escape the provided string for being usable as a query litteral.- Parameters:
s- the string to escpae- Returns:
- the escaped result
-