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.ContactServiceContactService.Instance
 
- 
 - 
Constructor SummaryConstructors Constructor Description ContactServiceImpl()
 - 
Method SummaryAll 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 databasevoidshareContacts(long[] contactIds, long[] userIds, long[] groupIds)Shares contacts among a set of users and groups- 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPost
 
- 
 
- 
- 
- 
Method Detail- 
deletepublic void delete(long[] ids) throws ServerExceptionDescription copied from interface:ContactServiceDeletes a selection of contacts- Specified by:
- deletein interface- ContactService
- Parameters:
- ids- identifiers of the contacts to delete
- Throws:
- ServerException- an error happened in the server application
 
 - 
savepublic void save(GUIContact contact) throws ServerException Description copied from interface:ContactServiceSaves a contact in the database- Specified by:
- savein interface- ContactService
- Parameters:
- contact- the contact to save
- Throws:
- ServerException- an error happened in the server application
 
 - 
loadpublic GUIContact load(long id) throws ServerException Description copied from interface:ContactServiceLoads a contact from the database- Specified by:
- loadin interface- ContactService
- Parameters:
- id- identifier of the contact
- Returns:
- the contact retrieved by the server application
- Throws:
- ServerException- an error happened in the server application
 
 - 
parseContactspublic 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 interface- ContactService
- Parameters:
- preview- if the preview must be shown
- separator- the separator char
- delimiter- the fields delimiter
- skipFirstRow- if the first row contains titles and mus be skipped
- firstName- the first name
- lastName- the last name
- email- the email
- company- the company
- phone- the phone
- mobile- the mobile phone
- address- the address
- Returns:
- the extracted contacts
- Throws:
- ServerException- an error happened in the server application
 
 - 
shareContactspublic void shareContacts(long[] contactIds, long[] userIds, long[] groupIds) throws ServerExceptionDescription copied from interface:ContactServiceShares contacts among a set of users and groups- Specified by:
- shareContactsin interface- ContactService
- Parameters:
- contactIds- identifiers of the contacts to share
- userIds- direct ids of users to share the contacts with
- groupIds- the groups of users to share the contacts with
- Throws:
- ServerException- share the search to
 
 
- 
 
-