Package com.logicaldoc.web.service
Class ContactServiceImpl
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.ContactServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService
,com.google.gwt.user.server.rpc.SerializationPolicyProvider
,ContactService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
Implementation of the ContactService
- Since:
- 6.8
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.ContactService
ContactService.Instance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes a selection of contactsload
(long id) Loads a contact from the databaseparseContacts
(boolean preview, GUIParseContactsParameters parameters) Reads the contacts that are about to be imported from CSV filevoid
save
(GUIContact contact) Saves a contact in the databasevoid
Shares contacts among a set of users and groupsMethods 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
-
ContactServiceImpl
public ContactServiceImpl()
-
-
Method Details
-
delete
Description copied from interface:ContactService
Deletes a selection of contacts- Specified by:
delete
in interfaceContactService
- Parameters:
ids
- identifiers of the contacts to delete- Throws:
ServerException
- an error happened in the server application
-
save
Description copied from interface:ContactService
Saves a contact in the database- Specified by:
save
in interfaceContactService
- Parameters:
contact
- the contact to save- Throws:
ServerException
- an error happened in the server application
-
load
Description copied from interface:ContactService
Loads a contact from the database- Specified by:
load
in interfaceContactService
- Parameters:
id
- identifier of the contact- Returns:
- the contact retrieved by the server application
- Throws:
ServerException
- an error happened in the server application
-
parseContacts
public List<GUIContact> parseContacts(boolean preview, GUIParseContactsParameters parameters) throws ServerException Description copied from interface:ContactService
Reads the contacts that are about to be imported from CSV file- Specified by:
parseContacts
in interfaceContactService
- Parameters:
preview
- if it is just to see the extraction, do not saveparameters
- the rules to interpret the CSV- Returns:
- the extracted contacts
- Throws:
ServerException
- an error happened in the server application
-