001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.search;
016    
017    import com.liferay.portal.kernel.cluster.Priority;
018    
019    /**
020     * @author Bruno Farache
021     */
022    public class BaseSearchEngine implements SearchEngine {
023    
024            public Priority getClusteredWritePriority() {
025                    return _clusteredWritePriority;
026            }
027    
028            public IndexSearcher getIndexSearcher() {
029                    return _indexSearcher;
030            }
031    
032            public IndexWriter getIndexWriter() {
033                    return _indexWriter;
034            }
035    
036            public String getName() {
037                    return _name;
038            }
039    
040            public String getVendor() {
041                    return _vendor;
042            }
043    
044            public boolean isClusteredWrite() {
045                    return _clusteredWrite;
046            }
047    
048            public boolean isLuceneBased() {
049                    return _luceneBased;
050            }
051    
052            public void setClusteredWrite(boolean clusteredWrite) {
053                    _clusteredWrite = clusteredWrite;
054            }
055    
056            public void setClusteredWritePriority(Priority clusteredWritePriority) {
057                    _clusteredWritePriority = clusteredWritePriority;
058            }
059    
060            public void setIndexSearcher(IndexSearcher indexSearcher) {
061                    _indexSearcher = indexSearcher;
062            }
063    
064            public void setIndexWriter(IndexWriter indexWriter) {
065                    _indexWriter = indexWriter;
066            }
067    
068            public void setLuceneBased(boolean luceneBased) {
069                    _luceneBased = luceneBased;
070            }
071    
072            public void setName(String name) {
073                    _name = name;
074            }
075    
076            public void setVendor(String vendor) {
077                    _vendor = vendor;
078            }
079    
080            private boolean _clusteredWrite;
081            private Priority _clusteredWritePriority;
082            private IndexSearcher _indexSearcher;
083            private IndexWriter _indexWriter;
084            private boolean _luceneBased;
085            private String _name;
086            private String _vendor;
087    
088    }