public class RegionLocalServiceImpl extends RegionLocalServiceBaseImpl
counterLocalService, persistedModelLocalServiceRegistry, regionLocalizationPersistence, regionLocalService, regionPersistence| Constructor and Description |
|---|
RegionLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.model.Region |
addRegion(long countryId,
boolean active,
String name,
double position,
String regionCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteCountryRegions(long countryId) |
com.liferay.portal.kernel.model.Region |
deleteRegion(long regionId)
Deletes the region with the primary key from the database.
|
com.liferay.portal.kernel.model.Region |
deleteRegion(com.liferay.portal.kernel.model.Region region)
Deletes the region from the database.
|
com.liferay.portal.kernel.model.Region |
fetchRegion(long countryId,
String regionCode) |
com.liferay.portal.kernel.model.Region |
getRegion(long countryId,
String regionCode) |
List<com.liferay.portal.kernel.model.Region> |
getRegions(long countryId,
boolean active) |
List<com.liferay.portal.kernel.model.Region> |
getRegions(long countryId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator) |
List<com.liferay.portal.kernel.model.Region> |
getRegions(long countryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator) |
List<com.liferay.portal.kernel.model.Region> |
getRegions(long companyId,
String a2,
boolean active) |
int |
getRegionsCount(long countryId) |
int |
getRegionsCount(long countryId,
boolean active) |
com.liferay.portal.kernel.model.Region |
updateActive(long regionId,
boolean active) |
com.liferay.portal.kernel.model.Region |
updateRegion(long regionId,
boolean active,
String name,
double position,
String regionCode) |
protected void |
validate(String name,
String regionCode) |
addRegion, afterPropertiesSet, createPersistedModel, createRegion, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchRegion, fetchRegionByUuidAndCompanyId, fetchRegionLocalization, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRegion, getRegionByUuidAndCompanyId, getRegionLocalization, getRegionLocalizationPersistence, getRegionLocalizations, getRegionLocalService, getRegionPersistence, getRegions, getRegionsCount, initActionableDynamicQuery, runSQL, setCounterLocalService, setRegionLocalizationPersistence, setRegionLocalService, setRegionPersistence, updateRegion, updateRegionLocalization, updateRegionLocalizationspublic com.liferay.portal.kernel.model.Region addRegion(long countryId,
boolean active,
String name,
double position,
String regionCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteCountryRegions(long countryId)
public com.liferay.portal.kernel.model.Region deleteRegion(long regionId)
throws com.liferay.portal.kernel.exception.PortalException
RegionLocalServiceBaseImplImportant: Inspect RegionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteRegion in interface com.liferay.portal.kernel.service.RegionLocalServicedeleteRegion in class RegionLocalServiceBaseImplregionId - the primary key of the regioncom.liferay.portal.kernel.exception.PortalException - if a region with the primary key could not be found@SystemEvent(type=1) public com.liferay.portal.kernel.model.Region deleteRegion(com.liferay.portal.kernel.model.Region region)
RegionLocalServiceBaseImplImportant: Inspect RegionLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
deleteRegion in interface com.liferay.portal.kernel.service.RegionLocalServicedeleteRegion in class RegionLocalServiceBaseImplregion - the regionpublic com.liferay.portal.kernel.model.Region fetchRegion(long countryId,
String regionCode)
public com.liferay.portal.kernel.model.Region getRegion(long countryId,
String regionCode)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.Region> getRegions(long countryId,
boolean active)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic List<com.liferay.portal.kernel.model.Region> getRegions(long countryId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator)
public List<com.liferay.portal.kernel.model.Region> getRegions(long countryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator)
public List<com.liferay.portal.kernel.model.Region> getRegions(long companyId,
String a2,
boolean active)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getRegionsCount(long countryId)
public int getRegionsCount(long countryId,
boolean active)
public com.liferay.portal.kernel.model.Region updateActive(long regionId,
boolean active)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.Region updateRegion(long regionId,
boolean active,
String name,
double position,
String regionCode)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void validate(String name,
String regionCode)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException