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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(long[] ids) 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 filevoidsave(GUIContact contact) Saves a contact in the databasevoidshareContacts(long[] contactIds, long[] userIds, long[] groupIds) Shares contacts among a set of users and groupsMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPostMethods inherited from class javax.servlet.http.HttpServlet
serviceMethods 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: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
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
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, GUIParseContactsParameters parameters) 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 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
-