1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface RegionService {
50 public com.liferay.portal.model.Region addRegion(long countryId,
51 java.lang.String regionCode, java.lang.String name, boolean active)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException;
54
55 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
56 public java.util.List<com.liferay.portal.model.Region> getRegions()
57 throws com.liferay.portal.kernel.exception.SystemException;
58
59 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
60 public java.util.List<com.liferay.portal.model.Region> getRegions(
61 long countryId)
62 throws com.liferay.portal.kernel.exception.SystemException;
63
64 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
65 public java.util.List<com.liferay.portal.model.Region> getRegions(
66 boolean active)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
70 public java.util.List<com.liferay.portal.model.Region> getRegions(
71 long countryId, boolean active)
72 throws com.liferay.portal.kernel.exception.SystemException;
73
74 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
75 public com.liferay.portal.model.Region getRegion(long regionId)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException;
78 }