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