掲示板

Add Address to new Organization

13年前 に Camilla M. によって更新されました。

Add Address to new Organization

New Member 投稿: 3 参加年月日: 10/10/09 最新の投稿
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