001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AddressLocalServiceUtil {
033 public static com.liferay.portal.model.Address addAddress(
034 com.liferay.portal.model.Address address)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addAddress(address);
037 }
038
039 public static com.liferay.portal.model.Address createAddress(long addressId) {
040 return getService().createAddress(addressId);
041 }
042
043 public static void deleteAddress(long addressId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 getService().deleteAddress(addressId);
047 }
048
049 public static void deleteAddress(com.liferay.portal.model.Address address)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 getService().deleteAddress(address);
052 }
053
054 @SuppressWarnings("unchecked")
055 public static java.util.List dynamicQuery(
056 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().dynamicQuery(dynamicQuery);
059 }
060
061 @SuppressWarnings("unchecked")
062 public static java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().dynamicQuery(dynamicQuery, start, end);
066 }
067
068 @SuppressWarnings("unchecked")
069 public static java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076 }
077
078 public static long dynamicQueryCount(
079 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getService().dynamicQueryCount(dynamicQuery);
082 }
083
084 public static com.liferay.portal.model.Address getAddress(long addressId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getAddress(addressId);
088 }
089
090 public static java.util.List<com.liferay.portal.model.Address> getAddresses(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getAddresses(start, end);
094 }
095
096 public static int getAddressesCount()
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getAddressesCount();
099 }
100
101 public static com.liferay.portal.model.Address updateAddress(
102 com.liferay.portal.model.Address address)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().updateAddress(address);
105 }
106
107 public static com.liferay.portal.model.Address updateAddress(
108 com.liferay.portal.model.Address address, boolean merge)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().updateAddress(address, merge);
111 }
112
113 public static com.liferay.portal.model.Address addAddress(long userId,
114 java.lang.String className, long classPK, java.lang.String street1,
115 java.lang.String street2, java.lang.String street3,
116 java.lang.String city, java.lang.String zip, long regionId,
117 long countryId, int typeId, boolean mailing, boolean primary)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService()
121 .addAddress(userId, className, classPK, street1, street2,
122 street3, city, zip, regionId, countryId, typeId, mailing, primary);
123 }
124
125 public static void deleteAddresses(long companyId,
126 java.lang.String className, long classPK)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 getService().deleteAddresses(companyId, className, classPK);
129 }
130
131 public static java.util.List<com.liferay.portal.model.Address> getAddresses()
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getService().getAddresses();
134 }
135
136 public static java.util.List<com.liferay.portal.model.Address> getAddresses(
137 long companyId, java.lang.String className, long classPK)
138 throws com.liferay.portal.kernel.exception.SystemException {
139 return getService().getAddresses(companyId, className, classPK);
140 }
141
142 public static com.liferay.portal.model.Address updateAddress(
143 long addressId, java.lang.String street1, java.lang.String street2,
144 java.lang.String street3, java.lang.String city, java.lang.String zip,
145 long regionId, long countryId, int typeId, boolean mailing,
146 boolean primary)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return getService()
150 .updateAddress(addressId, street1, street2, street3, city,
151 zip, regionId, countryId, typeId, mailing, primary);
152 }
153
154 public static AddressLocalService getService() {
155 if (_service == null) {
156 _service = (AddressLocalService)PortalBeanLocatorUtil.locate(AddressLocalService.class.getName());
157 }
158
159 return _service;
160 }
161
162 public void setService(AddressLocalService service) {
163 _service = service;
164 }
165
166 private static AddressLocalService _service;
167 }