Class RegionServiceUtil
Object
com.liferay.portal.kernel.service.RegionServiceUtil
Provides the remote service utility for Region. This utility wraps
com.liferay.portal.service.impl.RegionServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Region
addRegion
(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) static void
deleteRegion
(long regionId) static Region
fetchRegion
(long regionId) static Region
fetchRegion
(long countryId, String regionCode) static String
Returns the OSGi service identifier.static Region
getRegion
(long regionId) static Region
getRegions
(boolean active) getRegions
(long countryId) getRegions
(long countryId, boolean active) getRegions
(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator) getRegions
(long countryId, int start, int end, OrderByComparator<Region> orderByComparator) getRegions
(long companyId, String a2, boolean active) static int
getRegionsCount
(long countryId) static int
getRegionsCount
(long countryId, boolean active) static RegionService
static BaseModelSearchResult<Region>
searchRegions
(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) static void
setService
(RegionService service) static Region
updateActive
(long regionId, boolean active) static Region
updateRegion
(long regionId, boolean active, String name, double position, String regionCode)
-
Constructor Details
-
RegionServiceUtil
public RegionServiceUtil()
-
-
Method Details
-
addRegion
public static Region addRegion(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteRegion
- Throws:
PortalException
-
fetchRegion
-
fetchRegion
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getRegion
- Throws:
PortalException
-
getRegion
- Throws:
PortalException
-
getRegions
-
getRegions
-
getRegions
-
getRegions
-
getRegions
public static List<Region> getRegions(long countryId, boolean active, int start, int end, OrderByComparator<Region> orderByComparator) -
getRegions
public static List<Region> getRegions(long countryId, int start, int end, OrderByComparator<Region> orderByComparator) -
getRegions
public static List<Region> getRegions(long companyId, String a2, boolean active) throws PortalException - Throws:
PortalException
-
getRegionsCount
public static int getRegionsCount(long countryId) -
getRegionsCount
public static int getRegionsCount(long countryId, boolean active) -
searchRegions
public static BaseModelSearchResult<Region> searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) throws PortalException- Throws:
PortalException
-
updateActive
- Throws:
PortalException
-
updateRegion
public static Region updateRegion(long regionId, boolean active, String name, double position, String regionCode) throws PortalException - Throws:
PortalException
-
getService
-
setService
-