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