public class RegionLocalServiceImpl extends RegionLocalServiceBaseImpl
counterLocalService, 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.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Region> |
searchRegions(long companyId,
Boolean active,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator) |
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) |
addRegion, afterPropertiesSet, createPersistedModel, createRegion, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchRegion, fetchRegionByUuidAndCompanyId, fetchRegionLocalization, getActionableDynamicQuery, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRegion, getRegionByUuidAndCompanyId, getRegionLocalization, getRegionLocalizationPersistence, getRegionLocalizations, getRegionLocalService, getRegionPersistence, getRegions, getRegionsCount, initActionableDynamicQuery, runSQL, setCounterLocalService, setRegionLocalizationPersistence, setRegionLocalService, setRegionPersistence, updateRegion, updateRegionLocalization, updateRegionLocalizations, updateWithUnsafeFunction
getClassLoader, getLocalizationMap
public 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.PortalException
public void deleteCountryRegions(long countryId)
public com.liferay.portal.kernel.model.Region deleteRegion(long regionId) throws com.liferay.portal.kernel.exception.PortalException
RegionLocalServiceBaseImpl
Important: 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.RegionLocalService
deleteRegion
in class RegionLocalServiceBaseImpl
regionId
- 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)
RegionLocalServiceBaseImpl
Important: 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.RegionLocalService
deleteRegion
in class RegionLocalServiceBaseImpl
region
- 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.PortalException
public List<com.liferay.portal.kernel.model.Region> getRegions(long countryId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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.PortalException
public int getRegionsCount(long countryId)
public int getRegionsCount(long countryId, boolean active)
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Region> searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Region> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Region updateActive(long regionId, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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.PortalException