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

public class ContactServiceImpl extends AbstractRemoteService implements ContactService
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(long[] ids)
    Deletes a selection of contacts
    load(long id)
    Loads a contact from the database
    parseContacts(boolean preview, GUIParseContactsParameters parameters)
    Reads the contacts that are about to be imported from CSV file
    void
    save(GUIContact contact)
    Saves a contact in the database
    void
    shareContacts(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.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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContactServiceImpl

      public ContactServiceImpl()
  • Method Details

    • delete

      public void delete(long[] ids) throws ServerException
      Description copied from interface: ContactService
      Deletes a selection of contacts
      Specified by:
      delete in interface ContactService
      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: ContactService
      Saves a contact in the database
      Specified by:
      save in interface ContactService
      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: ContactService
      Loads a contact from the database
      Specified by:
      load in 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
    • parseContacts

      public 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 interface ContactService
      Parameters:
      preview - if it is just to see the extraction, do not save
      parameters - the rules to interpret the CSV
      Returns:
      the extracted contacts
      Throws:
      ServerException - an error happened in the server application
    • shareContacts

      public void shareContacts(long[] contactIds, long[] userIds, long[] groupIds) throws ServerException
      Description copied from interface: ContactService
      Shares contacts among a set of users and groups
      Specified by:
      shareContacts in 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