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