001 /** 002 * Copyright (c) 2000-2013 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 * @throws SystemException if a system exception occurred 040 */ 041 @Override 042 public com.liferay.portal.model.EmailAddress addEmailAddress( 043 com.liferay.portal.model.EmailAddress emailAddress) 044 throws com.liferay.portal.kernel.exception.SystemException { 045 return _emailAddressLocalService.addEmailAddress(emailAddress); 046 } 047 048 /** 049 * Creates a new email address with the primary key. Does not add the email address to the database. 050 * 051 * @param emailAddressId the primary key for the new email address 052 * @return the new email address 053 */ 054 @Override 055 public com.liferay.portal.model.EmailAddress createEmailAddress( 056 long emailAddressId) { 057 return _emailAddressLocalService.createEmailAddress(emailAddressId); 058 } 059 060 /** 061 * Deletes the email address with the primary key from the database. Also notifies the appropriate model listeners. 062 * 063 * @param emailAddressId the primary key of the email address 064 * @return the email address that was removed 065 * @throws PortalException if a email address with the primary key could not be found 066 * @throws SystemException if a system exception occurred 067 */ 068 @Override 069 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 070 long emailAddressId) 071 throws com.liferay.portal.kernel.exception.PortalException, 072 com.liferay.portal.kernel.exception.SystemException { 073 return _emailAddressLocalService.deleteEmailAddress(emailAddressId); 074 } 075 076 /** 077 * Deletes the email address from the database. Also notifies the appropriate model listeners. 078 * 079 * @param emailAddress the email address 080 * @return the email address that was removed 081 * @throws SystemException if a system exception occurred 082 */ 083 @Override 084 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 085 com.liferay.portal.model.EmailAddress emailAddress) 086 throws com.liferay.portal.kernel.exception.SystemException { 087 return _emailAddressLocalService.deleteEmailAddress(emailAddress); 088 } 089 090 @Override 091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 092 return _emailAddressLocalService.dynamicQuery(); 093 } 094 095 /** 096 * Performs a dynamic query on the database and returns the matching rows. 097 * 098 * @param dynamicQuery the dynamic query 099 * @return the matching rows 100 * @throws SystemException if a system exception occurred 101 */ 102 @Override 103 @SuppressWarnings("rawtypes") 104 public java.util.List dynamicQuery( 105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 106 throws com.liferay.portal.kernel.exception.SystemException { 107 return _emailAddressLocalService.dynamicQuery(dynamicQuery); 108 } 109 110 /** 111 * Performs a dynamic query on the database and returns a range of the matching rows. 112 * 113 * <p> 114 * 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. 115 * </p> 116 * 117 * @param dynamicQuery the dynamic query 118 * @param start the lower bound of the range of model instances 119 * @param end the upper bound of the range of model instances (not inclusive) 120 * @return the range of matching rows 121 * @throws SystemException if a system exception occurred 122 */ 123 @Override 124 @SuppressWarnings("rawtypes") 125 public java.util.List dynamicQuery( 126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 127 int end) throws com.liferay.portal.kernel.exception.SystemException { 128 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end); 129 } 130 131 /** 132 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param dynamicQuery the dynamic query 139 * @param start the lower bound of the range of model instances 140 * @param end the upper bound of the range of model instances (not inclusive) 141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 142 * @return the ordered range of matching rows 143 * @throws SystemException if a system exception occurred 144 */ 145 @Override 146 @SuppressWarnings("rawtypes") 147 public java.util.List dynamicQuery( 148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 149 int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException { 152 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end, 153 orderByComparator); 154 } 155 156 /** 157 * Returns the number of rows that match the dynamic query. 158 * 159 * @param dynamicQuery the dynamic query 160 * @return the number of rows that match the dynamic query 161 * @throws SystemException if a system exception occurred 162 */ 163 @Override 164 public long dynamicQueryCount( 165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 166 throws com.liferay.portal.kernel.exception.SystemException { 167 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery); 168 } 169 170 /** 171 * Returns the number of rows that match the dynamic query. 172 * 173 * @param dynamicQuery the dynamic query 174 * @param projection the projection to apply to the query 175 * @return the number of rows that match the dynamic query 176 * @throws SystemException if a system exception occurred 177 */ 178 @Override 179 public long dynamicQueryCount( 180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 181 com.liferay.portal.kernel.dao.orm.Projection projection) 182 throws com.liferay.portal.kernel.exception.SystemException { 183 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery, 184 projection); 185 } 186 187 @Override 188 public com.liferay.portal.model.EmailAddress fetchEmailAddress( 189 long emailAddressId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return _emailAddressLocalService.fetchEmailAddress(emailAddressId); 192 } 193 194 /** 195 * Returns the email address with the matching UUID and company. 196 * 197 * @param uuid the email address's UUID 198 * @param companyId the primary key of the company 199 * @return the matching email address, or <code>null</code> if a matching email address could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 @Override 203 public com.liferay.portal.model.EmailAddress fetchEmailAddressByUuidAndCompanyId( 204 java.lang.String uuid, long companyId) 205 throws com.liferay.portal.kernel.exception.SystemException { 206 return _emailAddressLocalService.fetchEmailAddressByUuidAndCompanyId(uuid, 207 companyId); 208 } 209 210 /** 211 * Returns the email address with the primary key. 212 * 213 * @param emailAddressId the primary key of the email address 214 * @return the email address 215 * @throws PortalException if a email address with the primary key could not be found 216 * @throws SystemException if a system exception occurred 217 */ 218 @Override 219 public com.liferay.portal.model.EmailAddress getEmailAddress( 220 long emailAddressId) 221 throws com.liferay.portal.kernel.exception.PortalException, 222 com.liferay.portal.kernel.exception.SystemException { 223 return _emailAddressLocalService.getEmailAddress(emailAddressId); 224 } 225 226 @Override 227 public com.liferay.portal.model.PersistedModel getPersistedModel( 228 java.io.Serializable primaryKeyObj) 229 throws com.liferay.portal.kernel.exception.PortalException, 230 com.liferay.portal.kernel.exception.SystemException { 231 return _emailAddressLocalService.getPersistedModel(primaryKeyObj); 232 } 233 234 /** 235 * Returns the email address with the matching UUID and company. 236 * 237 * @param uuid the email address's UUID 238 * @param companyId the primary key of the company 239 * @return the matching email address 240 * @throws PortalException if a matching email address could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 @Override 244 public com.liferay.portal.model.EmailAddress getEmailAddressByUuidAndCompanyId( 245 java.lang.String uuid, long companyId) 246 throws com.liferay.portal.kernel.exception.PortalException, 247 com.liferay.portal.kernel.exception.SystemException { 248 return _emailAddressLocalService.getEmailAddressByUuidAndCompanyId(uuid, 249 companyId); 250 } 251 252 /** 253 * Returns a range of all the email addresses. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param start the lower bound of the range of email addresses 260 * @param end the upper bound of the range of email addresses (not inclusive) 261 * @return the range of email addresses 262 * @throws SystemException if a system exception occurred 263 */ 264 @Override 265 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 266 int start, int end) 267 throws com.liferay.portal.kernel.exception.SystemException { 268 return _emailAddressLocalService.getEmailAddresses(start, end); 269 } 270 271 /** 272 * Returns the number of email addresses. 273 * 274 * @return the number of email addresses 275 * @throws SystemException if a system exception occurred 276 */ 277 @Override 278 public int getEmailAddressesCount() 279 throws com.liferay.portal.kernel.exception.SystemException { 280 return _emailAddressLocalService.getEmailAddressesCount(); 281 } 282 283 /** 284 * Updates the email address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 285 * 286 * @param emailAddress the email address 287 * @return the email address that was updated 288 * @throws SystemException if a system exception occurred 289 */ 290 @Override 291 public com.liferay.portal.model.EmailAddress updateEmailAddress( 292 com.liferay.portal.model.EmailAddress emailAddress) 293 throws com.liferay.portal.kernel.exception.SystemException { 294 return _emailAddressLocalService.updateEmailAddress(emailAddress); 295 } 296 297 /** 298 * Returns the Spring bean ID for this bean. 299 * 300 * @return the Spring bean ID for this bean 301 */ 302 @Override 303 public java.lang.String getBeanIdentifier() { 304 return _emailAddressLocalService.getBeanIdentifier(); 305 } 306 307 /** 308 * Sets the Spring bean ID for this bean. 309 * 310 * @param beanIdentifier the Spring bean ID for this bean 311 */ 312 @Override 313 public void setBeanIdentifier(java.lang.String beanIdentifier) { 314 _emailAddressLocalService.setBeanIdentifier(beanIdentifier); 315 } 316 317 /** 318 * @deprecated As of 6.2.0, replaced by {@link #addEmailAddress(long, 319 String, long, String, int, boolean, ServiceContext)} 320 */ 321 @Override 322 public com.liferay.portal.model.EmailAddress addEmailAddress(long userId, 323 java.lang.String className, long classPK, java.lang.String address, 324 int typeId, boolean primary) 325 throws com.liferay.portal.kernel.exception.PortalException, 326 com.liferay.portal.kernel.exception.SystemException { 327 return _emailAddressLocalService.addEmailAddress(userId, className, 328 classPK, address, typeId, primary); 329 } 330 331 @Override 332 public com.liferay.portal.model.EmailAddress addEmailAddress(long userId, 333 java.lang.String className, long classPK, java.lang.String address, 334 int typeId, boolean primary, 335 com.liferay.portal.service.ServiceContext serviceContext) 336 throws com.liferay.portal.kernel.exception.PortalException, 337 com.liferay.portal.kernel.exception.SystemException { 338 return _emailAddressLocalService.addEmailAddress(userId, className, 339 classPK, address, typeId, primary, serviceContext); 340 } 341 342 @Override 343 public void deleteEmailAddresses(long companyId, 344 java.lang.String className, long classPK) 345 throws com.liferay.portal.kernel.exception.SystemException { 346 _emailAddressLocalService.deleteEmailAddresses(companyId, className, 347 classPK); 348 } 349 350 @Override 351 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses() 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return _emailAddressLocalService.getEmailAddresses(); 354 } 355 356 @Override 357 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 358 long companyId, java.lang.String className, long classPK) 359 throws com.liferay.portal.kernel.exception.SystemException { 360 return _emailAddressLocalService.getEmailAddresses(companyId, 361 className, classPK); 362 } 363 364 @Override 365 public com.liferay.portal.model.EmailAddress updateEmailAddress( 366 long emailAddressId, java.lang.String address, int typeId, 367 boolean primary) 368 throws com.liferay.portal.kernel.exception.PortalException, 369 com.liferay.portal.kernel.exception.SystemException { 370 return _emailAddressLocalService.updateEmailAddress(emailAddressId, 371 address, typeId, primary); 372 } 373 374 /** 375 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 376 */ 377 public EmailAddressLocalService getWrappedEmailAddressLocalService() { 378 return _emailAddressLocalService; 379 } 380 381 /** 382 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 383 */ 384 public void setWrappedEmailAddressLocalService( 385 EmailAddressLocalService emailAddressLocalService) { 386 _emailAddressLocalService = emailAddressLocalService; 387 } 388 389 @Override 390 public EmailAddressLocalService getWrappedService() { 391 return _emailAddressLocalService; 392 } 393 394 @Override 395 public void setWrappedService( 396 EmailAddressLocalService emailAddressLocalService) { 397 _emailAddressLocalService = emailAddressLocalService; 398 } 399 400 private EmailAddressLocalService _emailAddressLocalService; 401 }