Class AddressLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.AddressLocalServiceBaseImpl
com.liferay.portal.service.impl.AddressLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.AddressLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Address>, com.liferay.portal.kernel.service.PersistedModelLocalService

public class AddressLocalServiceImpl extends AddressLocalServiceBaseImpl
Author:
Brian Wing Shun Chan, Alexander Chow
  • Constructor Details

    • AddressLocalServiceImpl

      public AddressLocalServiceImpl()
  • Method Details

    • addAddress

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Address addAddress(String externalReferenceCode, long userId, String className, long classPK, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • copyAddress

      public com.liferay.portal.kernel.model.Address copyAddress(long sourceAddressId, String className, long classPK, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAddress

      @Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Address deleteAddress(com.liferay.portal.kernel.model.Address address)
      Description copied from class: AddressLocalServiceBaseImpl
      Deletes the address from the database. Also notifies the appropriate model listeners.

      Important: Inspect AddressLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteAddress in interface com.liferay.portal.kernel.service.AddressLocalService
      Overrides:
      deleteAddress in class AddressLocalServiceBaseImpl
      Parameters:
      address - the address
      Returns:
      the address that was removed
    • deleteAddress

      public com.liferay.portal.kernel.model.Address deleteAddress(long addressId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: AddressLocalServiceBaseImpl
      Deletes the address with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AddressLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Specified by:
      deleteAddress in interface com.liferay.portal.kernel.service.AddressLocalService
      Overrides:
      deleteAddress in class AddressLocalServiceBaseImpl
      Parameters:
      addressId - the primary key of the address
      Returns:
      the address that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a address with the primary key could not be found
    • deleteAddresses

      public void deleteAddresses(long companyId, String className, long classPK)
    • deleteCountryAddresses

      public void deleteCountryAddresses(long countryId)
    • deleteRegionAddresses

      public void deleteRegionAddresses(long regionId)
    • getAddresses

      public List<com.liferay.portal.kernel.model.Address> getAddresses()
    • getAddresses

      public List<com.liferay.portal.kernel.model.Address> getAddresses(long companyId, String className, long classPK)
    • getAddresses

      public List<com.liferay.portal.kernel.model.Address> getAddresses(long companyId, String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Address> orderByComparator)
    • getAddressesCount

      public int getAddressesCount(long companyId, String className, long classPK)
    • getListTypeAddresses

      public List<com.liferay.portal.kernel.model.Address> getListTypeAddresses(long companyId, String className, long classPK, long[] listTypeIds)
    • getListTypeAddresses

      public List<com.liferay.portal.kernel.model.Address> getListTypeAddresses(long companyId, String className, long classPK, long[] listTypeIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Address> orderByComparator)
    • searchAddresses

      public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address> searchAddresses(long companyId, String className, long classPK, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAddress

      public com.liferay.portal.kernel.model.Address updateAddress(long addressId, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAddress

      @Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Address updateAddress(long addressId, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public com.liferay.portal.kernel.model.Address updateExternalReferenceCode(com.liferay.portal.kernel.model.Address address, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public com.liferay.portal.kernel.model.Address updateExternalReferenceCode(long addressId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, String className, long classPK, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • getAddresses

      protected List<com.liferay.portal.kernel.model.Address> getAddresses(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchAddresses

      protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address> searchAddresses(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      protected void validate(long addressId, long companyId, long classNameId, long classPK, boolean mailing, boolean primary)
    • validate

      protected void validate(long addressId, long companyId, long classNameId, long classPK, String street1, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException