com.liferay.portal.service.impl
Class AddressServiceImpl

java.lang.Object
  extended bycom.liferay.portal.service.impl.PrincipalBean
      extended bycom.liferay.portal.service.impl.AddressServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.AddressService

public class AddressServiceImpl
extends PrincipalBean
implements com.liferay.portal.service.AddressService

View Source

Author:
Brian Wing Shun Chan, Alexander Chow

Field Summary
 
Fields inherited from class com.liferay.portal.service.impl.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AddressServiceImpl()
           
 
Method Summary
 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)
           
 void deleteAddress(long addressId)
           
 com.liferay.portal.model.Address getAddress(long addressId)
           
 java.util.List getAddresses(java.lang.String className, long classPK)
           
 com.liferay.portal.model.Address updateAddress(long addressId, 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)
           
 
Methods inherited from class com.liferay.portal.service.impl.PrincipalBean
getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressServiceImpl

public AddressServiceImpl()
Method Detail

addAddress

public 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
Specified by:
addAddress in interface com.liferay.portal.service.AddressService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteAddress

public void deleteAddress(long addressId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Specified by:
deleteAddress in interface com.liferay.portal.service.AddressService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAddress

public com.liferay.portal.model.Address getAddress(long addressId)
                                            throws com.liferay.portal.PortalException,
                                                   com.liferay.portal.SystemException
Specified by:
getAddress in interface com.liferay.portal.service.AddressService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getAddresses

public java.util.List getAddresses(java.lang.String className,
                                   long classPK)
                            throws com.liferay.portal.PortalException,
                                   com.liferay.portal.SystemException
Specified by:
getAddresses in interface com.liferay.portal.service.AddressService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateAddress

public com.liferay.portal.model.Address updateAddress(long addressId,
                                                      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
Specified by:
updateAddress in interface com.liferay.portal.service.AddressService
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException