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(long companyId, String uid) throws SearchException {
033 _indexer.delete(companyId, uid);
034 }
035
036 public void delete(Object obj) throws SearchException {
037 _indexer.delete(obj);
038 }
039
040 public String[] getClassNames() {
041 return _indexer.getClassNames();
042 }
043
044 public Document getDocument(Object obj) throws SearchException {
045 return _indexer.getDocument(obj);
046 }
047
048 public BooleanQuery getFacetQuery(
049 String className, SearchContext searchContext)
050 throws Exception {
051
052 return _indexer.getFacetQuery(className, searchContext);
053 }
054
055 public BooleanQuery getFullQuery(SearchContext searchContext)
056 throws SearchException {
057
058 return _indexer.getFullQuery(searchContext);
059 }
060
061 public IndexerPostProcessor[] getIndexerPostProcessors() {
062 return _indexer.getIndexerPostProcessors();
063 }
064
065 public String getPortletId() {
066 return _indexer.getPortletId();
067 }
068
069 public String getSearchEngineId() {
070 return _indexer.getSearchEngineId();
071 }
072
073 public String getSortField(String orderByCol) {
074 return _indexer.getSortField(orderByCol);
075 }
076
077 public Summary getSummary(
078 Document document, Locale locale, String snippet,
079 PortletURL portletURL)
080 throws SearchException {
081
082 return _indexer.getSummary(document, locale, snippet, portletURL);
083 }
084
085 public boolean hasPermission(
086 PermissionChecker permissionChecker, long entryClassPK,
087 String actionId)
088 throws Exception {
089
090 return _indexer.hasPermission(
091 permissionChecker, entryClassPK, actionId);
092 }
093
094 public boolean isFilterSearch() {
095 return _indexer.isFilterSearch();
096 }
097
098 public boolean isStagingAware() {
099 return _indexer.isStagingAware();
100 }
101
102 public void postProcessContextQuery(
103 BooleanQuery contextQuery, SearchContext searchContext)
104 throws Exception {
105
106 _indexer.postProcessContextQuery(contextQuery, searchContext);
107 }
108
109 public void postProcessSearchQuery(
110 BooleanQuery searchQuery, SearchContext searchContext)
111 throws Exception {
112
113 _indexer.postProcessSearchQuery(searchQuery, searchContext);
114 }
115
116 public void registerIndexerPostProcessor(
117 IndexerPostProcessor indexerPostProcessor) {
118
119 _indexer.registerIndexerPostProcessor(indexerPostProcessor);
120 }
121
122 public void reindex(Object obj) throws SearchException {
123 _indexer.reindex(obj);
124 }
125
126 public void reindex(String className, long classPK) throws SearchException {
127 _indexer.reindex(className, classPK);
128 }
129
130 public void reindex(String[] ids) throws SearchException {
131 _indexer.reindex(ids);
132 }
133
134 public Hits search(SearchContext searchContext) throws SearchException {
135 return _indexer.search(searchContext);
136 }
137
138 public void unregisterIndexerPostProcessor(
139 IndexerPostProcessor indexerPostProcessor) {
140
141 _indexer.unregisterIndexerPostProcessor(indexerPostProcessor);
142 }
143
144 private Indexer _indexer;
145
146 }