com.liferay.portal.service.http
Class CountryServiceHttp
java.lang.Object
com.liferay.portal.service.http.CountryServiceHttp
@ProviderType
public class CountryServiceHttp
- extends Object
Provides the HTTP utility for the
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.
- See Also:
CountryServiceSoap,
HttpPrincipal,
CountryServiceUtil- {$generated.description}
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountryServiceHttp
public CountryServiceHttp()
addCountry
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
fetchCountry
public static com.liferay.portal.kernel.model.Country fetchCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long countryId)
fetchCountryByA2
public static com.liferay.portal.kernel.model.Country fetchCountryByA2(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a2)
fetchCountryByA3
public static com.liferay.portal.kernel.model.Country fetchCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String a3)
getCountries
public static List<com.liferay.portal.kernel.model.Country> getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal)
getCountries
public static List<com.liferay.portal.kernel.model.Country> getCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
boolean active)
getCountry
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCountryByA2
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCountryByA3
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
getCountryByName
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
- Throws:
com.liferay.portal.kernel.exception.PortalException