Class AddressServiceUtil
Object
com.liferay.portal.kernel.service.AddressServiceUtil
Provides the remote service utility for Address. This utility wraps
com.liferay.portal.service.impl.AddressServiceImpl
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.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Address
addAddress
(String externalReferenceCode, 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, ServiceContext serviceContext) static void
deleteAddress
(long addressId) static Address
getAddress
(long addressId) getAddresses
(String className, long classPK) getListTypeAddresses
(String className, long classPK, long[] listTypeIds) static String
Returns the OSGi service identifier.static AddressService
static void
setService
(AddressService service) static 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) static Address
updateExternalReferenceCode
(long addressId, String externalReferenceCode) static Address
updateExternalReferenceCode
(Address address, String externalReferenceCode)
-
Constructor Details
-
AddressServiceUtil
public AddressServiceUtil()
-
-
Method Details
-
addAddress
public static Address addAddress(String externalReferenceCode, 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, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deleteAddress
- Throws:
PortalException
-
getAddress
- Throws:
PortalException
-
getAddresses
- Throws:
PortalException
-
getListTypeAddresses
public static List<Address> getListTypeAddresses(String className, long classPK, long[] listTypeIds) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateAddress
public static 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 PortalException - Throws:
PortalException
-
updateExternalReferenceCode
public static Address updateExternalReferenceCode(Address address, String externalReferenceCode) throws PortalException - Throws:
PortalException
-
updateExternalReferenceCode
public static Address updateExternalReferenceCode(long addressId, String externalReferenceCode) throws PortalException - Throws:
PortalException
-
getService
-
setService
-