Package com.liferay.portal.service.impl
Class RegionLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.RegionLocalServiceBaseImpl
com.liferay.portal.service.impl.RegionLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Region>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.RegionLocalService
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.RegionLocalServiceBaseImpl
counterLocalService, regionLocalizationPersistence, regionLocalService, regionPersistence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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
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) Methods inherited from class com.liferay.portal.service.base.RegionLocalServiceBaseImpl
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
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
RegionLocalServiceImpl
public RegionLocalServiceImpl()
-
-
Method Details
-
addRegion
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCountryRegions
public void deleteCountryRegions(long countryId) -
deleteRegion
public com.liferay.portal.kernel.model.Region deleteRegion(long regionId) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:RegionLocalServiceBaseImpl
Deletes the region with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteRegion
in interfacecom.liferay.portal.kernel.service.RegionLocalService
- Overrides:
deleteRegion
in classRegionLocalServiceBaseImpl
- Parameters:
regionId
- the primary key of the region- Returns:
- the region that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException
- if a region with the primary key could not be found
-
deleteRegion
@SystemEvent(type=1) public com.liferay.portal.kernel.model.Region deleteRegion(com.liferay.portal.kernel.model.Region region) Description copied from class:RegionLocalServiceBaseImpl
Deletes the region from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteRegion
in interfacecom.liferay.portal.kernel.service.RegionLocalService
- Overrides:
deleteRegion
in classRegionLocalServiceBaseImpl
- Parameters:
region
- the region- Returns:
- the region that was removed
-
fetchRegion
-
getRegion
public com.liferay.portal.kernel.model.Region getRegion(long countryId, String regionCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRegions
public List<com.liferay.portal.kernel.model.Region> getRegions(long countryId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRegions
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) -
getRegions
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) -
getRegions
public List<com.liferay.portal.kernel.model.Region> getRegions(long companyId, String a2, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRegionsCount
public int getRegionsCount(long countryId) -
getRegionsCount
public int getRegionsCount(long countryId, boolean active) -
searchRegions
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- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateActive
public com.liferay.portal.kernel.model.Region updateActive(long regionId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateRegion
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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-