Interface CountryService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
CountryServiceWrapper
@AccessControlled
@CTAware
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface CountryService
extends BaseService
Provides the remote service interface for Country. Methods of this
service are expected to have security checks based on the propagated JAAS
credentials because this service can be accessed remotely.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddCountry
(String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT, boolean zipRequired, ServiceContext serviceContext) Deprecated.As of Cavanaugh (7.4.x)void
deleteCountry
(long countryId) fetchCountry
(long countryId) fetchCountryByA2
(long companyId, String a2) Deprecated.As of Cavanaugh (7.4.x)fetchCountryByA3
(long companyId, String a3) Deprecated.As of Cavanaugh (7.4.x)getCompanyCountries
(long companyId) getCompanyCountries
(long companyId, boolean active) getCompanyCountries
(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) getCompanyCountries
(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) int
getCompanyCountriesCount
(long companyId) int
getCompanyCountriesCount
(long companyId, boolean active) Deprecated.As of Cavanaugh (7.4.x)getCountries
(boolean active) Deprecated.As of Cavanaugh (7.4.x)getCountry
(long countryId) getCountryByA2
(long companyId, String a2) getCountryByA2
(String a2) Deprecated.As of Cavanaugh (7.4.x)getCountryByA3
(long companyId, String a3) getCountryByA3
(String a3) Deprecated.As of Cavanaugh (7.4.x)getCountryByName
(long companyId, String name) getCountryByName
(String name) Deprecated.As of Cavanaugh (7.4.x)getCountryByNumber
(long companyId, String number) Returns the OSGi service identifier.searchCountries
(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) updateActive
(long countryId, boolean active) updateCountry
(long countryId, String a2, String a3, boolean active, boolean billingAllowed, String idd, String name, String number, double position, boolean shippingAllowed, boolean subjectToVAT) updateGroupFilterEnabled
(long countryId, boolean groupFilterEnabled)
-
Method Details
-
addCountry
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 - Throws:
PortalException
-
addCountry
@Deprecated Country addCountry(String name, String a2, String a3, String number, String idd, boolean active) throws PortalException Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
deleteCountry
- Throws:
PortalException
-
fetchCountry
-
fetchCountryByA2
@Transactional(propagation=SUPPORTS, readOnly=true) Country fetchCountryByA2(long companyId, String a2) -
fetchCountryByA2
Deprecated.As of Cavanaugh (7.4.x) -
fetchCountryByA3
@Transactional(propagation=SUPPORTS, readOnly=true) Country fetchCountryByA3(long companyId, String a3) -
fetchCountryByA3
Deprecated.As of Cavanaugh (7.4.x) -
getCompanyCountries
@Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCompanyCountries(long companyId) -
getCompanyCountries
@AccessControlled(guestAccessEnabled=true) @Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCompanyCountries(long companyId, boolean active) -
getCompanyCountries
@Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCompanyCountries(long companyId, boolean active, int start, int end, OrderByComparator<Country> orderByComparator) -
getCompanyCountries
@Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCompanyCountries(long companyId, int start, int end, OrderByComparator<Country> orderByComparator) -
getCompanyCountriesCount
-
getCompanyCountriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompanyCountriesCount(long companyId, boolean active) -
getCountries
Deprecated.As of Cavanaugh (7.4.x) -
getCountries
@AccessControlled(guestAccessEnabled=true) @Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) List<Country> getCountries(boolean active) Deprecated.As of Cavanaugh (7.4.x) -
getCountry
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountry(long countryId) throws PortalException - Throws:
PortalException
-
getCountryByA2
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA2(long companyId, String a2) throws PortalException - Throws:
PortalException
-
getCountryByA2
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA2(String a2) throws PortalException Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByA3
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA3(long companyId, String a3) throws PortalException - Throws:
PortalException
-
getCountryByA3
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByA3(String a3) throws PortalException Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByName
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByName(long companyId, String name) throws PortalException - Throws:
PortalException
-
getCountryByName
@Deprecated @Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByName(String name) throws PortalException Deprecated.As of Cavanaugh (7.4.x)- Throws:
PortalException
-
getCountryByNumber
@Transactional(propagation=SUPPORTS, readOnly=true) Country getCountryByNumber(long companyId, String number) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
searchCountries
@JSONWebService(mode=IGNORE) @Transactional(propagation=SUPPORTS, readOnly=true) BaseModelSearchResult<Country> searchCountries(long companyId, Boolean active, String keywords, int start, int end, OrderByComparator<Country> orderByComparator) throws PortalException - Throws:
PortalException
-
updateActive
- Throws:
PortalException
-
updateCountry
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 - Throws:
PortalException
-
updateGroupFilterEnabled
- Throws:
PortalException
-