1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.commons.search.service;
18
19 import java.util.List;
20
21 import org.exoplatform.portal.mop.SiteKey;
22 import org.exoplatform.portal.mop.SiteType;
23 import org.exoplatform.portal.mop.navigation.NavigationContext;
24 import org.exoplatform.portal.mop.navigation.NavigationService;
25 import org.exoplatform.portal.mop.navigation.NavigationServiceException;
26 import org.exoplatform.portal.mop.navigation.NodeChangeListener;
27 import org.exoplatform.portal.mop.navigation.NodeContext;
28 import org.exoplatform.portal.mop.navigation.NodeModel;
29 import org.exoplatform.portal.mop.navigation.Scope;
30
31
32
33
34
35
36
37 public class MockNavigationService implements NavigationService {
38
39
40
41
42 @Override
43 public NavigationContext loadNavigation(SiteKey key) throws NullPointerException, NavigationServiceException {
44 return null;
45 }
46
47
48
49
50 @Override
51 public void saveNavigation(NavigationContext navigation) throws NullPointerException,
52 IllegalArgumentException,
53 NavigationServiceException {
54
55 }
56
57
58
59
60 @Override
61 public boolean destroyNavigation(NavigationContext navigation) throws NullPointerException,
62 IllegalArgumentException,
63 NavigationServiceException {
64 return false;
65 }
66
67
68
69
70 @Override
71 public <N> NodeContext<N> loadNode(NodeModel<N> model,
72 NavigationContext navigation,
73 Scope scope,
74 NodeChangeListener<NodeContext<N>> listener) throws NullPointerException,
75 NavigationServiceException {
76 return null;
77 }
78
79
80
81
82 @Override
83 public <N> void saveNode(NodeContext<N> context, NodeChangeListener<NodeContext<N>> listener) throws NullPointerException,
84 NavigationServiceException {
85
86 }
87
88
89
90
91 @Override
92 public <N> void updateNode(NodeContext<N> context, Scope scope, NodeChangeListener<NodeContext<N>> listener) throws NullPointerException,
93 IllegalArgumentException,
94 NavigationServiceException {
95
96 }
97
98
99
100
101 @Override
102 public <N> void rebaseNode(NodeContext<N> context, Scope scope, NodeChangeListener<NodeContext<N>> listener) throws NullPointerException,
103 NavigationServiceException {
104
105 }
106
107 @Override
108 public List<NavigationContext> loadNavigations(SiteType type)
109 throws NullPointerException, NavigationServiceException {
110
111 return null;
112 }
113
114 }