@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface RegionService extends BaseService
RegionServiceUtil
Modifier and Type | Method and Description |
---|---|
Region |
addRegion(long countryId,
String regionCode,
String name,
boolean active)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
Region |
fetchRegion(long regionId) |
Region |
fetchRegion(long countryId,
String regionCode) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Region |
getRegion(long regionId) |
Region |
getRegion(long countryId,
String regionCode) |
List<Region> |
getRegions() |
List<Region> |
getRegions(boolean active) |
List<Region> |
getRegions(long countryId) |
List<Region> |
getRegions(long countryId,
boolean active) |
Region addRegion(long countryId, String regionCode, String name, boolean active) throws PortalException
RegionServiceUtil
to access the region remote service. Add custom service methods to com.liferay.portal.service.impl.RegionServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Region fetchRegion(long regionId)
@Transactional(propagation=SUPPORTS, readOnly=true) Region fetchRegion(long countryId, String regionCode)
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) Region getRegion(long regionId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) Region getRegion(long countryId, String regionCode) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Region> getRegions()
@Transactional(propagation=SUPPORTS, readOnly=true) List<Region> getRegions(boolean active)
@Transactional(propagation=SUPPORTS, readOnly=true) List<Region> getRegions(long countryId)
@AccessControlled(guestAccessEnabled=true) @Transactional(propagation=SUPPORTS, readOnly=true) List<Region> getRegions(long countryId, boolean active)