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 RegionService {
041
046 public com.liferay.portal.model.Region addRegion(long countryId,
047 java.lang.String regionCode, java.lang.String name, boolean active)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException;
050
051 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
052 public com.liferay.portal.model.Region getRegion(long regionId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException;
055
056 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public java.util.List<com.liferay.portal.model.Region> getRegions()
058 throws com.liferay.portal.kernel.exception.SystemException;
059
060 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061 public java.util.List<com.liferay.portal.model.Region> getRegions(
062 boolean active)
063 throws com.liferay.portal.kernel.exception.SystemException;
064
065 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
066 public java.util.List<com.liferay.portal.model.Region> getRegions(
067 long countryId)
068 throws com.liferay.portal.kernel.exception.SystemException;
069
070 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071 public java.util.List<com.liferay.portal.model.Region> getRegions(
072 long countryId, boolean active)
073 throws com.liferay.portal.kernel.exception.SystemException;
074 }