public class CountryServiceUtil
extends java.lang.Object
com.liferay.portal.service.impl.CountryServiceImpl
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.CountryService
Constructor and Description |
---|
CountryServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static Country |
addCountry(java.lang.String a2,
java.lang.String a3,
boolean active,
boolean billingAllowed,
java.lang.String idd,
java.lang.String name,
java.lang.String number,
double position,
boolean shippingAllowed,
boolean subjectToVAT,
boolean zipRequired,
ServiceContext serviceContext) |
static Country |
addCountry(java.lang.String name,
java.lang.String a2,
java.lang.String a3,
java.lang.String number,
java.lang.String idd,
boolean active)
Deprecated.
As of Cavanaugh (7.4.x)
|
static void |
deleteCountry(long countryId) |
static Country |
fetchCountry(long countryId) |
static Country |
fetchCountryByA2(long companyId,
java.lang.String a2) |
static Country |
fetchCountryByA2(java.lang.String a2)
Deprecated.
As of Cavanaugh (7.4.x)
|
static Country |
fetchCountryByA3(long companyId,
java.lang.String a3) |
static Country |
fetchCountryByA3(java.lang.String a3)
Deprecated.
As of Cavanaugh (7.4.x)
|
static java.util.List<Country> |
getCompanyCountries(long companyId) |
static java.util.List<Country> |
getCompanyCountries(long companyId,
boolean active) |
static java.util.List<Country> |
getCompanyCountries(long companyId,
boolean active,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
static java.util.List<Country> |
getCompanyCountries(long companyId,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
static int |
getCompanyCountriesCount(long companyId) |
static int |
getCompanyCountriesCount(long companyId,
boolean active) |
static java.util.List<Country> |
getCountries()
Deprecated.
As of Cavanaugh (7.4.x)
|
static java.util.List<Country> |
getCountries(boolean active)
Deprecated.
As of Cavanaugh (7.4.x)
|
static Country |
getCountry(long countryId) |
static Country |
getCountryByA2(long companyId,
java.lang.String a2) |
static Country |
getCountryByA2(java.lang.String a2)
Deprecated.
As of Cavanaugh (7.4.x)
|
static Country |
getCountryByA3(long companyId,
java.lang.String a3) |
static Country |
getCountryByA3(java.lang.String a3)
Deprecated.
As of Cavanaugh (7.4.x)
|
static Country |
getCountryByName(long companyId,
java.lang.String name) |
static Country |
getCountryByName(java.lang.String name)
Deprecated.
As of Cavanaugh (7.4.x)
|
static Country |
getCountryByNumber(long companyId,
java.lang.String number) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static CountryService |
getService() |
static BaseModelSearchResult<Country> |
searchCountries(long companyId,
java.lang.Boolean active,
java.lang.String keywords,
int start,
int end,
OrderByComparator<Country> orderByComparator) |
static Country |
updateActive(long countryId,
boolean active) |
static Country |
updateCountry(long countryId,
java.lang.String a2,
java.lang.String a3,
boolean active,
boolean billingAllowed,
java.lang.String idd,
java.lang.String name,
java.lang.String number,
double position,
boolean shippingAllowed,
boolean subjectToVAT) |
static Country |
updateGroupFilterEnabled(long countryId,
boolean groupFilterEnabled) |
public static Country addCountry(java.lang.String a2, java.lang.String a3, boolean active, boolean billingAllowed, java.lang.String idd, java.lang.String name, java.lang.String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) throws PortalException
PortalException
@Deprecated public static Country addCountry(java.lang.String name, java.lang.String a2, java.lang.String a3, java.lang.String number, java.lang.String idd, boolean active) throws PortalException
PortalException
public static void deleteCountry(long countryId) throws PortalException
PortalException
public static Country fetchCountry(long countryId)
public static Country fetchCountryByA2(long companyId, java.lang.String a2)
@Deprecated public static Country fetchCountryByA2(java.lang.String a2)
public static Country fetchCountryByA3(long companyId, java.lang.String a3)
@Deprecated public static Country fetchCountryByA3(java.lang.String a3)
public static java.util.List<Country> getCompanyCountries(long companyId)
public static java.util.List<Country> getCompanyCountries(long companyId, boolean active)
public static java.util.List<Country> getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator)
public static java.util.List<Country> getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator)
public static int getCompanyCountriesCount(long companyId)
public static int getCompanyCountriesCount(long companyId, boolean active)
@Deprecated public static java.util.List<Country> getCountries()
@Deprecated public static java.util.List<Country> getCountries(boolean active)
public static Country getCountry(long countryId) throws PortalException
PortalException
public static Country getCountryByA2(long companyId, java.lang.String a2) throws PortalException
PortalException
@Deprecated public static Country getCountryByA2(java.lang.String a2) throws PortalException
PortalException
public static Country getCountryByA3(long companyId, java.lang.String a3) throws PortalException
PortalException
@Deprecated public static Country getCountryByA3(java.lang.String a3) throws PortalException
PortalException
public static Country getCountryByName(long companyId, java.lang.String name) throws PortalException
PortalException
@Deprecated public static Country getCountryByName(java.lang.String name) throws PortalException
PortalException
public static Country getCountryByNumber(long companyId, java.lang.String number) throws PortalException
PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static BaseModelSearchResult<Country> searchCountries(long companyId, java.lang.Boolean active, java.lang.String keywords, int start, int end, OrderByComparator<Country> orderByComparator) throws PortalException
PortalException
public static Country updateActive(long countryId, boolean active) throws PortalException
PortalException
public static Country updateCountry(long countryId, java.lang.String a2, java.lang.String a3, boolean active, boolean billingAllowed, java.lang.String idd, java.lang.String name, java.lang.String number, double position, boolean shippingAllowed, boolean subjectToVAT) throws PortalException
PortalException
public static Country updateGroupFilterEnabled(long countryId, boolean groupFilterEnabled) throws PortalException
PortalException
public static CountryService getService()