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 AbstractRemoteService
    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
      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
    • 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
      • 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