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.CountryaddCountry(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) voiddeleteCompanyCountries(long companyId) com.liferay.portal.kernel.model.CountrydeleteCountry(long countryId) Deletes the country with the primary key from the database.com.liferay.portal.kernel.model.CountrydeleteCountry(com.liferay.portal.kernel.model.Country country) Deletes the country from the database.com.liferay.portal.kernel.model.CountryfetchCountryByA2(long companyId, String a2) com.liferay.portal.kernel.model.CountryfetchCountryByA3(long companyId, String a3) com.liferay.portal.kernel.model.CountryfetchCountryByName(long companyId, String name) com.liferay.portal.kernel.model.CountryfetchCountryByNumber(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) intgetCompanyCountriesCount(long companyId) intgetCompanyCountriesCount(long companyId, boolean active) com.liferay.portal.kernel.model.CountrygetCountryByA2(long companyId, String a2) com.liferay.portal.kernel.model.CountrygetCountryByA3(long companyId, String a3) com.liferay.portal.kernel.model.CountrygetCountryByName(long companyId, String name) com.liferay.portal.kernel.model.CountrygetCountryByNumber(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.CountryupdateActive(long countryId, boolean active) com.liferay.portal.kernel.model.CountryupdateCountry(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.CountryupdateGroupFilterEnabled(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, updateWithUnsafeFunctionMethods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CountryLocalServiceBaseImplDeletes 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:
deleteCountryin interfacecom.liferay.portal.kernel.service.CountryLocalService- Overrides:
deleteCountryin 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:CountryLocalServiceBaseImplDeletes 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:
deleteCountryin interfacecom.liferay.portal.kernel.service.CountryLocalService- Overrides:
deleteCountryin 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:
updateCountryLocalizationsin interfacecom.liferay.portal.kernel.service.CountryLocalService- Overrides:
updateCountryLocalizationsin 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
-