Package com.logicaldoc.web.service
Class SettingServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.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,- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
Implementation of the SettingService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SettingServiceSettingService.Instance
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionLoad the auditing settingsloadConverterParameters(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 webserviceremoveStore(int storeId) Tries to delete a store and fails in case at least one folder is using it and also if the store is marked as the default write onevoidsaveEmailSettings(GUIEmailSettings settings) Saves email settings (SMTP connection)voidsaveExtensionAliases(String extension, String aliases) Persists new aliases for the given extensionvoidsaveFirewallSettings(List<GUIParameter> settings) Saves settings related to the firewallvoidsaveRegistration(String name, String email, String organization, String website) Saves the registration settingsvoidsaveSettings(List<GUIParameter> settings) Saves settingsvoidsaveStoreSettings(List<GUIParameter> settings) Saves settings related to the storebooleanTests the SMTP connectionTests the connection to a proxybooleantestStore(int id) Tests a store (read/write access)Methods inherited from class com.logicaldoc.web.service.AbstractRemoteServicesetThreadRequestMethods inherited from class com.google.gwt.user.server.rpc.jakarta.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServletdoPostMethods inherited from class jakarta.servlet.http.HttpServletserviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Constructor Details- 
SettingServiceImplpublic SettingServiceImpl()
 
- 
- 
Method Details- 
loadEmailSettingsDescription copied from interface:SettingServiceLoads email settings (SMTP connection)- Specified by:
- loadEmailSettingsin interface- SettingService
- Returns:
- the mail server settings
- Throws:
- ServerException- an error happened in the server application
 
- 
saveEmailSettingsDescription copied from interface:SettingServiceSaves email settings (SMTP connection)- Specified by:
- saveEmailSettingsin interface- SettingService
- Parameters:
- settings- the SMTP settings
- Throws:
- ServerException- an error happened in the server application
 
- 
loadSettingsDescription copied from interface:SettingServiceLoads the complete settings set- Specified by:
- loadSettingsin interface- SettingService
- Returns:
- all the settings
- Throws:
- ServerException- an error happened in the server application
 
- 
loadProtocolSettingsDescription copied from interface:SettingServiceLoads web services, webDav and other protocol settings- Specified by:
- loadProtocolSettingsin interface- SettingService
- Returns:
- the protocol settings
- Throws:
- ServerException- an error happened in the server application
 
- 
saveSettingsDescription copied from interface:SettingServiceSaves settings- Specified by:
- saveSettingsin interface- SettingService
- Parameters:
- settings- the settings to save
- Throws:
- ServerException- an error happened in the server application
 
- 
saveFirewallSettingsDescription copied from interface:SettingServiceSaves settings related to the firewall- Specified by:
- saveFirewallSettingsin interface- SettingService
- Parameters:
- settings- the firewall settings
- Throws:
- ServerException- an error happened in the server application
 
- 
saveStoreSettingsDescription copied from interface:SettingServiceSaves settings related to the store- Specified by:
- saveStoreSettingsin interface- SettingService
- Parameters:
- settings- the store settings
- Throws:
- ServerException- an error happened in the server application
 
- 
removeStoreDescription copied from interface:SettingServiceTries to delete a store and fails in case at least one folder is using it and also if the store is marked as the default write one- Specified by:
- removeStorein interface- SettingService
- Parameters:
- storeId- identifier of the store to remove
- Returns:
- list of paths using the store
- Throws:
- ServerException- an error happened in the server application
 
- 
loadSettingsByNamesDescription copied from interface:SettingServiceLoads a set of settings values- Specified by:
- loadSettingsByNamesin interface- SettingService
- Parameters:
- names- The setting names to be retrieved
- Returns:
- The array of settings
- Throws:
- ServerException- an error happened in the server application
 
- 
loadGUISettingsDescription copied from interface:SettingServiceLoad the GUI settings- Specified by:
- loadGUISettingsin interface- SettingService
- Returns:
- the User Interface settings
- Throws:
- ServerException- an error happened in the server application
 
- 
testEmailDescription copied from interface:SettingServiceTests the SMTP connection- Specified by:
- testEmailin interface- SettingService
- 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
 
- 
testStoreDescription copied from interface:SettingServiceTests a store (read/write access)- Specified by:
- testStorein interface- SettingService
- Parameters:
- id- identifier of the store to test
- Returns:
- True only if the store has read/write permission
- Throws:
- ServerException- an error happened in the server application
 
- 
saveRegistrationpublic void saveRegistration(String name, String email, String organization, String website) throws ServerException Description copied from interface:SettingServiceSaves the registration settings- Specified by:
- saveRegistrationin interface- SettingService
- Parameters:
- name- person name
- email- email contact
- organization- organization name
- website- the corporate website
- Throws:
- ServerException- an error happened in the server application
 
- 
loadConverterParametersDescription copied from interface:SettingServiceLoads the parameters of a specified converter- Specified by:
- loadConverterParametersin interface- SettingService
- Parameters:
- converter- name of the converter
- Returns:
- the configuration parameters of the converter
- Throws:
- ServerException- an error happened in the server application
 
- 
saveExtensionAliasesDescription copied from interface:SettingServicePersists new aliases for the given extension- Specified by:
- saveExtensionAliasesin interface- SettingService
- Parameters:
- extension- the main file extension
- aliases- comma-separated set of aliases
- Throws:
- ServerException- an error happened in the server application
 
- 
loadWebserviceStatsDescription copied from interface:SettingServiceLoads the usage stats of the webservice- Specified by:
- loadWebserviceStatsin interface- SettingService
- Parameters:
- tenantId- identifier of the tenant to consider
- Returns:
- all the stats
- Throws:
- ServerException- an error happened in the server application
 
- 
loadAuditingSettingsDescription copied from interface:SettingServiceLoad the auditing settings- Specified by:
- loadAuditingSettingsin interface- SettingService
- Returns:
- the User Interface settings
- Throws:
- ServerException- an error happened in the server application
 
- 
testProxypublic Boolean testProxy(String host, int port, String username, String password) throws ServerException Description copied from interface:SettingServiceTests the connection to a proxy- Specified by:
- testProxyin interface- SettingService
- Parameters:
- host- the proxy host name
- port- the proxy port
- username- the username to connect to the proxy
- password- the password to connect to the proxy
- Returns:
- if the connection has been succesful or not
- Throws:
- ServerException- an error happened in the server application
 
 
-