001    package railo.runtime.search;
002    
003    
004    
005    /**
006     * A Single Record of a Search Result
007     */
008    public class SearchResulItemImpl implements SearchResultItemPro {
009        
010            private String title;
011        private float score;
012        private int recordsSearched;
013        private String id;
014        private String key;
015        private String url;
016        private String summary;
017        private String custom1;
018        private String custom2;
019        private String custom3;
020        private String custom4;
021            private String categoryTree;
022            private String category;
023            private String mimeType;
024            private String author;
025            private String size;
026            private String contextSummary;
027        
028        /**
029         * @param id
030         * @param title
031         * @param score
032         * @param key 
033         * @param url 
034         * @param summary
035         * @param custom1 
036         * @param custom2 
037         * @param custom3 
038         * @param custom4 
039         * @param mimeType 
040         * @param author 
041         * @param size 
042         */
043        public SearchResulItemImpl(String id,String title, float score, String key, String url,String summary,String contextSummary,
044                    String categoryTree,String category,
045                String custom1,String custom2,String custom3,String custom4, String mimeType, String author, String size) {
046            this.id = id;
047            this.title = title;
048            this.score = score;
049            //this.recordsSearched = recordsSearched;
050            this.key = key;
051            this.url = url;
052            this.summary = summary;
053            this.contextSummary = contextSummary;
054    
055            this.categoryTree = categoryTree;
056            this.category = category;
057            this.custom1 = custom1;
058            this.custom2 = custom2;
059            this.custom3 = custom3;
060            this.custom4 = custom4;
061            this.mimeType = mimeType;
062            this.author = author;
063            this.size = size;
064        }
065        /**
066         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getRecordsSearched()
067         */
068        public int getRecordsSearched() {
069            return recordsSearched;
070        }
071        /**
072         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getScore()
073         */
074        public float getScore() {
075            return score;
076        }
077        /**
078         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getSummary()
079         */
080        public String getSummary() {
081            return summary;
082        }
083        /**
084         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getTitle()
085         */
086        public String getTitle() {
087            return title;
088        }
089        /**
090         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getId()
091         */
092        public String getId() {
093            return id;
094        }
095        
096        
097        /**
098         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getKey()
099         */
100        public String getKey() {
101            return key;
102        }
103        
104        /**
105         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getUrl()
106         */
107        public String getUrl() {
108            return url;
109        }
110        /**
111         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getCustom1()
112         */
113        public String getCustom1() {
114            return custom1;
115        }
116        /**
117         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getCustom2()
118         */
119        public String getCustom2() {
120            return custom2;
121        }
122        /**
123         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getCustom3()
124         */
125        public String getCustom3() {
126            return custom3;
127        }
128        /**
129         * @see railo.runtime.search.coreDuplicate.SearchResulItem#getCustom4()
130         */
131        public String getCustom4() {
132            return custom4;
133        }
134            /**
135             * @return the category
136             */
137            public String getCategory() {
138                    return category;
139            }
140            /**
141             * @return the categoryTree
142             */
143            public String getCategoryTree() {
144                    return categoryTree;
145            }
146            /**
147             * @return the mimeType
148             */
149            public String getMimeType() {
150                    return mimeType;
151            }
152            /**
153             * @return the author
154             */
155            public String getAuthor() {
156                    return author;
157            }
158            /**
159             * @return the size
160             */
161            public String getSize() {
162                    return size;
163            }
164            
165    
166        /**
167             * @return the contextSummary
168             */
169            public String getContextSummary() {
170                    return contextSummary;
171            }
172            public static SearchResultItemPro toSearchResultItemPro(SearchResulItem item) {
173                    return (SearchResultItemPro) item;
174            }
175    }