1
19
20 package com.liferay.portal.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface AddressService {
55 public com.liferay.portal.model.Address addAddress(
56 java.lang.String className, long classPK, java.lang.String street1,
57 java.lang.String street2, java.lang.String street3,
58 java.lang.String city, java.lang.String zip, long regionId,
59 long countryId, int typeId, boolean mailing, boolean primary)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException;
62
63 public void deleteAddress(long addressId)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
68 public com.liferay.portal.model.Address getAddress(long addressId)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
73 public java.util.List<com.liferay.portal.model.Address> getAddresses(
74 java.lang.String className, long classPK)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 public com.liferay.portal.model.Address updateAddress(long addressId,
79 java.lang.String street1, java.lang.String street2,
80 java.lang.String street3, java.lang.String city, java.lang.String zip,
81 long regionId, long countryId, int typeId, boolean mailing,
82 boolean primary)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85 }