Package com.liferay.portal.service.impl
Class AddressLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portal.service.base.AddressLocalServiceBaseImpl
com.liferay.portal.service.impl.AddressLocalServiceImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.AddressLocalService,com.liferay.portal.kernel.service.BaseLocalService,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.portal.kernel.model.Address>,com.liferay.portal.kernel.service.PersistedModelLocalService
- Author:
- Brian Wing Shun Chan, Alexander Chow
-
Field Summary
Fields inherited from class com.liferay.portal.service.base.AddressLocalServiceBaseImpl
addressLocalService, addressPersistence, counterLocalService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.AddressaddAddress(String externalReferenceCode, long userId, String className, long classPK, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected com.liferay.portal.kernel.search.SearchContextbuildSearchContext(long companyId, String className, long classPK, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.model.AddresscopyAddress(long sourceAddressId, String className, long classPK, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.portal.kernel.model.AddressdeleteAddress(long addressId) Deletes the address with the primary key from the database.com.liferay.portal.kernel.model.AddressdeleteAddress(com.liferay.portal.kernel.model.Address address) Deletes the address from the database.voiddeleteAddresses(long companyId, String className, long classPK) voiddeleteCountryAddresses(long countryId) voiddeleteRegionAddresses(long regionId) List<com.liferay.portal.kernel.model.Address>List<com.liferay.portal.kernel.model.Address>getAddresses(long companyId, String className, long classPK) List<com.liferay.portal.kernel.model.Address>getAddresses(long companyId, String className, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Address> orderByComparator) protected List<com.liferay.portal.kernel.model.Address>getAddresses(com.liferay.portal.kernel.search.Hits hits) intgetAddressesCount(long companyId, String className, long classPK) List<com.liferay.portal.kernel.model.Address>getListTypeAddresses(long companyId, String className, long classPK, long[] listTypeIds) List<com.liferay.portal.kernel.model.Address>getListTypeAddresses(long companyId, String className, long classPK, long[] listTypeIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Address> orderByComparator) com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address>searchAddresses(long companyId, String className, long classPK, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address>searchAddresses(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.portal.kernel.model.AddressupdateAddress(long addressId, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) com.liferay.portal.kernel.model.AddressupdateAddress(long addressId, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber) com.liferay.portal.kernel.model.AddressupdateExternalReferenceCode(long addressId, String externalReferenceCode) com.liferay.portal.kernel.model.AddressupdateExternalReferenceCode(com.liferay.portal.kernel.model.Address address, String externalReferenceCode) protected voidvalidate(long addressId, long companyId, long classNameId, long classPK, boolean mailing, boolean primary) protected voidvalidate(long addressId, long companyId, long classNameId, long classPK, String street1, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) Methods inherited from class com.liferay.portal.service.base.AddressLocalServiceBaseImpl
addAddress, afterPropertiesSet, createAddress, createPersistedModel, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAddress, fetchAddressByExternalReferenceCode, fetchAddressByUuidAndCompanyId, getActionableDynamicQuery, getAddress, getAddressByExternalReferenceCode, getAddressByUuidAndCompanyId, getAddresses, getAddressesCount, getAddressLocalService, getAddressPersistence, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setAddressLocalService, setAddressPersistence, setCounterLocalService, updateAddress, updateWithUnsafeFunctionMethods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AddressLocalServiceImpl
public AddressLocalServiceImpl()
-
-
Method Details
-
addAddress
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Address addAddress(String externalReferenceCode, long userId, String className, long classPK, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyAddress
public com.liferay.portal.kernel.model.Address copyAddress(long sourceAddressId, String className, long classPK, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteAddress
@Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.portal.kernel.model.Address deleteAddress(com.liferay.portal.kernel.model.Address address) Description copied from class:AddressLocalServiceBaseImplDeletes the address from the database. Also notifies the appropriate model listeners.Important: Inspect AddressLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteAddressin interfacecom.liferay.portal.kernel.service.AddressLocalService- Overrides:
deleteAddressin classAddressLocalServiceBaseImpl- Parameters:
address- the address- Returns:
- the address that was removed
-
deleteAddress
public com.liferay.portal.kernel.model.Address deleteAddress(long addressId) throws com.liferay.portal.kernel.exception.PortalException Description copied from class:AddressLocalServiceBaseImplDeletes the address with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AddressLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deleteAddressin interfacecom.liferay.portal.kernel.service.AddressLocalService- Overrides:
deleteAddressin classAddressLocalServiceBaseImpl- Parameters:
addressId- the primary key of the address- Returns:
- the address that was removed
- Throws:
com.liferay.portal.kernel.exception.PortalException- if a address with the primary key could not be found
-
deleteAddresses
-
deleteCountryAddresses
public void deleteCountryAddresses(long countryId) -
deleteRegionAddresses
public void deleteRegionAddresses(long regionId) -
getAddresses
-
getAddresses
-
getAddresses
-
getAddressesCount
-
getListTypeAddresses
-
getListTypeAddresses
-
searchAddresses
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address> searchAddresses(long companyId, String className, long classPK, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAddress
public com.liferay.portal.kernel.model.Address updateAddress(long addressId, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateAddress
@Indexable(type=REINDEX) public com.liferay.portal.kernel.model.Address updateAddress(long addressId, String name, String description, String street1, String street2, String street3, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary, String phoneNumber) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public com.liferay.portal.kernel.model.Address updateExternalReferenceCode(com.liferay.portal.kernel.model.Address address, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public com.liferay.portal.kernel.model.Address updateExternalReferenceCode(long addressId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
buildSearchContext
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, String className, long classPK, String keywords, LinkedHashMap<String, Object> params, int start, int end, com.liferay.portal.kernel.search.Sort sort) -
getAddresses
protected List<com.liferay.portal.kernel.model.Address> getAddresses(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchAddresses
protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.kernel.model.Address> searchAddresses(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
validate
protected void validate(long addressId, long companyId, long classNameId, long classPK, boolean mailing, boolean primary) -
validate
protected void validate(long addressId, long companyId, long classNameId, long classPK, String street1, String city, String zip, long regionId, long countryId, long listTypeId, boolean mailing, boolean primary) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-