Package com.liferay.portal.service.http
Class CountryServiceHttp
Object
com.liferay.portal.service.http.CountryServiceHttp
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.
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Country
addCountry
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, com.liferay.portal.kernel.service.ServiceContext serviceContext) 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 void
deleteCountry
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId) 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, long companyId, String a2) 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, long companyId, String a3) 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>
getCompanyCountries
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) static List<com.liferay.portal.kernel.model.Country>
getCompanyCountries
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active) static List<com.liferay.portal.kernel.model.Country>
getCompanyCountries
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) static List<com.liferay.portal.kernel.model.Country>
getCompanyCountries
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) static int
getCompanyCountriesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) static int
getCompanyCountriesCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active) 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, long companyId, String a2) 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, long companyId, String a3) 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, long companyId, String name) static com.liferay.portal.kernel.model.Country
getCountryByName
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name) static com.liferay.portal.kernel.model.Country
getCountryByNumber
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String number) static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Country>
searchCountries
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, Boolean active, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) static com.liferay.portal.kernel.model.Country
updateActive
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, boolean active) static com.liferay.portal.kernel.model.Country
updateCountry
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) static com.liferay.portal.kernel.model.Country
updateGroupFilterEnabled
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, boolean groupFilterEnabled)
-
Constructor Details
-
CountryServiceHttp
public CountryServiceHttp()
-
-
Method Details
-
addCountry
public static com.liferay.portal.kernel.model.Country addCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
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
-
deleteCountry
public static void deleteCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId) 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, long companyId, String a2) -
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, long companyId, String a3) -
fetchCountryByA3
public static com.liferay.portal.kernel.model.Country fetchCountryByA3(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String a3) -
getCompanyCountries
public static List<com.liferay.portal.kernel.model.Country> getCompanyCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) -
getCompanyCountries
public static List<com.liferay.portal.kernel.model.Country> getCompanyCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active) -
getCompanyCountries
public static List<com.liferay.portal.kernel.model.Country> getCompanyCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) -
getCompanyCountries
public static List<com.liferay.portal.kernel.model.Country> getCompanyCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) -
getCompanyCountriesCount
public static int getCompanyCountriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) -
getCompanyCountriesCount
public static int getCompanyCountriesCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, boolean active) -
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, long companyId, String a2) 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, long companyId, String a3) 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, long companyId, String name) 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
-
getCountryByNumber
public static com.liferay.portal.kernel.model.Country getCountryByNumber(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String number) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCountries
public static com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Country> searchCountries(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, Boolean active, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Country> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateActive
public static com.liferay.portal.kernel.model.Country updateActive(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, boolean active) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCountry
public static com.liferay.portal.kernel.model.Country updateCountry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateGroupFilterEnabled
public static com.liferay.portal.kernel.model.Country updateGroupFilterEnabled(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long countryId, boolean groupFilterEnabled) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-