View Javadoc

1   /*
2    * SymmetricDS is an open source database synchronization solution.
3    *   
4    * Copyright (C) Keith Naas <knaas@users.sourceforge.net>
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License as published by the Free Software Foundation; either
9    * version 3 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this library; if not, see
18   * <http://www.gnu.org/licenses/>.
19   */
20  
21  package org.jumpmind.symmetric.service.mock;
22  
23  import java.util.List;
24  
25  import org.jumpmind.symmetric.model.DataEventAction;
26  import org.jumpmind.symmetric.model.Node;
27  import org.jumpmind.symmetric.model.NodeSecurity;
28  import org.jumpmind.symmetric.service.INodeService;
29  
30  public class MockNodeService implements INodeService {
31      public Node findIdentity() {
32          return null;
33      }
34  
35      public Node findNode(String nodeId) {
36          return null;
37      }
38  
39      public Node findNodeByExternalId(String nodeGroupId, String externalId) {
40          return null;
41      }
42  
43      public NodeSecurity findNodeSecurity(String nodeId) {
44          return null;
45      }
46  
47      public List<Node> findNodesToPull() {
48          return null;
49      }
50  
51      public List<Node> findNodesToPushTo() {
52          return null;
53      }
54  
55      public List<Node> findSourceNodesFor(DataEventAction eventAction) {
56          return null;
57      }
58  
59      public List<Node> findTargetNodesFor(DataEventAction eventAction) {
60          return null;
61      }
62  
63      public void ignoreNodeChannelForExternalId(boolean ignore, String channelId, String nodeGroupId, String externalId) {
64  
65      }
66  
67      public boolean isExternalIdRegistered(String nodeGroupId, String externalId) {
68          return false;
69      }
70  
71      public boolean isNodeAuthorized(String nodeId, String password) {
72          return false;
73      }
74  
75      public boolean isRegistrationEnabled(String nodeId) {
76          return false;
77      }
78  
79      public boolean setInitialLoadEnabled(String nodeId, boolean initialLoadEnabled) {
80          return false;
81      }
82  
83      public boolean updateNode(Node node) {
84          return false;
85      }
86  
87      public boolean updateNodeSecurity(NodeSecurity security) {
88          return false;
89      }
90  
91      public Node findIdentity(boolean useCache) {
92          return null;
93      }
94      
95      public String generateNodeId(String nodeGroupId, String externalId) {
96          return null;
97      }
98      
99      public String generatePassword() {
100         return null;
101     }
102 
103     public void flushNodeAuthorizedCache() {
104     }
105 }