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 int 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 int 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 Spring bean ID for this bean. 237 * 238 * @return the Spring bean ID for this bean 239 */ 240 @Override 241 public java.lang.String getBeanIdentifier() { 242 return _emailAddressLocalService.getBeanIdentifier(); 243 } 244 245 /** 246 * Returns the email address with the primary key. 247 * 248 * @param emailAddressId the primary key of the email address 249 * @return the email address 250 * @throws PortalException if a email address with the primary key could not be found 251 */ 252 @Override 253 public com.liferay.portal.model.EmailAddress getEmailAddress( 254 long emailAddressId) 255 throws com.liferay.portal.kernel.exception.PortalException { 256 return _emailAddressLocalService.getEmailAddress(emailAddressId); 257 } 258 259 /** 260 * Returns the email address with the matching UUID and company. 261 * 262 * @param uuid the email address's UUID 263 * @param companyId the primary key of the company 264 * @return the matching email address 265 * @throws PortalException if a matching email address could not be found 266 */ 267 @Override 268 public com.liferay.portal.model.EmailAddress getEmailAddressByUuidAndCompanyId( 269 java.lang.String uuid, long companyId) 270 throws com.liferay.portal.kernel.exception.PortalException { 271 return _emailAddressLocalService.getEmailAddressByUuidAndCompanyId(uuid, 272 companyId); 273 } 274 275 @Override 276 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses() { 277 return _emailAddressLocalService.getEmailAddresses(); 278 } 279 280 @Override 281 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 282 long companyId, java.lang.String className, long classPK) { 283 return _emailAddressLocalService.getEmailAddresses(companyId, 284 className, classPK); 285 } 286 287 /** 288 * Returns a range of all the email addresses. 289 * 290 * <p> 291 * 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. 292 * </p> 293 * 294 * @param start the lower bound of the range of email addresses 295 * @param end the upper bound of the range of email addresses (not inclusive) 296 * @return the range of email addresses 297 */ 298 @Override 299 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 300 int start, int end) { 301 return _emailAddressLocalService.getEmailAddresses(start, end); 302 } 303 304 /** 305 * Returns the number of email addresses. 306 * 307 * @return the number of email addresses 308 */ 309 @Override 310 public int getEmailAddressesCount() { 311 return _emailAddressLocalService.getEmailAddressesCount(); 312 } 313 314 @Override 315 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 316 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) { 317 return _emailAddressLocalService.getExportActionableDynamicQuery(portletDataContext); 318 } 319 320 @Override 321 public com.liferay.portal.model.PersistedModel getPersistedModel( 322 java.io.Serializable primaryKeyObj) 323 throws com.liferay.portal.kernel.exception.PortalException { 324 return _emailAddressLocalService.getPersistedModel(primaryKeyObj); 325 } 326 327 /** 328 * Sets the Spring bean ID for this bean. 329 * 330 * @param beanIdentifier the Spring bean ID for this bean 331 */ 332 @Override 333 public void setBeanIdentifier(java.lang.String beanIdentifier) { 334 _emailAddressLocalService.setBeanIdentifier(beanIdentifier); 335 } 336 337 /** 338 * Updates the email address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 339 * 340 * @param emailAddress the email address 341 * @return the email address that was updated 342 */ 343 @Override 344 public com.liferay.portal.model.EmailAddress updateEmailAddress( 345 com.liferay.portal.model.EmailAddress emailAddress) { 346 return _emailAddressLocalService.updateEmailAddress(emailAddress); 347 } 348 349 @Override 350 public com.liferay.portal.model.EmailAddress updateEmailAddress( 351 long emailAddressId, java.lang.String address, int typeId, 352 boolean primary) 353 throws com.liferay.portal.kernel.exception.PortalException { 354 return _emailAddressLocalService.updateEmailAddress(emailAddressId, 355 address, typeId, primary); 356 } 357 358 /** 359 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 360 */ 361 @Deprecated 362 public EmailAddressLocalService getWrappedEmailAddressLocalService() { 363 return _emailAddressLocalService; 364 } 365 366 /** 367 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 368 */ 369 @Deprecated 370 public void setWrappedEmailAddressLocalService( 371 EmailAddressLocalService emailAddressLocalService) { 372 _emailAddressLocalService = emailAddressLocalService; 373 } 374 375 @Override 376 public EmailAddressLocalService getWrappedService() { 377 return _emailAddressLocalService; 378 } 379 380 @Override 381 public void setWrappedService( 382 EmailAddressLocalService emailAddressLocalService) { 383 _emailAddressLocalService = emailAddressLocalService; 384 } 385 386 private EmailAddressLocalService _emailAddressLocalService; 387 }