Foros de discusión

Add Address to new Organization

Camilla M., modificado hace 13 años.

Add Address to new Organization

New Member Mensajes: 3 Fecha de incorporación: 9/10/10 Mensajes recientes
Hi,

i'm trying to add a new Organization with corresponding Address etc. using:

OrganizationServiceUtil.addOrganization(
parentOrganizationId, name, type, recursable, regionId,
countryId, statusId, comments, addresses, emailAddresses,
orgLabors, phones, websites, serviceContext);


For example for adding the given Address to the "addresses"-List above I tried:

Address address = new AddressImpl();
address.setCity("example_city");
List<Address> addresses = new ArrayList<Address>();
addresses.add(address);

Which ends up in compilation "class AddressImpl(): cannot find symbol"- Errors while building the containing portlet.

What is a proper way to add an Address to an Organization in this case?

Many thanks!
Camilla