--- /dev/null
+/**\r
+ * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.\r
+ *\r
+ * This library is free software; you can redistribute it and/or modify it under\r
+ * the terms of the GNU Lesser General Public License as published by the Free\r
+ * Software Foundation; either version 2.1 of the License, or (at your option)\r
+ * any later version.\r
+ *\r
+ * This library is distributed in the hope that it will be useful, but WITHOUT\r
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more\r
+ * details.\r
+ */\r
+\r
+package com.liferay.portal.kernel.search;\r
+\r
+import javax.servlet.http.HttpServletRequest;\r
+\r
+/**\r
+ * @author Brian Wing Shun Chan\r
+ */\r
+public interface OpenSearch {\r
+\r
+ public boolean isEnabled();\r
+\r
+ public String search(\r
+ HttpServletRequest request, long groupId, long userId,\r
+ String keywords, int startPage, int itemsPerPage, String format)\r
+ throws SearchException;\r
+\r
+ public String search(\r
+ HttpServletRequest request, long userId, String keywords,\r
+ int startPage, int itemsPerPage, String format)\r
+ throws SearchException;\r
+\r
+ public String search(HttpServletRequest request, String url)\r
+ throws SearchException;\r
+ \r
+ public abstract String search(\r
+ HttpServletRequest request, long groupId, long folderId, long userId,\r
+ String keywords, int startPage, int itemsPerPage, String format)\r
+ throws SearchException; \r
+ \r
+ public abstract String search(\r
+ HttpServletRequest request, long groupId, long folderId, long userId, long accountId,\r
+ String keywords, int startPage, int itemsPerPage, String format)\r
+ throws SearchException;\r
+\r
+}
\ No newline at end of file