I would like to create a user import tool. This tool needs to import phones as well.
The UserService has a method which accepts a list of Phone objects, but I cannot get a phone object without knowing the contact id already.
How can I create a Phone object without writing anything to the database?
I cannot say new PhoneImpl, because this class is in the impl.jar which is not visible to the portlets.
Is it possible to move this class out of impl or provide a very easy factory into the services which only creates a dummy object?