1
2
3
4
5
6
7 package com.atlassian.bonnie.search;
8
9 import com.atlassian.bonnie.Searchable;
10
11 import java.util.Collection;
12 import java.util.Collections;
13
14 public class MockSearchableObject implements Searchable
15 {
16 long id;
17 String title;
18 String description;
19 String keyword1;
20 String keyword2;
21 boolean indexable = true;
22
23 public long getId()
24 {
25 return id;
26 }
27
28 public void setId(long id)
29 {
30 this.id = id;
31 }
32
33 public String getTitle()
34 {
35 return title;
36 }
37
38 public void setTitle(String title)
39 {
40 this.title = title;
41 }
42
43 public String getDescription()
44 {
45 return description;
46 }
47
48 public void setDescription(String description)
49 {
50 this.description = description;
51 }
52
53 public Collection getSearchableDependants()
54 {
55 return Collections.EMPTY_LIST;
56 }
57
58 public boolean isIndexable()
59 {
60 return indexable;
61 }
62
63 public void setIndexable(boolean indexable)
64 {
65 this.indexable = indexable;
66 }
67
68 public String getKeyword1()
69 {
70 return keyword1;
71 }
72
73 public void setKeyword1(String keyword1)
74 {
75 this.keyword1 = keyword1;
76 }
77
78 public String getKeyword2()
79 {
80 return keyword2;
81 }
82
83 public void setKeyword2(String keyword2)
84 {
85 this.keyword2 = keyword2;
86 }
87 }