Class CountryLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.CountryLocalServiceBaseImpl
com.liferay.portal.service.impl.CountryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Country>, com.liferay.portal.kernel.service.CountryLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService

public class CountryLocalServiceImpl extends CountryLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
See Also:
  • Constructor Details

    • CountryLocalServiceImpl

      public CountryLocalServiceImpl()
  • Method Details

    • addCountry

      public com.liferay.portal.kernel.model.Country addCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCompanyCountries

      public void deleteCompanyCountries(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCountry

      @SystemEvent(type=1) public com.liferay.portal.kernel.model.Country deleteCountry(com.liferay.portal.kernel.model.Country country) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: CountryLocalServiceBaseImpl
      Deletes the country from the database. Also notifies the appropriate model listeners.

      Important: Inspect CountryLocalServiceImpl 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:
      deleteCountry in interface com.liferay.portal.kernel.service.CountryLocalService
      Overrides:
      deleteCountry in class CountryLocalServiceBaseImpl
      Parameters:
      country - the country
      Returns:
      the country that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteCountry

      public com.liferay.portal.kernel.model.Country deleteCountry(long countryId) throws com.liferay.portal.kernel.exception.PortalException
      Description copied from class: CountryLocalServiceBaseImpl
      Deletes the country with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CountryLocalServiceImpl 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:
      deleteCountry in interface com.liferay.portal.kernel.service.CountryLocalService
      Overrides:
      deleteCountry in class CountryLocalServiceBaseImpl
      Parameters:
      countryId - the primary key of the country
      Returns:
      the country that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a country with the primary key could not be found
    • fetchCountryByA2

      public com.liferay.portal.kernel.model.Country fetchCountryByA2(long companyId, String a2)
    • fetchCountryByA3

      public com.liferay.portal.kernel.model.Country fetchCountryByA3(long companyId, String a3)
    • fetchCountryByName

      public com.liferay.portal.kernel.model.Country fetchCountryByName(long companyId, String name)
    • fetchCountryByNumber

      public com.liferay.portal.kernel.model.Country fetchCountryByNumber(long companyId, String number)
    • getCompanyCountries

      public List<com.liferay.portal.kernel.model.Country> getCompanyCountries(long companyId)
    • getCompanyCountries

      public List<com.liferay.portal.kernel.model.Country> getCompanyCountries(long companyId, boolean active)
    • getCompanyCountries

      public List<com.liferay.portal.kernel.model.Country> getCompanyCountries(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
    • getCompanyCountries

      public List<com.liferay.portal.kernel.model.Country> getCompanyCountries(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator)
    • getCompanyCountriesCount

      public int getCompanyCountriesCount(long companyId)
    • getCompanyCountriesCount

      public int getCompanyCountriesCount(long companyId, boolean active)
    • getCountryByA2

      public com.liferay.portal.kernel.model.Country getCountryByA2(long companyId, String a2) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCountryByA3

      public com.liferay.portal.kernel.model.Country getCountryByA3(long companyId, String a3) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCountryByName

      public com.liferay.portal.kernel.model.Country getCountryByName(long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCountryByNumber

      public com.liferay.portal.kernel.model.Country getCountryByNumber(long companyId, String number) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCountries

      public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Country> searchCountries(long companyId, Boolean active, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateActive

      public com.liferay.portal.kernel.model.Country updateActive(long countryId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCountry

      public com.liferay.portal.kernel.model.Country updateCountry(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCountryLocalizations

      public List<com.liferay.portal.kernel.model.CountryLocalization> updateCountryLocalizations(com.liferay.portal.kernel.model.Country country, Map<String,String> titleMap) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCountryLocalizations in interface com.liferay.portal.kernel.service.CountryLocalService
      Overrides:
      updateCountryLocalizations in class CountryLocalServiceBaseImpl
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateGroupFilterEnabled

      public com.liferay.portal.kernel.model.Country updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException