com.liferay.portal.service
Class AddressServiceUtil
java.lang.Object
com.liferay.portal.service.AddressServiceUtil
@ProviderType
public class AddressServiceUtil
- extends Object
Provides the remote service utility for Address. This utility wraps
com.liferay.portal.service.impl.AddressServiceImpl and is the
primary 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.
- See Also:
AddressService,
AddressServiceBaseImpl,
com.liferay.portal.service.impl.AddressServiceImpl
|
Method Summary |
static Address |
addAddress(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)
|
static void |
deleteAddress(long addressId)
|
static Address |
getAddress(long addressId)
|
static List<Address> |
getAddresses(String className,
long classPK)
|
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier. |
static AddressService |
getService()
|
static Address |
updateAddress(long addressId,
String street1,
String street2,
String street3,
String city,
String zip,
long regionId,
long countryId,
long typeId,
boolean mailing,
boolean primary)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddressServiceUtil
public AddressServiceUtil()
addAddress
public static Address addAddress(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
public static void deleteAddress(long addressId)
throws PortalException
- Throws:
PortalException
getAddress
public static Address getAddress(long addressId)
throws PortalException
- Throws:
PortalException
getAddresses
public static List<Address> getAddresses(String className,
long classPK)
throws PortalException
- Throws:
PortalException
getOSGiServiceIdentifier
public static String getOSGiServiceIdentifier()
- Returns the OSGi service identifier.
- Returns:
- the OSGi service identifier
updateAddress
public static 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
getService
public static AddressService getService()