/
IConfigurationService.java
111 lines (78 loc) · 3.89 KB
/
IConfigurationService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
* to you under the GNU General Public License, version 3.0 (GPLv3)
* (the "License"); you may not use this file except in compliance
* with the License.
*
* You should have received a copy of the GNU General Public License,
* version 3.0 (GPLv3) along with this library; if not, see
* <http://www.gnu.org/licenses/>.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.jumpmind.symmetric.service;
import java.util.List;
import java.util.Map;
import org.jumpmind.symmetric.model.Channel;
import org.jumpmind.symmetric.model.ChannelMap;
import org.jumpmind.symmetric.model.NodeChannel;
import org.jumpmind.symmetric.model.NodeGroup;
import org.jumpmind.symmetric.model.NodeGroupChannelWindow;
import org.jumpmind.symmetric.model.NodeGroupLink;
import org.jumpmind.symmetric.model.NodeGroupLinkAction;
/**
* Provides an API to configure data synchronizations.
*/
public interface IConfigurationService {
public boolean refreshFromDatabase();
public List<NodeGroup> getNodeGroups();
public void saveNodeGroup(NodeGroup group);
public void saveNodeGroupLink(NodeGroupLink link);
public void deleteNodeGroup(String nodeGroupId);
public void deleteNodeGroupLink(NodeGroupLink link);
public List<NodeGroupLink> getNodeGroupLinks();
public List<NodeGroupLink> getNodeGroupLinksFor(String sourceGroupId);
public NodeGroupLink getNodeGroupLinkFor(String sourceNodeGroupId, String targetNodeGroupId);
/**
* Check to see if the channel is currently being used in the system.
*/
public boolean isChannelInUse(String channelId);
public void saveChannel(Channel channel, boolean reloadChannels);
public void saveChannel(NodeChannel channel, boolean reloadChannels);
public void saveNodeChannel(NodeChannel channel, boolean reloadChannels);
public void saveNodeChannelControl(NodeChannel channel, boolean reloadChannels);
public void deleteChannel(Channel channel);
public List<NodeGroupChannelWindow> getNodeGroupChannelWindows(String nodeGroupId, String channelId);
public NodeGroupLinkAction getDataEventActionByGroupLinkId(String sourceGroupId, String targetGroupId);
public List<NodeChannel> getNodeChannels(boolean refreshExtractMillis);
public List<NodeChannel> getNodeChannels(String nodeId, boolean refreshExtractMillis);
public NodeChannel getNodeChannel(String channelId, boolean refreshExtractMillis);
public Channel getChannel (String channelId);
public List<Channel> getFileSyncChannels();
public Map<String, Channel> getChannels(boolean refreshCache);
public NodeChannel getNodeChannel(String channelId, String nodeId, boolean refreshExtractMillis);
public void clearCache();
public void initDefaultChannels();
/**
* Returns two sets of channel names, one for suspended channels and one for
* ignored.
*
* @param nodeId
* @return A Map with two entries, the sets of which will always be defined
* but may be empty.
*/
public ChannelMap getSuspendIgnoreChannelLists(String nodeId);
public ChannelMap getSuspendIgnoreChannelLists();
/**
* @return a map of nodes to redirect to that is keyed by a list of external_ids that should be redirected.
*/
public Map<String,String> getRegistrationRedirectMap();
}