001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 /** 020 * Provides a wrapper for {@link EmailAddressLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see EmailAddressLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class EmailAddressLocalServiceWrapper implements EmailAddressLocalService, 028 ServiceWrapper<EmailAddressLocalService> { 029 public EmailAddressLocalServiceWrapper( 030 EmailAddressLocalService emailAddressLocalService) { 031 _emailAddressLocalService = emailAddressLocalService; 032 } 033 034 /** 035 * Adds the email address to the database. Also notifies the appropriate model listeners. 036 * 037 * @param emailAddress the email address 038 * @return the email address that was added 039 */ 040 @Override 041 public com.liferay.portal.model.EmailAddress addEmailAddress( 042 com.liferay.portal.model.EmailAddress emailAddress) { 043 return _emailAddressLocalService.addEmailAddress(emailAddress); 044 } 045 046 /** 047 * @deprecated As of 6.2.0, replaced by {@link #addEmailAddress(long, 048 String, long, String, int, boolean, ServiceContext)} 049 */ 050 @Deprecated 051 @Override 052 public com.liferay.portal.model.EmailAddress addEmailAddress(long userId, 053 java.lang.String className, long classPK, java.lang.String address, 054 long typeId, boolean primary) 055 throws com.liferay.portal.kernel.exception.PortalException { 056 return _emailAddressLocalService.addEmailAddress(userId, className, 057 classPK, address, typeId, primary); 058 } 059 060 @Override 061 public com.liferay.portal.model.EmailAddress addEmailAddress(long userId, 062 java.lang.String className, long classPK, java.lang.String address, 063 long typeId, boolean primary, 064 com.liferay.portal.service.ServiceContext serviceContext) 065 throws com.liferay.portal.kernel.exception.PortalException { 066 return _emailAddressLocalService.addEmailAddress(userId, className, 067 classPK, address, typeId, primary, serviceContext); 068 } 069 070 /** 071 * Creates a new email address with the primary key. Does not add the email address to the database. 072 * 073 * @param emailAddressId the primary key for the new email address 074 * @return the new email address 075 */ 076 @Override 077 public com.liferay.portal.model.EmailAddress createEmailAddress( 078 long emailAddressId) { 079 return _emailAddressLocalService.createEmailAddress(emailAddressId); 080 } 081 082 /** 083 * Deletes the email address from the database. Also notifies the appropriate model listeners. 084 * 085 * @param emailAddress the email address 086 * @return the email address that was removed 087 */ 088 @Override 089 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 090 com.liferay.portal.model.EmailAddress emailAddress) { 091 return _emailAddressLocalService.deleteEmailAddress(emailAddress); 092 } 093 094 /** 095 * Deletes the email address with the primary key from the database. Also notifies the appropriate model listeners. 096 * 097 * @param emailAddressId the primary key of the email address 098 * @return the email address that was removed 099 * @throws PortalException if a email address with the primary key could not be found 100 */ 101 @Override 102 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 103 long emailAddressId) 104 throws com.liferay.portal.kernel.exception.PortalException { 105 return _emailAddressLocalService.deleteEmailAddress(emailAddressId); 106 } 107 108 @Override 109 public void deleteEmailAddresses(long companyId, 110 java.lang.String className, long classPK) { 111 _emailAddressLocalService.deleteEmailAddresses(companyId, className, 112 classPK); 113 } 114 115 /** 116 * @throws PortalException 117 */ 118 @Override 119 public com.liferay.portal.model.PersistedModel deletePersistedModel( 120 com.liferay.portal.model.PersistedModel persistedModel) 121 throws com.liferay.portal.kernel.exception.PortalException { 122 return _emailAddressLocalService.deletePersistedModel(persistedModel); 123 } 124 125 @Override 126 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 127 return _emailAddressLocalService.dynamicQuery(); 128 } 129 130 /** 131 * Performs a dynamic query on the database and returns the matching rows. 132 * 133 * @param dynamicQuery the dynamic query 134 * @return the matching rows 135 */ 136 @Override 137 public <T> java.util.List<T> dynamicQuery( 138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 139 return _emailAddressLocalService.dynamicQuery(dynamicQuery); 140 } 141 142 /** 143 * Performs a dynamic query on the database and returns a range of the matching rows. 144 * 145 * <p> 146 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 147 * </p> 148 * 149 * @param dynamicQuery the dynamic query 150 * @param start the lower bound of the range of model instances 151 * @param end the upper bound of the range of model instances (not inclusive) 152 * @return the range of matching rows 153 */ 154 @Override 155 public <T> java.util.List<T> dynamicQuery( 156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 157 int end) { 158 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end); 159 } 160 161 /** 162 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 163 * 164 * <p> 165 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 166 * </p> 167 * 168 * @param dynamicQuery the dynamic query 169 * @param start the lower bound of the range of model instances 170 * @param end the upper bound of the range of model instances (not inclusive) 171 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 172 * @return the ordered range of matching rows 173 */ 174 @Override 175 public <T> java.util.List<T> dynamicQuery( 176 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 177 int end, 178 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 179 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end, 180 orderByComparator); 181 } 182 183 /** 184 * Returns the number of rows matching the dynamic query. 185 * 186 * @param dynamicQuery the dynamic query 187 * @return the number of rows matching the dynamic query 188 */ 189 @Override 190 public long dynamicQueryCount( 191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 192 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery); 193 } 194 195 /** 196 * Returns the number of rows matching the dynamic query. 197 * 198 * @param dynamicQuery the dynamic query 199 * @param projection the projection to apply to the query 200 * @return the number of rows matching the dynamic query 201 */ 202 @Override 203 public long dynamicQueryCount( 204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 205 com.liferay.portal.kernel.dao.orm.Projection projection) { 206 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery, 207 projection); 208 } 209 210 @Override 211 public com.liferay.portal.model.EmailAddress fetchEmailAddress( 212 long emailAddressId) { 213 return _emailAddressLocalService.fetchEmailAddress(emailAddressId); 214 } 215 216 /** 217 * Returns the email address with the matching UUID and company. 218 * 219 * @param uuid the email address's UUID 220 * @param companyId the primary key of the company 221 * @return the matching email address, or <code>null</code> if a matching email address could not be found 222 */ 223 @Override 224 public com.liferay.portal.model.EmailAddress fetchEmailAddressByUuidAndCompanyId( 225 java.lang.String uuid, long companyId) { 226 return _emailAddressLocalService.fetchEmailAddressByUuidAndCompanyId(uuid, 227 companyId); 228 } 229 230 @Override 231 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 232 return _emailAddressLocalService.getActionableDynamicQuery(); 233 } 234 235 /** 236 * Returns the email address with the primary key. 237 * 238 * @param emailAddressId the primary key of the email address 239 * @return the email address 240 * @throws PortalException if a email address with the primary key could not be found 241 */ 242 @Override 243 public com.liferay.portal.model.EmailAddress getEmailAddress( 244 long emailAddressId) 245 throws com.liferay.portal.kernel.exception.PortalException { 246 return _emailAddressLocalService.getEmailAddress(emailAddressId); 247 } 248 249 /** 250 * Returns the email address with the matching UUID and company. 251 * 252 * @param uuid the email address's UUID 253 * @param companyId the primary key of the company 254 * @return the matching email address 255 * @throws PortalException if a matching email address could not be found 256 */ 257 @Override 258 public com.liferay.portal.model.EmailAddress getEmailAddressByUuidAndCompanyId( 259 java.lang.String uuid, long companyId) 260 throws com.liferay.portal.kernel.exception.PortalException { 261 return _emailAddressLocalService.getEmailAddressByUuidAndCompanyId(uuid, 262 companyId); 263 } 264 265 @Override 266 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses() { 267 return _emailAddressLocalService.getEmailAddresses(); 268 } 269 270 @Override 271 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 272 long companyId, java.lang.String className, long classPK) { 273 return _emailAddressLocalService.getEmailAddresses(companyId, 274 className, classPK); 275 } 276 277 /** 278 * Returns a range of all the email addresses. 279 * 280 * <p> 281 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.EmailAddressModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 282 * </p> 283 * 284 * @param start the lower bound of the range of email addresses 285 * @param end the upper bound of the range of email addresses (not inclusive) 286 * @return the range of email addresses 287 */ 288 @Override 289 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 290 int start, int end) { 291 return _emailAddressLocalService.getEmailAddresses(start, end); 292 } 293 294 /** 295 * Returns the number of email addresses. 296 * 297 * @return the number of email addresses 298 */ 299 @Override 300 public int getEmailAddressesCount() { 301 return _emailAddressLocalService.getEmailAddressesCount(); 302 } 303 304 @Override 305 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 306 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) { 307 return _emailAddressLocalService.getExportActionableDynamicQuery(portletDataContext); 308 } 309 310 @Override 311 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 312 return _emailAddressLocalService.getIndexableActionableDynamicQuery(); 313 } 314 315 /** 316 * Returns the OSGi service identifier. 317 * 318 * @return the OSGi service identifier 319 */ 320 @Override 321 public java.lang.String getOSGiServiceIdentifier() { 322 return _emailAddressLocalService.getOSGiServiceIdentifier(); 323 } 324 325 @Override 326 public com.liferay.portal.model.PersistedModel getPersistedModel( 327 java.io.Serializable primaryKeyObj) 328 throws com.liferay.portal.kernel.exception.PortalException { 329 return _emailAddressLocalService.getPersistedModel(primaryKeyObj); 330 } 331 332 /** 333 * Updates the email address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 334 * 335 * @param emailAddress the email address 336 * @return the email address that was updated 337 */ 338 @Override 339 public com.liferay.portal.model.EmailAddress updateEmailAddress( 340 com.liferay.portal.model.EmailAddress emailAddress) { 341 return _emailAddressLocalService.updateEmailAddress(emailAddress); 342 } 343 344 @Override 345 public com.liferay.portal.model.EmailAddress updateEmailAddress( 346 long emailAddressId, java.lang.String address, long typeId, 347 boolean primary) 348 throws com.liferay.portal.kernel.exception.PortalException { 349 return _emailAddressLocalService.updateEmailAddress(emailAddressId, 350 address, typeId, primary); 351 } 352 353 @Override 354 public EmailAddressLocalService getWrappedService() { 355 return _emailAddressLocalService; 356 } 357 358 @Override 359 public void setWrappedService( 360 EmailAddressLocalService emailAddressLocalService) { 361 _emailAddressLocalService = emailAddressLocalService; 362 } 363 364 private EmailAddressLocalService _emailAddressLocalService; 365 }