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.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
public class ContactServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ContactService
Implementation of the ContactService- Since:
- 6.8
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.ContactService
ContactService.Instance
-
-
Constructor Summary
Constructors Constructor Description ContactServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(long[] ids)Deletes a selection of contactsGUIContactload(long id)Loads a contact from the databaseGUIContact[]parseContacts(boolean preview, String separator, String delimiter, boolean skipFirstRow, int firstName, int lastName, int email, int company, int phone, int mobile, int address)Reads the contacts that are about to be imported from CSV filevoidsave(GUIContact contact)Saves a contact in the database-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
delete
public void delete(long[] ids) throws ServerExceptionDescription copied from interface:ContactServiceDeletes a selection of contacts- Specified by:
deletein interfaceContactService- Parameters:
ids- identifiers of the contacts to delete- Throws:
ServerException- an error happened in the server application
-
save
public void save(GUIContact contact) throws ServerException
Description copied from interface:ContactServiceSaves a contact in the database- Specified by:
savein interfaceContactService- Parameters:
contact- the contact to save- Throws:
ServerException- an error happened in the server application
-
load
public GUIContact load(long id) throws ServerException
Description copied from interface:ContactServiceLoads a contact from the database- Specified by:
loadin 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 GUIContact[] parseContacts(boolean preview, String separator, String delimiter, boolean skipFirstRow, int firstName, int lastName, int email, int company, int phone, int mobile, int address) throws ServerException
Description copied from interface:ContactServiceReads the contacts that are about to be imported from CSV file- Specified by:
parseContactsin interfaceContactService- Parameters:
preview- if the preview must be shownseparator- the separator chardelimiter- the fields delimiterskipFirstRow- if the first row contains titles and mus be skippedfirstName- the first namelastName- the last nameemail- the emailcompany- the companyphone- the phonemobile- the mobile phoneaddress- the address- Returns:
- the extracted contacts
- Throws:
ServerException- an error happened in the server application
-
-