com.liferay.portal.service
Class CountryServiceUtil
java.lang.Object
com.liferay.portal.service.CountryServiceUtil
@ProviderType
public class CountryServiceUtil
- extends Object
Provides the remote service utility for Country. This utility wraps
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.
- See Also:
CountryService,
CountryServiceBaseImpl,
com.liferay.portal.service.impl.CountryServiceImpl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountryServiceUtil
public CountryServiceUtil()
addCountry
public static Country addCountry(String name,
String a2,
String a3,
String number,
String idd,
boolean active)
throws PortalException
- Throws:
PortalException
fetchCountry
public static Country fetchCountry(long countryId)
fetchCountryByA2
public static Country fetchCountryByA2(String a2)
fetchCountryByA3
public static Country fetchCountryByA3(String a3)
getCountries
public static List<Country> getCountries()
getCountries
public static List<Country> getCountries(boolean active)
getCountry
public static Country getCountry(long countryId)
throws PortalException
- Throws:
PortalException
getCountryByA2
public static Country getCountryByA2(String a2)
throws PortalException
- Throws:
PortalException
getCountryByA3
public static Country getCountryByA3(String a3)
throws PortalException
- Throws:
PortalException
getCountryByName
public static Country getCountryByName(String name)
throws PortalException
- Throws:
PortalException
getOSGiServiceIdentifier
public static String getOSGiServiceIdentifier()
- Returns the OSGi service identifier.
- Returns:
- the OSGi service identifier
getService
public static CountryService getService()