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

public class RegionLocalServiceImpl extends RegionLocalServiceBaseImpl
Author:
Brian Wing Shun Chan
  • 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 interface com.liferay.portal.kernel.service.RegionLocalService
      Overrides:
      deleteRegion in class RegionLocalServiceBaseImpl
      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 interface com.liferay.portal.kernel.service.RegionLocalService
      Overrides:
      deleteRegion in class RegionLocalServiceBaseImpl
      Parameters:
      region - the region
      Returns:
      the region that was removed
    • fetchRegion

      public com.liferay.portal.kernel.model.Region fetchRegion(long countryId, String regionCode)
    • 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