com.liferay.portal.service
Interface CountryService
- All Known Implementing Classes:
- CountryServiceBaseImpl, CountryServiceImpl, CountryServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface CountryService
The interface for the country remote service.
Never modify or reference this interface directly. Always use CountryServiceUtil
to access the country remote service. Add custom service methods to CountryServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
This is a remote service. 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:
CountryServiceUtil
,
CountryServiceBaseImpl
,
CountryServiceImpl
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
addCountry
Country addCountry(String name,
String a2,
String a3,
String number,
String idd,
boolean active)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCountries
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Country> getCountries()
throws SystemException
- Throws:
SystemException
getCountries
@Transactional(propagation=SUPPORTS,
readOnly=true)
List<Country> getCountries(boolean active)
throws SystemException
- Throws:
SystemException
getCountry
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country getCountry(long countryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCountryByA2
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country getCountryByA2(String a2)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCountryByA3
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country getCountryByA3(String a3)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCountryByName
@Transactional(propagation=SUPPORTS,
readOnly=true)
Country getCountryByName(String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException