com.liferay.portal.service.impl
Class AddressLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portal.service.base.AddressLocalServiceBaseImpl
com.liferay.portal.service.impl.AddressLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableOSGiService, AddressLocalService, BaseLocalService, PersistedModelLocalService
public class AddressLocalServiceImpl
- extends AddressLocalServiceBaseImpl
| Fields inherited from class com.liferay.portal.service.base.AddressLocalServiceBaseImpl |
addressLocalService, addressPersistence, classNameLocalService, classNamePersistence, counterLocalService, countryPersistence, listTypeLocalService, listTypePersistence, persistedModelLocalServiceRegistry, userFinder, userLocalService, userPersistence |
|
Method Summary |
Address |
addAddress(long userId,
String className,
long classPK,
String street1,
String street2,
String street3,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary,
ServiceContext serviceContext)
|
Address |
deleteAddress(Address address)
Deletes the address from the database. |
Address |
deleteAddress(long addressId)
Deletes the address with the primary key from the database. |
void |
deleteAddresses(long companyId,
String className,
long classPK)
|
List<Address> |
getAddresses()
|
List<Address> |
getAddresses(long companyId,
String className,
long classPK)
|
Address |
updateAddress(long addressId,
String street1,
String street2,
String street3,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary)
|
protected void |
validate(long addressId,
long companyId,
long classNameId,
long classPK,
boolean mailing,
boolean primary)
|
protected void |
validate(long addressId,
long companyId,
long classNameId,
long classPK,
String street1,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary)
|
| Methods inherited from class com.liferay.portal.service.base.AddressLocalServiceBaseImpl |
addAddress, afterPropertiesSet, createAddress, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAddress, fetchAddressByUuidAndCompanyId, getActionableDynamicQuery, getAddress, getAddressByUuidAndCompanyId, getAddresses, getAddressesCount, getAddressLocalService, getAddressPersistence, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getCountryPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getListTypeLocalService, getListTypePersistence, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setAddressLocalService, setAddressPersistence, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setCountryPersistence, setListTypeLocalService, setListTypePersistence, setUserFinder, setUserLocalService, setUserPersistence, updateAddress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddressLocalServiceImpl
public AddressLocalServiceImpl()
addAddress
public Address addAddress(long userId,
String className,
long classPK,
String street1,
String street2,
String street3,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
deleteAddress
@SystemEvent(action=1,
type=1)
public Address deleteAddress(Address address)
- Description copied from class:
AddressLocalServiceBaseImpl
- Deletes the address from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteAddress in interface AddressLocalService- Overrides:
deleteAddress in class AddressLocalServiceBaseImpl
- Parameters:
address - the address
- Returns:
- the address that was removed
deleteAddress
public Address deleteAddress(long addressId)
throws PortalException
- Description copied from class:
AddressLocalServiceBaseImpl
- Deletes the address with the primary key from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteAddress in interface AddressLocalService- Overrides:
deleteAddress in class AddressLocalServiceBaseImpl
- Parameters:
addressId - the primary key of the address
- Returns:
- the address that was removed
- Throws:
PortalException - if a address with the primary key could not be found
deleteAddresses
public void deleteAddresses(long companyId,
String className,
long classPK)
getAddresses
public List<Address> getAddresses()
getAddresses
public List<Address> getAddresses(long companyId,
String className,
long classPK)
updateAddress
public Address updateAddress(long addressId,
String street1,
String street2,
String street3,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary)
throws PortalException
- Throws:
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 typeId,
boolean mailing,
boolean primary)
throws PortalException
- Throws:
PortalException