Class VCardImportService
java.lang.Object
ch.tocco.nice2.optional.address.impl.action.VCardImportService
-
Constructor Summary
ConstructorDescriptionVCardImportService
(Context context, TextResources textResources, EntityDefaultValueService defaultValueService, QueryBuilderFactory queryBuilderFactory, PhoneFormatter phoneFormatter) -
Method Summary
Modifier and TypeMethodDescriptionbuildSummaryMessage
(VCardImportCounter importCounter, boolean onDetailForm, boolean userImport) fillAddress
(VCardImportObject importObject, Entity address) fillUser
(VCardImportObject importObject, Entity user) 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'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'prepareAddressConfirmationMessage
(Entity address, VCardImportObject importObject) prepareUserConfirmationMessage
(Entity user, VCardImportObject importObject)
-
Constructor Details
-
VCardImportService
public VCardImportService(Context context, TextResources textResources, EntityDefaultValueService defaultValueService, QueryBuilderFactory queryBuilderFactory, PhoneFormatter phoneFormatter)
-
-
Method Details
-
prepareUserConfirmationMessage
-
prepareAddressConfirmationMessage
-
hasValidUserInformation
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
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
-
fillAddress
-
buildSummaryMessage
public String buildSummaryMessage(VCardImportCounter importCounter, boolean onDetailForm, boolean userImport)
-