Package com.skava.util
Class SearchUtil
java.lang.Object
com.skava.util.SearchUtil
This is a Utility class for User Search model which contains validator and helper methods used in this service.
This will check whether the given sort parameter is valid or not.
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
getSearchCriteriaParam
(String searchParam, List<SearchCriteria> params) This method used to get search paramstatic void
isValidSearchKey
(UserCommonServices userCommonServices, String searchKey, String locale) This method is used to validate the search key and value.static boolean
isValidSearchParam
(String sortParam) This method is used to validate user sort params.static String
This method is used to get search key.static String
splitValue
(String[] split, String search, String operator) This method is used to get search value.
-
Field Details
-
SPLIT_LENGTH
public static final int SPLIT_LENGTH- See Also:
-
COLON_OPERATOR
- See Also:
-
NOT_OPERATOR
- See Also:
-
LESSER_OPERATOR
- See Also:
-
GREATER_OPERATOR
- See Also:
-
EQUAL_OPERATOR
- See Also:
-
-
Method Details
-
isValidSearchParam
This method is used to validate user sort params. This validate the given sort parameters and if it is not a valid one, it returns a boolean value false.- Parameters:
sortParam
- Indicates the search and sort params which is used for validating the sort and search params.- Returns:
- The boolean value True, if it a valid parameter.
-
getSearchCriteriaParam
This method used to get search param- Parameters:
searchParam
- Holds the search param.params
- Holds theList
ofSearchCriteria
holds the search criteria.
-
isValidSearchKey
public static void isValidSearchKey(UserCommonServices userCommonServices, String searchKey, String locale) This method is used to validate the search key and value. -
splitKey
This method is used to get search key. -
splitValue
This method is used to get search value.
-