/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.calendar.util;

import com.liferay.calendar.model.Calendar;
import com.liferay.portal.kernel.search.BaseSearcher;
import com.liferay.portal.kernel.search.Document;
import com.liferay.portal.kernel.search.Indexer;
import com.liferay.portal.kernel.search.IndexerPostProcessor;
import com.liferay.portal.kernel.search.SearchContext;
import com.liferay.portal.kernel.search.Summary;

import java.util.Locale;

import javax.portlet.PortletURL;

/**
 * @author Adam Brandizzi
 */
public class CalendarSearcher extends BaseSearcher {

	public static final String[] CLASS_NAMES = {Calendar.class.getName()};

	public static Indexer getInstance() {
		return new CalendarSearcher();
	}

	public CalendarSearcher() {
		setFilterSearch(true);
		setPermissionAware(true);
	}


	public String[] getClassNames() {
		return CLASS_NAMES;
	}


	public IndexerPostProcessor[] getIndexerPostProcessors() {
		throw new UnsupportedOperationException();
	}


	public String getPortletId() {
		return null;
	}


	public void registerIndexerPostProcessor(
		IndexerPostProcessor indexerPostProcessor) {

		throw new UnsupportedOperationException();
	}


	protected void doDelete(Object obj) throws Exception {
		throw new UnsupportedOperationException();
	}


	protected Document doGetDocument(Object obj) throws Exception {
		throw new UnsupportedOperationException();
	}


	protected Summary doGetSummary(
			Document document, Locale locale, String snippet,
			PortletURL portletURL)
		throws Exception {

		throw new UnsupportedOperationException();
	}


	protected void doReindex(Object obj) throws Exception {
		throw new UnsupportedOperationException();
	}


	protected void doReindex(String className, long classPK) throws Exception {
		throw new UnsupportedOperationException();
	}


	protected void doReindex(String[] ids) throws Exception {
		throw new UnsupportedOperationException();
	}


	protected String getPortletId(SearchContext searchContext) {
		return null;
	}

}