2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portal.kernel.search;
\r
17 import javax.servlet.http.HttpServletRequest;
\r
20 * @author Brian Wing Shun Chan
\r
22 public interface OpenSearch {
\r
24 public boolean isEnabled();
\r
26 public String search(
\r
27 HttpServletRequest request, long groupId, long userId,
\r
28 String keywords, int startPage, int itemsPerPage, String format)
\r
29 throws SearchException;
\r
31 public String search(
\r
32 HttpServletRequest request, long userId, String keywords,
\r
33 int startPage, int itemsPerPage, String format)
\r
34 throws SearchException;
\r
36 public String search(HttpServletRequest request, String url)
\r
37 throws SearchException;
\r
39 public abstract String search(
\r
40 HttpServletRequest request, long groupId, long folderId, long userId,
\r
41 String keywords, int startPage, int itemsPerPage, String format)
\r
42 throws SearchException;
\r
44 public abstract String search(
\r
45 HttpServletRequest request, long groupId, long folderId, long userId, long accountId,
\r
46 String keywords, int startPage, int itemsPerPage, String format)
\r
47 throws SearchException;
\r