1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
26
27
28
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 }