001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023
024
037 @JSONWebService
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface CountryService {
041
046 public com.liferay.portal.model.Country addCountry(java.lang.String name,
047 java.lang.String a2, java.lang.String a3, java.lang.String number,
048 java.lang.String idd, boolean active)
049 throws com.liferay.portal.kernel.exception.PortalException,
050 com.liferay.portal.kernel.exception.SystemException;
051
052 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
053 public java.util.List<com.liferay.portal.model.Country> getCountries()
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public java.util.List<com.liferay.portal.model.Country> getCountries(
058 boolean active)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062 public com.liferay.portal.model.Country getCountry(long countryId)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException;
065
066 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067 public com.liferay.portal.model.Country getCountryByA2(java.lang.String a2)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072 public com.liferay.portal.model.Country getCountryByA3(java.lang.String a3)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077 public com.liferay.portal.model.Country getCountryByName(
078 java.lang.String name)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException;
081 }