View Javadoc
1   /*
2    * Copyright (C) 2003-2013 eXo Platform SAS.
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU Affero General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU Affero General Public License for more details.
13   *
14   * You should have received a copy of the GNU Affero General Public License
15   * along with this program. If not, see <http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.services.wcm.search.base;
18  
19  import org.exoplatform.commons.api.search.data.SearchResult;
20  
21  import java.util.List;
22  import java.util.Map;
23  
24  /**
25   * Created by The eXo Platform SAS
26   * Author : eXoPlatform
27   *          exo@exoplatform.com
28   * Mar 8, 2013  
29   */
30  public class EcmsSearchResult extends SearchResult {
31  
32    private String fileType;
33    private String nodePath;
34    private Map<String, List<String>> breadcrumb;
35  
36    public EcmsSearchResult(String url,
37                            String urlOnImage,
38                            String title,
39                            String excerpt,
40                            String detail,
41                            String imageUrl,
42                            long date,
43                            long relevancy,
44                            String fileType,
45                            String nodePath) {
46      this(url, urlOnImage, title, excerpt, detail, imageUrl, date, relevancy, fileType, nodePath, null);
47    }
48  
49    public EcmsSearchResult(String url,
50                            String urlOnImage,
51                            String title,
52                            String excerpt,
53                            String detail,
54                            String imageUrl,
55                            long date,
56                            long relevancy,
57                            String fileType,
58                            String nodePath,
59                            Map<String, List<String>> breadcrumb) {
60      super(url, urlOnImage, title, excerpt, detail, imageUrl, date, relevancy);
61      this.fileType = fileType;
62      this.nodePath = nodePath;
63      this.breadcrumb = breadcrumb;
64    }
65    
66    public String getFileType() {
67      return this.fileType;
68    }
69    
70    public void setFileType(String fileType) {
71      this.fileType = fileType;
72    }
73  
74    public String getNodePath() {
75      return nodePath;
76    }
77      
78    public void setNodePath(String nodePath) {
79      this.nodePath = nodePath;
80    }
81  
82    public Map<String, List<String>> getBreadcrumb() {
83      return breadcrumb;
84    }
85  
86    public void setBreadcrumb(Map<String, List<String>> breadcrumb) {
87      this.breadcrumb = breadcrumb;
88    }
89  }