Package com.liferay.portal.service.impl
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
- Author:
- Brian Wing Shun Chan
- See Also:
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.CountryLocalServiceBaseImpl
counterLocalService, countryLocalizationPersistence, countryLocalService, countryPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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) void
deleteCompanyCountries
(long companyId) com.liferay.portal.kernel.model.Country
deleteCountry
(long countryId) Deletes the country with the primary key from the database.com.liferay.portal.kernel.model.Country
deleteCountry
(com.liferay.portal.kernel.model.Country country) Deletes the country from the database.com.liferay.portal.kernel.model.Country
fetchCountryByA2
(long companyId, String a2) com.liferay.portal.kernel.model.Country
fetchCountryByA3
(long companyId, String a3) com.liferay.portal.kernel.model.Country
fetchCountryByName
(long companyId, String name) com.liferay.portal.kernel.model.Country
fetchCountryByNumber
(long companyId, String number) List<com.liferay.portal.kernel.model.Country>
getCompanyCountries
(long companyId) List<com.liferay.portal.kernel.model.Country>
getCompanyCountries
(long companyId, boolean active) 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) 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) int
getCompanyCountriesCount
(long companyId) int
getCompanyCountriesCount
(long companyId, boolean active) com.liferay.portal.kernel.model.Country
getCountryByA2
(long companyId, String a2) com.liferay.portal.kernel.model.Country
getCountryByA3
(long companyId, String a3) com.liferay.portal.kernel.model.Country
getCountryByName
(long companyId, String name) com.liferay.portal.kernel.model.Country
getCountryByNumber
(long companyId, String number) 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) com.liferay.portal.kernel.model.Country
updateActive
(long countryId, boolean active) 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) List<com.liferay.portal.kernel.model.CountryLocalization>
updateCountryLocalizations
(com.liferay.portal.kernel.model.Country country, Map<String, String> titleMap) com.liferay.portal.kernel.model.Country
updateGroupFilterEnabled
(long countryId, boolean groupFilterEnabled) Methods inherited from class com.liferay.portal.service.base.CountryLocalServiceBaseImpl
addCountry, afterPropertiesSet, createCountry, createPersistedModel, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchCountry, fetchCountryByUuidAndCompanyId, fetchCountryLocalization, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCountries, getCountriesCount, getCountry, getCountryByUuidAndCompanyId, getCountryLocalization, getCountryLocalizationPersistence, getCountryLocalizations, getCountryLocalService, getCountryPersistence, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setCounterLocalService, setCountryLocalizationPersistence, setCountryLocalService, setCountryPersistence, updateCountry, updateCountryLocalization, updateWithUnsafeFunction
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
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 interfacecom.liferay.portal.kernel.service.CountryLocalService
- Overrides:
deleteCountry
in classCountryLocalServiceBaseImpl
- 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 interfacecom.liferay.portal.kernel.service.CountryLocalService
- Overrides:
deleteCountry
in classCountryLocalServiceBaseImpl
- 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
-
fetchCountryByA3
-
fetchCountryByName
-
fetchCountryByNumber
-
getCompanyCountries
-
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 interfacecom.liferay.portal.kernel.service.CountryLocalService
- Overrides:
updateCountryLocalizations
in classCountryLocalServiceBaseImpl
- 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
-