Class VCardImportService

java.lang.Object
ch.tocco.nice2.optional.address.impl.action.VCardImportService

@Component public class VCardImportService extends Object
  • Constructor Details

  • Method Details

    • prepareUserConfirmationMessage

      public String prepareUserConfirmationMessage(Entity user, VCardImportObject importObject)
    • prepareAddressConfirmationMessage

      public String prepareAddressConfirmationMessage(Entity address, VCardImportObject importObject)
    • hasValidUserInformation

      public boolean hasValidUserInformation(VCardImportObject importObject)
      Check if vcard contains valid user information.
      A valid user information must have values for mandatory user fields 'firstname' and 'lastname'
      Parameters:
      importObject - the vcard import object
      Returns:
      true if vcard contains valid user information, false otherwise
    • hasValidAddressInformation

      public boolean hasValidAddressInformation(VCardImportObject importObject)
      Check if vcard contains valid address information.
      A valid address information must have values for mandatory address fields 'zip' and 'city'
      Parameters:
      importObject - the vcard import object
      Returns:
      true if vcard contains valid address information, false otherwise
    • fillUser

      public Entity fillUser(VCardImportObject importObject, Entity user)
    • fillAddress

      public Entity fillAddress(VCardImportObject importObject, Entity address)
    • buildSummaryMessage

      public String buildSummaryMessage(VCardImportCounter importCounter, boolean onDetailForm, boolean userImport)