Package com.logicaldoc.web.service
Class SettingServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.web.service.SettingServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService
,com.google.gwt.user.server.rpc.SerializationPolicyProvider
,SettingService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
Implementation of the SettingService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SettingService
SettingService.Instance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadConverterParameters
(String converter) Loads the parameters of a specified converterLoads email settings (SMTP connection)Load the GUI settingsLoads web services, webDav and other protocol settingsLoads the complete settings setloadSettingsByNames
(List<String> names) Loads a set of settings valuesloadWebserviceStats
(Long tenantId) Loads the usage stats of the webserviceremoveStorage
(int storageId) Tries to delete a storage and fails in case at least one folder is using it and also if the storage is marked as the default write onevoid
saveEmailSettings
(GUIEmailSettings settings) Saves email settings (SMTP connection)void
saveExtensionAliases
(String extension, String aliases) Persists new aliases for the given extensionvoid
saveFirewallSettings
(List<GUIParameter> settings) Saves settings related to the firewallvoid
saveRegistration
(String name, String email, String organization, String website) Saves the registration settingsvoid
saveSettings
(List<GUIParameter> settings) Saves settingsvoid
saveStorageSettings
(List<GUIParameter> settings) Saves settings related to the storageboolean
Tests the SMTP connectionboolean
testStorage
(int id) Tests a storage (read/write access)Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
SettingServiceImpl
public SettingServiceImpl()
-
-
Method Details
-
loadEmailSettings
Description copied from interface:SettingService
Loads email settings (SMTP connection)- Specified by:
loadEmailSettings
in interfaceSettingService
- Returns:
- the mail server settings
- Throws:
ServerException
- an error happened in the server application
-
saveEmailSettings
Description copied from interface:SettingService
Saves email settings (SMTP connection)- Specified by:
saveEmailSettings
in interfaceSettingService
- Parameters:
settings
- the SMTP settings- Throws:
ServerException
- an error happened in the server application
-
loadSettings
Description copied from interface:SettingService
Loads the complete settings set- Specified by:
loadSettings
in interfaceSettingService
- Returns:
- all the settings
- Throws:
ServerException
- an error happened in the server application
-
loadProtocolSettings
Description copied from interface:SettingService
Loads web services, webDav and other protocol settings- Specified by:
loadProtocolSettings
in interfaceSettingService
- Returns:
- the protocol settings
- Throws:
ServerException
- an error happened in the server application
-
saveSettings
Description copied from interface:SettingService
Saves settings- Specified by:
saveSettings
in interfaceSettingService
- Parameters:
settings
- the settings to save- Throws:
ServerException
- an error happened in the server application
-
saveFirewallSettings
Description copied from interface:SettingService
Saves settings related to the firewall- Specified by:
saveFirewallSettings
in interfaceSettingService
- Parameters:
settings
- the firewall settings- Throws:
ServerException
- an error happened in the server application
-
saveStorageSettings
Description copied from interface:SettingService
Saves settings related to the storage- Specified by:
saveStorageSettings
in interfaceSettingService
- Parameters:
settings
- the storage settings- Throws:
ServerException
- an error happened in the server application
-
removeStorage
Description copied from interface:SettingService
Tries to delete a storage and fails in case at least one folder is using it and also if the storage is marked as the default write one- Specified by:
removeStorage
in interfaceSettingService
- Parameters:
storageId
- identifier of the storage to remove- Returns:
- list of paths using the storage
- Throws:
ServerException
- an error happened in the server application
-
loadSettingsByNames
Description copied from interface:SettingService
Loads a set of settings values- Specified by:
loadSettingsByNames
in interfaceSettingService
- Parameters:
names
- The setting names to be retrieved- Returns:
- The array of settings
- Throws:
ServerException
- an error happened in the server application
-
loadGUISettings
Description copied from interface:SettingService
Load the GUI settings- Specified by:
loadGUISettings
in interfaceSettingService
- Returns:
- the User Interface settings
- Throws:
ServerException
- an error happened in the server application
-
testEmail
Description copied from interface:SettingService
Tests the SMTP connection- Specified by:
testEmail
in interfaceSettingService
- Parameters:
email
- email address to test(it will receive a test message)- Returns:
- True only if the email was sent
- Throws:
ServerException
- an error happened in the server application
-
testStorage
Description copied from interface:SettingService
Tests a storage (read/write access)- Specified by:
testStorage
in interfaceSettingService
- Parameters:
id
- identifier of the storage to test- Returns:
- True only if the storage has read/write permission
- Throws:
ServerException
- an error happened in the server application
-
saveRegistration
public void saveRegistration(String name, String email, String organization, String website) throws ServerException Description copied from interface:SettingService
Saves the registration settings- Specified by:
saveRegistration
in interfaceSettingService
- Parameters:
name
- person nameemail
- email contactorganization
- organization namewebsite
- the corporate website- Throws:
ServerException
- an error happened in the server application
-
loadConverterParameters
Description copied from interface:SettingService
Loads the parameters of a specified converter- Specified by:
loadConverterParameters
in interfaceSettingService
- Parameters:
converter
- name of the converter- Returns:
- the configuration parameters of the converter
- Throws:
ServerException
- an error happened in the server application
-
saveExtensionAliases
Description copied from interface:SettingService
Persists new aliases for the given extension- Specified by:
saveExtensionAliases
in interfaceSettingService
- Parameters:
extension
- the main file extensionaliases
- comma-separated set of aliases- Throws:
ServerException
- an error happened in the server application
-
loadWebserviceStats
Description copied from interface:SettingService
Loads the usage stats of the webservice- Specified by:
loadWebserviceStats
in interfaceSettingService
- Parameters:
tenantId
- identifier of the tenant to consider- Returns:
- all the stats
- Throws:
ServerException
- an error happened in the server application
-