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 RegionaddRegion(long countryId, boolean active, String name, double position, String regionCode, ServiceContext serviceContext) static voiddeleteRegion(long regionId) static RegionfetchRegion(long regionId) static RegionfetchRegion(long countryId, String regionCode) static StringReturns the OSGi service identifier.static RegiongetRegion(long regionId) static RegiongetRegions(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 intgetRegionsCount(long countryId) static intgetRegionsCount(long countryId, boolean active) static RegionServicestatic BaseModelSearchResult<Region>searchRegions(long companyId, Boolean active, String keywords, LinkedHashMap<String, Object> params, int start, int end, OrderByComparator<Region> orderByComparator) static voidsetService(RegionService service) static RegionupdateActive(long regionId, boolean active) static RegionupdateRegion(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
-