Class CountryServiceUtil
Object
com.liferay.portal.kernel.service.CountryServiceUtil
Provides the remote service utility for Country. This utility wraps
com.liferay.portal.service.impl.CountryServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CountryaddCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) static CountryDeprecated.As of Cavanaugh (7.4.x)static voiddeleteCountry(long countryId) static CountryfetchCountry(long countryId) static CountryfetchCountryByA2(long companyId, String a2) static CountryDeprecated.As of Cavanaugh (7.4.x)static CountryfetchCountryByA3(long companyId, String a3) static CountryDeprecated.As of Cavanaugh (7.4.x)getCompanyCountries(long companyId) getCompanyCountries(long companyId, boolean active) getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) static intgetCompanyCountriesCount(long companyId) static intgetCompanyCountriesCount(long companyId, boolean active) Deprecated.As of Cavanaugh (7.4.x)getCountries(boolean active) Deprecated.As of Cavanaugh (7.4.x)static CountrygetCountry(long countryId) static CountrygetCountryByA2(long companyId, String a2) static CountrygetCountryByA2(String a2) Deprecated.As of Cavanaugh (7.4.x)static CountrygetCountryByA3(long companyId, String a3) static CountrygetCountryByA3(String a3) Deprecated.As of Cavanaugh (7.4.x)static CountrygetCountryByName(long companyId, String name) static CountrygetCountryByName(String name) Deprecated.As of Cavanaugh (7.4.x)static CountrygetCountryByNumber(long companyId, String number) static StringReturns the OSGi service identifier.static CountryServicestatic BaseModelSearchResult<Country>searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) static voidsetService(CountryService service) static CountryupdateActive(long countryId, boolean active) static CountryupdateCountry(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) static CountryupdateGroupFilterEnabled(long countryId, boolean groupFilterEnabled)
-
Constructor Details
-
CountryServiceUtil
public CountryServiceUtil()
-
-
Method Details
-
addCountry
public static Country addCountry(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
addCountry
@Deprecated public static Country addCountry(String name, String a2, String a3, String number, String idd, boolean active) throws PortalException Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
deleteCountry
- Throws:
PortalException
-
fetchCountry
-
fetchCountryByA2
-
fetchCountryByA2
Deprecated.As of Cavanaugh (7.4.x) -
fetchCountryByA3
-
fetchCountryByA3
Deprecated.As of Cavanaugh (7.4.x) -
getCompanyCountries
-
getCompanyCountries
-
getCompanyCountries
public static List<Country> getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) -
getCompanyCountries
public static List<Country> getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) -
getCompanyCountriesCount
public static int getCompanyCountriesCount(long companyId) -
getCompanyCountriesCount
public static int getCompanyCountriesCount(long companyId, boolean active) -
getCountries
Deprecated.As of Cavanaugh (7.4.x) -
getCountries
Deprecated.As of Cavanaugh (7.4.x) -
getCountry
- Throws:
PortalException
-
getCountryByA2
- Throws:
PortalException
-
getCountryByA2
Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByA3
- Throws:
PortalException
-
getCountryByA3
Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByName
- Throws:
PortalException
-
getCountryByName
Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByNumber
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
searchCountries
public static BaseModelSearchResult<Country> searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) throws PortalException - Throws:
PortalException
-
updateActive
- Throws:
PortalException
-
updateCountry
public static 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 PortalException - Throws:
PortalException
-
updateGroupFilterEnabled
public static Country updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) throws PortalException - Throws:
PortalException
-
getService
-
setService
-