-
Notifications
You must be signed in to change notification settings - Fork 642
Expand file tree
/
Copy pathSettingsInterface.java
More file actions
270 lines (234 loc) · 11.2 KB
/
SettingsInterface.java
File metadata and controls
270 lines (234 loc) · 11.2 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
package org.bimserver.shared.interfaces;
/******************************************************************************
* Copyright (C) 2009-2019 BIMserver.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see {@literal<http://www.gnu.org/licenses/>}.
*****************************************************************************/
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding.Use;
import org.bimserver.interfaces.objects.SServerSettings;
import org.bimserver.shared.exceptions.ServerException;
import org.bimserver.shared.exceptions.UserException;
@WebService(name = "SettingsInterface", targetNamespace="org.bimserver")
@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL, parameterStyle = ParameterStyle.WRAPPED)
public interface SettingsInterface extends PublicInterface {
/**
* @return The current address used for sending e-mails
* @throws ServerException
* @throws UserException
*/
@WebMethod(action = "getEmailSenderAddress")
String getEmailSenderAddress() throws ServerException, UserException;
/**
* @param emailSenderAddress The new e-mail address e-mail will be sent from
* @throws ServerException, UserException
*/
@WebMethod(action = "setEmailSenderAddress")
void setEmailSenderAddress(
@WebParam(name = "emailSenderAddress", partName = "setEmailSenderAddress.emailSenderAddress") String emailSenderAddress) throws ServerException, UserException;
/**
* @return The port on which the ProtocolBuffers server runs
* @throws ServerException, UserException
*/
@WebMethod(action = "getProtocolBuffersPort")
Integer getProtocolBuffersPort() throws ServerException, UserException;
/**
* @param port Set the port the ProtocolBuffers server runs on
* @throws ServerException, UserException
*/
@WebMethod(action = "setProtocolBuffersPort")
void setProtocolBuffersPort(
@WebParam(name = "port", partName = "setProtocolBuffersPort.port") Integer port) throws ServerException, UserException;
/**
* @return The address the BIMserver is running on (used for links in e-mail for example)
* @throws ServerException, UserException
*/
@WebMethod(action = "getSiteAddress")
String getSiteAddress() throws ServerException, UserException;
/**
* @param siteAddress The new address the BIMserver is running on (used for links in e-mail for example)
* @throws ServerException, UserException
*/
@WebMethod(action = "setSiteAddress")
void setSiteAddress(
@WebParam(name = "siteAddress", partName = "setSiteAddress.siteAddress") String siteAddress) throws ServerException, UserException;
/**
* @return Address of the SMTP server used for sending e-mails
* @throws ServerException, UserException
*/
@WebMethod(action = "getSmtpServer")
String getSmtpServer() throws ServerException, UserException;
/**
* @param smtpServer New address of the SMTP server used for sending e-mails
* @throws ServerException, UserException
*/
@WebMethod(action = "setSmtpServer")
void setSmtpServer(
@WebParam(name = "smtpServer", partName = "setSmtpServer.smtpServer") String smtpServer) throws ServerException, UserException;
/**
* @return Whether self-registration is enabled
* @throws ServerException, UserException
*/
@WebMethod(action = "isAllowSelfRegistration")
Boolean isAllowSelfRegistration() throws ServerException, UserException;
/**
* @param allowSelfRegistration Change whether self-registration is enabled
* @throws ServerException, UserException
*/
@WebMethod(action = "setAllowSelfRegistration")
void setAllowSelfRegistration(
@WebParam(name = "allowSelfRegistration", partName = "setAllowSelfRegistration.allowSelfRegistration") Boolean allowSelfRegistration)throws ServerException, UserException;
/**
* @return Whether to hide user lists (pricacy)
* @throws ServerException, UserException
*/
@WebMethod(action = "isHideUserListForNonAdmin")
Boolean isHideUserListForNonAdmin() throws ServerException, UserException;
/**
* @param hideUserListForNonAdmin Set whether user lists should be hidden (privacy)
* @throws ServerException, UserException
*/
@WebMethod(action = "setHideUserListForNonAdmin")
void setHideUserListForNonAdmin(
@WebParam(name = "hideUserListForNonAdmin", partName = "setHideUserListForNonAdmin.hideUserListForNonAdmin") Boolean hideUserListForNonAdmin) throws ServerException, UserException;
/**
* @return Whether a user can create top level projects
* @throws ServerException, UserException
*/
@WebMethod(action = "isAllowUsersToCreateTopLevelProjects")
Boolean isAllowUsersToCreateTopLevelProjects() throws ServerException, UserException;
/**
* @param allowUsersToCreateTopLevelProjects Set if users can create top level projects
* @throws ServerException, UserException
*/
@WebMethod(action = "setAllowUsersToCreateTopLevelProjects")
void setAllowUsersToCreateTopLevelProjects(
@WebParam(name = "allowUsersToCreateTopLevelProjects", partName = "setAllowUsersToCreateTopLevelProjects.allowUsersToCreateTopLevelProjects") Boolean allowUsersToCreateTopLevelProjects) throws ServerException, UserException;
/**
* @return Whether the BIMserver should do checkin merging (warning: this will alter your models)
* @throws ServerException, UserException
*/
@WebMethod(action = "isCheckinMergingEnabled")
Boolean isCheckinMergingEnabled() throws ServerException, UserException;
/**
* @param checkinMergingEnabled Set whether the BIMserver should do checkin merging (warning: this wil alter your models)
* @throws ServerException, UserException
*/
@WebMethod(action = "setCheckinMergingEnabled")
void setCheckinMergingEnabled(
@WebParam(name = "checkinMergingEnabled", partName = "setCheckinMergingEnabled.checkinMergingEnabled") Boolean checkinMergingEnabled) throws ServerException, UserException;
/**
* @return Whether a confirmation e-mail should be sent after registration
* @throws ServerException, UserException
*/
@WebMethod(action = "isSendConfirmationEmailAfterRegistration")
Boolean isSendConfirmationEmailAfterRegistration() throws ServerException, UserException;
/**
* @param sendConfirmationEmailAfterRegistration Set whether a confirmation e-mail should be sent after registration
* @throws ServerException, UserException
*/
@WebMethod(action = "setSendConfirmationEmailAfterRegistration")
void setSendConfirmationEmailAfterRegistration(
@WebParam(name = "sendConfirmationEmailAfterRegistration", partName = "setSendConfirmationEmailAfterRegistration.sendConfirmationEmailAfterRegistration") Boolean sendConfirmationEmailAfterRegistration) throws ServerException, UserException;
/**
* @return Whether output files (serialized version) should be cached on disk
* @throws ServerException, UserException
*/
@WebMethod(action = "isCacheOutputFiles")
Boolean isCacheOutputFiles() throws ServerException, UserException;
/**
* @return Whether output files (serialized version) should be cached on disk
* @throws ServerException, UserException
*/
@WebMethod(action = "isGenerateGeometryOnCheckin")
Boolean isGenerateGeometryOnCheckin() throws ServerException, UserException;
/**
* @param cacheOutputFiles Set whether output files (serialized version) should be cached on disk
* @throws ServerException, UserException
*/
@WebMethod(action = "setCacheOutputFiles")
void setCacheOutputFiles(
@WebParam(name = "cacheOutputFiles", partName = "setCacheOutputFiles.cacheOutputFiles") Boolean cacheOutputFiles) throws ServerException, UserException;
/**
* @param generateGeometryOnCheckin Set whether geometry should be generated on checkin
* @throws ServerException, UserException
*/
@WebMethod(action = "setGenerateGeometryOnCheckin")
void setGenerateGeometryOnCheckin(
@WebParam(name = "generateGeometryOnCheckin", partName = "setGenerateGeometryOnCheckin.generateGeometryOnCheckin") Boolean generateGeometryOnCheckin) throws ServerException, UserException;
/**
* @return The current service repository server address
* @throws ServerException
* @throws UserException
*/
@WebMethod(action="getServiceRepositoryUrl")
String getServiceRepositoryUrl() throws ServerException, UserException;
/**
* @param url A new URL pointing to a server acting as a services repository
* @throws ServerException
* @throws UserException
*/
@WebMethod(action="setServiceRepositoryUrl")
void setServiceRepositoryUrl(
@WebParam(name = "url", partName = "setServiceRepositoryUrl.url") String url) throws ServerException, UserException;
/**
* @return The current server settings
* @throws ServerException
* @throws UserException
*/
@WebMethod(action = "getServerSettings")
SServerSettings getServerSettings() throws ServerException, UserException;
/**
* With this method you can set all server settings at once
* @param serverSettings
* @throws ServerException
* @throws UserException
*/
@WebMethod(action = "setServerSettings")
void setServerSettings(
@WebParam(name = "serverSettings", partName = "setServerSettings.serverSettings") SServerSettings serverSettings) throws ServerException, UserException;
/**
* Sets the domains that are whitelisted to connect to the different API endpoints. This is only a CORS (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) protection
* @param domains
* @throws ServerException
* @throws UserException
*/
@WebMethod(action = "setWhiteListedDomains")
void setWhiteListedDomains(
@WebParam(name = "domains", partName = "setWhiteListedDomains.domains") List<String> domains) throws ServerException, UserException;
/**
* Set whether only plugins can be installed that indicate to work with this BIMserver version
*
* @param strict Boolean
* @throws UserException
* @throws ServerException
*/
@WebMethod(action = "setPluginStrictVersionChecking")
void setPluginStrictVersionChecking(
@WebParam(name = "strict", partName = "setPluginStrictVersionChecking.strict") Boolean strict) throws UserException, ServerException;
@WebMethod(action = "isPluginStrictVersionChecking")
Boolean isPluginStrictVersionChecking() throws ServerException, UserException;
@WebMethod(action = "setServerName")
void setServerName(@WebParam(name = "serverName", partName = "setServerName.serverName") String serverName) throws ServerException, UserException;
@WebMethod(action = "setServerDescription")
void setServerDescription(@WebParam(name = "strict", partName = "setServerDescription.strict") String serverDescription) throws ServerException, UserException;
@WebMethod(action = "setServerIcon")
void setServerIcon(@WebParam(name = "serverIcon", partName = "setServerIcon.serverIcon") String serverIcon) throws ServerException, UserException;
}