com.liferay.portal.service
Interface CountryService


@Transactional(isolation=PORTAL,
               rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface CountryService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portal.service.impl.CountryServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

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.

Author:
Brian Wing Shun Chan
See Also:
CountryServiceUtil

Method Summary
 Country addCountry(java.lang.String name, java.lang.String a2, java.lang.String a3, java.lang.String number, java.lang.String idd, boolean active)
           
 java.util.List<Country> getCountries()
           
 java.util.List<Country> getCountries(boolean active)
           
 Country getCountry(long countryId)
           
 Country getCountryByA2(java.lang.String a2)
           
 Country getCountryByA3(java.lang.String a3)
           
 Country getCountryByName(java.lang.String name)
           
 

Method Detail

addCountry

Country addCountry(java.lang.String name,
                   java.lang.String a2,
                   java.lang.String a3,
                   java.lang.String number,
                   java.lang.String idd,
                   boolean active)
                   throws java.rmi.RemoteException,
                          com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCountries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Country> getCountries()
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getCountries

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Country> getCountries(boolean active)
                                     throws java.rmi.RemoteException,
                                            com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.SystemException

getCountry

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Country getCountry(long countryId)
                   throws java.rmi.RemoteException,
                          com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCountryByA2

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Country getCountryByA2(java.lang.String a2)
                       throws java.rmi.RemoteException,
                              com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCountryByA3

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Country getCountryByA3(java.lang.String a3)
                       throws java.rmi.RemoteException,
                              com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCountryByName

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Country getCountryByName(java.lang.String name)
                         throws java.rmi.RemoteException,
                                com.liferay.portal.PortalException,
                                com.liferay.portal.SystemException
Throws:
java.rmi.RemoteException
com.liferay.portal.PortalException
com.liferay.portal.SystemException