001
014
015 package com.liferay.portal.kernel.search;
016
017 import com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean;
018 import com.liferay.portal.kernel.messaging.proxy.ProxyRequest;
019
020 import java.util.Collection;
021
022
026 public class IndexWriterProxyBean extends BaseMultiDestinationProxyBean
027 implements IndexWriter {
028
029 public void addDocument(SearchContext searchContext, Document document) {
030 throw new UnsupportedOperationException();
031 }
032
033 public void addDocuments(
034 SearchContext searchContext, Collection<Document> documents) {
035
036 throw new UnsupportedOperationException();
037 }
038
039 public void deleteDocument(SearchContext searchContext, String uid) {
040 throw new UnsupportedOperationException();
041 }
042
043 public void deleteDocuments(
044 SearchContext searchContext, Collection<String> uids) {
045
046 throw new UnsupportedOperationException();
047 }
048
049 public void deletePortletDocuments(
050 SearchContext searchContext, String portletId) {
051
052 throw new UnsupportedOperationException();
053 }
054
055 @Override
056 public String getDestinationName(ProxyRequest proxyRequest) {
057 Object[] arguments = proxyRequest.getArguments();
058
059 SearchContext searchContext = (SearchContext)arguments[0];
060
061 String searchEngineId = searchContext.getSearchEngineId();
062
063 return SearchEngineUtil.getSearchWriterDestinationName(searchEngineId);
064 }
065
066 public void updateDocument(SearchContext searchContext, Document document) {
067 throw new UnsupportedOperationException();
068 }
069
070 public void updateDocuments(
071 SearchContext searchContext, Collection<Document> documents) {
072
073 throw new UnsupportedOperationException();
074 }
075
076 }