Package org.exoplatform.social.common
Class Utils
- java.lang.Object
-
- org.exoplatform.social.common.Utils
-
public class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcleanString(String str)Utility for cleaning space namestatic StringprocessUnifiedSearchCondition(String input)As the similarity is provided in the search term, we need to extract the keyword that user enter in the search formstatic StringremoveSpecialCharacterInSpaceFilter(String input)Filter all invalid character (anything except word, number, space and search wildcard) from Space search conditional.
-
-
-
Method Detail
-
processUnifiedSearchCondition
public static String processUnifiedSearchCondition(String input)
As the similarity is provided in the search term, we need to extract the keyword that user enter in the search form- Parameters:
input- the search value include the similarity- Returns:
- the search condition after process
-
removeSpecialCharacterInSpaceFilter
public static String removeSpecialCharacterInSpaceFilter(String input)
Filter all invalid character (anything except word, number, space and search wildcard) from Space search conditional.- Parameters:
input- String- Returns:
-
-