@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface CountryService extends BaseService
CountryServiceUtil
Modifier and Type | Method and Description |
---|---|
Country |
addCountry(String name,
String a2,
String a3,
String number,
String idd,
boolean active)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
Country |
fetchCountry(long countryId) |
Country |
fetchCountryByA2(String a2) |
Country |
fetchCountryByA3(String a3) |
List<Country> |
getCountries() |
List<Country> |
getCountries(boolean active) |
Country |
getCountry(long countryId) |
Country |
getCountryByA2(String a2) |
Country |
getCountryByA3(String a3) |
Country |
getCountryByName(String name) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Country addCountry(String name, String a2, String a3, String number, String idd, boolean active) throws PortalException
CountryServiceUtil
to access the country remote service. Add custom service methods to com.liferay.portal.service.impl.CountryServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Country fetchCountry(long countryId)
@Transactional(propagation=SUPPORTS, readOnly=true) Country fetchCountryByA2(String a2)
@Transactional(propagation=SUPPORTS, readOnly=true) Country fetchCountryByA3(String a3)
@Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCountries()
@AccessControlled(guestAccessEnabled=true) @Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCountries(boolean active)
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountry(long countryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA2(String a2) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA3(String a3) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByName(String name) throws PortalException
PortalException
String getOSGiServiceIdentifier()