public class RegionServiceHttp
extends java.lang.Object
RegionServiceUtil service
utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
RegionServiceSoap| Constructor and Description |
|---|
RegionServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static Region |
addRegion(HttpPrincipal httpPrincipal,
long countryId,
java.lang.String regionCode,
java.lang.String name,
boolean active) |
static Region |
fetchRegion(HttpPrincipal httpPrincipal,
long regionId) |
static Region |
fetchRegion(HttpPrincipal httpPrincipal,
long countryId,
java.lang.String regionCode) |
static Region |
getRegion(HttpPrincipal httpPrincipal,
long regionId) |
static Region |
getRegion(HttpPrincipal httpPrincipal,
long countryId,
java.lang.String regionCode) |
static java.util.List<Region> |
getRegions(HttpPrincipal httpPrincipal) |
static java.util.List<Region> |
getRegions(HttpPrincipal httpPrincipal,
boolean active) |
static java.util.List<Region> |
getRegions(HttpPrincipal httpPrincipal,
long countryId) |
static java.util.List<Region> |
getRegions(HttpPrincipal httpPrincipal,
long countryId,
boolean active) |
public static Region addRegion(HttpPrincipal httpPrincipal, long countryId, java.lang.String regionCode, java.lang.String name, boolean active) throws PortalException
PortalExceptionpublic static Region fetchRegion(HttpPrincipal httpPrincipal, long regionId)
public static Region fetchRegion(HttpPrincipal httpPrincipal, long countryId, java.lang.String regionCode)
public static Region getRegion(HttpPrincipal httpPrincipal, long regionId) throws PortalException
PortalExceptionpublic static Region getRegion(HttpPrincipal httpPrincipal, long countryId, java.lang.String regionCode) throws PortalException
PortalExceptionpublic static java.util.List<Region> getRegions(HttpPrincipal httpPrincipal)
public static java.util.List<Region> getRegions(HttpPrincipal httpPrincipal, boolean active)
public static java.util.List<Region> getRegions(HttpPrincipal httpPrincipal, long countryId)
public static java.util.List<Region> getRegions(HttpPrincipal httpPrincipal, long countryId, boolean active)