Package com.liferay.portal.service.impl
Class RegionServiceImpl
Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portal.service.base.RegionServiceBaseImpl
com.liferay.portal.service.impl.RegionServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseService
,com.liferay.portal.kernel.service.RegionService
- Author:
- Brian Wing Shun Chan
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.RegionServiceBaseImpl
counterLocalService, regionLocalizationPersistence, regionLocalService, regionPersistence, regionService
Fields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
-
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
deleteRegion
(long regionId) com.liferay.portal.kernel.model.Region
fetchRegion
(long regionId) com.liferay.portal.kernel.model.Region
fetchRegion
(long countryId, String regionCode) com.liferay.portal.kernel.model.Region
getRegion
(long regionId) com.liferay.portal.kernel.model.Region
List<com.liferay.portal.kernel.model.Region>
List<com.liferay.portal.kernel.model.Region>
getRegions
(boolean active) List<com.liferay.portal.kernel.model.Region>
getRegions
(long countryId) 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.RegionServiceBaseImpl
afterPropertiesSet, destroy, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getRegionLocalizationPersistence, getRegionLocalService, getRegionPersistence, getRegionService, runSQL, setCounterLocalService, setRegionLocalizationPersistence, setRegionLocalService, setRegionPersistence, setRegionService
Methods inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
-
Constructor Details
-
RegionServiceImpl
public RegionServiceImpl()
-
-
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
-
deleteRegion
public void deleteRegion(long regionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchRegion
public com.liferay.portal.kernel.model.Region fetchRegion(long regionId) -
fetchRegion
-
getRegion
public com.liferay.portal.kernel.model.Region getRegion(long regionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
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
-
getRegions
-
getRegions
-
getRegions
@AccessControlled(guestAccessEnabled=true) public List<com.liferay.portal.kernel.model.Region> getRegions(long countryId, boolean active) -
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
@JSONWebService(mode=IGNORE) 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
-