001
014
015 package com.liferay.portal.kernel.search;
016
017 import com.liferay.portal.security.permission.PermissionChecker;
018
019 import java.util.Locale;
020
021 import javax.portlet.PortletURL;
022
023
026 public class IndexerWrapper implements Indexer {
027
028 public IndexerWrapper(Indexer indexer) {
029 _indexer = indexer;
030 }
031
032 public void delete(Object obj) throws SearchException {
033 _indexer.delete(obj);
034 }
035
036 public String[] getClassNames() {
037 return _indexer.getClassNames();
038 }
039
040 public Document getDocument(Object obj) throws SearchException {
041 return _indexer.getDocument(obj);
042 }
043
044 public BooleanQuery getFacetQuery(
045 String className, SearchContext searchContext)
046 throws Exception {
047
048 return _indexer.getFacetQuery(className, searchContext);
049 }
050
051 public IndexerPostProcessor[] getIndexerPostProcessors() {
052 return _indexer.getIndexerPostProcessors();
053 }
054
055 public String getSearchEngineId() {
056 return _indexer.getSearchEngineId();
057 }
058
059 public String getSortField(String orderByCol) {
060 return _indexer.getSortField(orderByCol);
061 }
062
063 public Summary getSummary(
064 Document document, Locale locale, String snippet,
065 PortletURL portletURL)
066 throws SearchException {
067
068 return _indexer.getSummary(document, locale, snippet, portletURL);
069 }
070
071 public boolean hasPermission(
072 PermissionChecker permissionChecker, long entryClassPK,
073 String actionId)
074 throws Exception {
075
076 return _indexer.hasPermission(
077 permissionChecker, entryClassPK, actionId);
078 }
079
080 public boolean isFilterSearch() {
081 return _indexer.isFilterSearch();
082 }
083
084 public boolean isStagingAware() {
085 return _indexer.isStagingAware();
086 }
087
088 public void postProcessContextQuery(
089 BooleanQuery contextQuery, SearchContext searchContext)
090 throws Exception {
091
092 _indexer.postProcessContextQuery(contextQuery, searchContext);
093 }
094
095 public void postProcessSearchQuery(
096 BooleanQuery searchQuery, SearchContext searchContext)
097 throws Exception {
098
099 _indexer.postProcessSearchQuery(searchQuery, searchContext);
100 }
101
102 public void registerIndexerPostProcessor(
103 IndexerPostProcessor indexerPostProcessor) {
104
105 _indexer.registerIndexerPostProcessor(indexerPostProcessor);
106 }
107
108 public void reindex(Object obj) throws SearchException {
109 _indexer.reindex(obj);
110 }
111
112 public void reindex(String className, long classPK) throws SearchException {
113 _indexer.reindex(className, classPK);
114 }
115
116 public void reindex(String[] ids) throws SearchException {
117 _indexer.reindex(ids);
118 }
119
120 public Hits search(SearchContext searchContext) throws SearchException {
121 return _indexer.search(searchContext);
122 }
123
124 public void unregisterIndexerPostProcessor(
125 IndexerPostProcessor indexerPostProcessor) {
126
127 _indexer.unregisterIndexerPostProcessor(indexerPostProcessor);
128 }
129
130 private Indexer _indexer;
131
132 }