1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface RegionService {
58 public com.liferay.portal.model.Region addRegion(long countryId,
59 java.lang.String regionCode, java.lang.String name, boolean active)
60 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException;
62
63 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
64 public java.util.List<com.liferay.portal.model.Region> getRegions()
65 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
66
67 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
68 public java.util.List<com.liferay.portal.model.Region> getRegions(
69 long countryId)
70 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public java.util.List<com.liferay.portal.model.Region> getRegions(
74 boolean active)
75 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public java.util.List<com.liferay.portal.model.Region> getRegions(
79 long countryId, boolean active)
80 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public com.liferay.portal.model.Region getRegion(long regionId)
84 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86 }