@ProviderType public class CountryServiceUtil extends Object
com.liferay.portal.service.impl.CountryServiceImpl and is the
primary 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.CountryService,
com.liferay.portal.service.base.CountryServiceBaseImpl,
com.liferay.portal.service.impl.CountryServiceImpl| Constructor and Description |
|---|
CountryServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Country |
addCountry(String name,
String a2,
String a3,
String number,
String idd,
boolean active) |
static Country |
fetchCountry(long countryId) |
static Country |
fetchCountryByA2(String a2) |
static Country |
fetchCountryByA3(String a3) |
static List<Country> |
getCountries() |
static List<Country> |
getCountries(boolean active) |
static Country |
getCountry(long countryId) |
static Country |
getCountryByA2(String a2) |
static Country |
getCountryByA3(String a3) |
static Country |
getCountryByName(String name) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CountryService |
getService() |
public static Country addCountry(String name, String a2, String a3, String number, String idd, boolean active) throws PortalException
PortalExceptionpublic static Country fetchCountry(long countryId)
public static Country getCountry(long countryId) throws PortalException
PortalExceptionpublic static Country getCountryByA2(String a2) throws PortalException
PortalExceptionpublic static Country getCountryByA3(String a3) throws PortalException
PortalExceptionpublic static Country getCountryByName(String name) throws PortalException
PortalExceptionpublic static String getOSGiServiceIdentifier()
public static CountryService getService()