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