@ProviderType
public class CountryServiceHttp
extends Object
CountryServiceUtil
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.
CountryServiceSoap
,
HttpPrincipal
,
CountryServiceUtil
Constructor and Description |
---|
CountryServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.portal.kernel.model.Country |
addCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String name,
String a2,
String a3,
String number,
String idd,
boolean active) |
static com.liferay.portal.kernel.model.Country |
fetchCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long countryId) |
static com.liferay.portal.kernel.model.Country |
fetchCountryByA2(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a2) |
static com.liferay.portal.kernel.model.Country |
fetchCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a3) |
static List<com.liferay.portal.kernel.model.Country> |
getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) |
static List<com.liferay.portal.kernel.model.Country> |
getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
boolean active) |
static com.liferay.portal.kernel.model.Country |
getCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long countryId) |
static com.liferay.portal.kernel.model.Country |
getCountryByA2(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a2) |
static com.liferay.portal.kernel.model.Country |
getCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a3) |
static com.liferay.portal.kernel.model.Country |
getCountryByName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String name) |
public static com.liferay.portal.kernel.model.Country addCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name, String a2, String a3, String number, String idd, boolean active) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Country fetchCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId)
public static com.liferay.portal.kernel.model.Country fetchCountryByA2(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a2)
public static com.liferay.portal.kernel.model.Country fetchCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a3)
public static List<com.liferay.portal.kernel.model.Country> getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal)
public static List<com.liferay.portal.kernel.model.Country> getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, boolean active)
public static com.liferay.portal.kernel.model.Country getCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Country getCountryByA2(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a2) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Country getCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a3) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Country getCountryByName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException