Fórum

How to add address for one organization

thumbnail
Gurumurthy Godlaveeti, modificado 11 Anos atrás.

How to add address for one organization

Regular Member Postagens: 208 Data de Entrada: 12/08/11 Postagens Recentes
Hello Everybody ,

How to add the address for one organization ? for this , i want to use below method from AddressServiceUtil.java

public static com.liferay.portal.model.Address addAddress(
java.lang.String className, long classPK, java.lang.String street1,
java.lang.String street2, java.lang.String street3,
java.lang.String city, java.lang.String zip, long regionId,
long countryId, int typeId, boolean mailing, boolean primary)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException, java.rmi.RemoteException


But in this method , i am a bit confuse with typeId, mailing , primary values , How to give the values for these fields ?
Can anybody share information about these fields .............
If i add address like this , Is it reflect in another tables ?


Thanks .
thumbnail
Gurumurthy Godlaveeti, modificado 11 Anos atrás.

RE: How to add address for one organization

Regular Member Postagens: 208 Data de Entrada: 12/08/11 Postagens Recentes
Hi All ,
I got answer for this . In Address table itself , Liferay taking typeId from ListType table , see ListType table then you can understand the use of it also . and the mailing is boolean . If organization have two or three then the first priority address is the address which primary is true .

Thanks .