Class SearchContextTestUtil
java.lang.Object
com.liferay.portal.search.test.util.SearchContextTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.search.SearchContext
static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long groupId) static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long userId, long[] groupIds, String keywords, Locale locale) static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long userId, long[] groupIds, String keywords, Locale locale, boolean highlightEnabled) static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long userId, long[] groupIds, String keywords, Locale locale, boolean highlightEnabled, Map<String, Serializable> attributes) static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long userId, long[] groupIds, String keywords, Locale locale, Map<String, Serializable> attributes) static com.liferay.portal.kernel.search.SearchContext
getSearchContext
(long userId, String keywords, Locale locale)
-
Constructor Details
-
SearchContextTestUtil
public SearchContextTestUtil()
-
-
Method Details
-
getSearchContext
- Throws:
Exception
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long groupId) throws Exception - Throws:
Exception
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long userId, long[] groupIds, String keywords, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long userId, long[] groupIds, String keywords, Locale locale, boolean highlightEnabled) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long userId, long[] groupIds, String keywords, Locale locale, boolean highlightEnabled, Map<String, Serializable> attributes) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long userId, long[] groupIds, String keywords, Locale locale, Map<String, Serializable> attributes) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getSearchContext
public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long userId, String keywords, Locale locale) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-