Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(long[] ids)
      Deletes a selection of contacts
      GUIContact load​(long id)
      Loads a contact from the database
      GUIContact[] 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 file
      void save​(GUIContact contact)
      Saves a contact in the database
      • 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
    • Constructor Detail

      • ContactServiceImpl

        public ContactServiceImpl()
    • Method Detail

      • 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
      • 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,
                                          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: ContactService
        Reads the contacts that are about to be imported from CSV file
        Specified by:
        parseContacts in 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