Class SearchContextTestUtil

java.lang.Object
com.liferay.portal.search.test.util.SearchContextTestUtil

public class SearchContextTestUtil extends Object
  • Constructor Details

    • SearchContextTestUtil

      public SearchContextTestUtil()
  • Method Details

    • getSearchContext

      public static com.liferay.portal.kernel.search.SearchContext getSearchContext() throws Exception
      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