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 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) static Country
Deprecated.As of Cavanaugh (7.4.x)static void
deleteCountry
(long countryId) static Country
fetchCountry
(long countryId) static Country
fetchCountryByA2
(long companyId, String a2) static Country
Deprecated.As of Cavanaugh (7.4.x)static Country
fetchCountryByA3
(long companyId, String a3) static Country
Deprecated.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 int
getCompanyCountriesCount
(long companyId) static int
getCompanyCountriesCount
(long companyId, boolean active) Deprecated.As of Cavanaugh (7.4.x)getCountries
(boolean active) Deprecated.As of Cavanaugh (7.4.x)static Country
getCountry
(long countryId) static Country
getCountryByA2
(long companyId, String a2) static Country
getCountryByA2
(String a2) Deprecated.As of Cavanaugh (7.4.x)static Country
getCountryByA3
(long companyId, String a3) static Country
getCountryByA3
(String a3) Deprecated.As of Cavanaugh (7.4.x)static Country
getCountryByName
(long companyId, String name) static Country
getCountryByName
(String name) Deprecated.As of Cavanaugh (7.4.x)static Country
getCountryByNumber
(long companyId, String number) static String
Returns the OSGi service identifier.static CountryService
static BaseModelSearchResult<Country>
searchCountries
(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) static void
setService
(CountryService service) static Country
updateActive
(long countryId, boolean active) 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) static Country
updateGroupFilterEnabled
(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
-