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 @Override 047 public com.liferay.portal.model.EmailAddress addEmailAddress(long userId, 048 java.lang.String className, long classPK, java.lang.String address, 049 long typeId, boolean primary, 050 com.liferay.portal.service.ServiceContext serviceContext) 051 throws com.liferay.portal.kernel.exception.PortalException { 052 return _emailAddressLocalService.addEmailAddress(userId, className, 053 classPK, address, typeId, primary, serviceContext); 054 } 055 056 /** 057 * Creates a new email address with the primary key. Does not add the email address to the database. 058 * 059 * @param emailAddressId the primary key for the new email address 060 * @return the new email address 061 */ 062 @Override 063 public com.liferay.portal.model.EmailAddress createEmailAddress( 064 long emailAddressId) { 065 return _emailAddressLocalService.createEmailAddress(emailAddressId); 066 } 067 068 /** 069 * Deletes the email address from the database. Also notifies the appropriate model listeners. 070 * 071 * @param emailAddress the email address 072 * @return the email address that was removed 073 */ 074 @Override 075 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 076 com.liferay.portal.model.EmailAddress emailAddress) { 077 return _emailAddressLocalService.deleteEmailAddress(emailAddress); 078 } 079 080 /** 081 * Deletes the email address with the primary key from the database. Also notifies the appropriate model listeners. 082 * 083 * @param emailAddressId the primary key of the email address 084 * @return the email address that was removed 085 * @throws PortalException if a email address with the primary key could not be found 086 */ 087 @Override 088 public com.liferay.portal.model.EmailAddress deleteEmailAddress( 089 long emailAddressId) 090 throws com.liferay.portal.kernel.exception.PortalException { 091 return _emailAddressLocalService.deleteEmailAddress(emailAddressId); 092 } 093 094 @Override 095 public void deleteEmailAddresses(long companyId, 096 java.lang.String className, long classPK) { 097 _emailAddressLocalService.deleteEmailAddresses(companyId, className, 098 classPK); 099 } 100 101 /** 102 * @throws PortalException 103 */ 104 @Override 105 public com.liferay.portal.model.PersistedModel deletePersistedModel( 106 com.liferay.portal.model.PersistedModel persistedModel) 107 throws com.liferay.portal.kernel.exception.PortalException { 108 return _emailAddressLocalService.deletePersistedModel(persistedModel); 109 } 110 111 @Override 112 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 113 return _emailAddressLocalService.dynamicQuery(); 114 } 115 116 /** 117 * Performs a dynamic query on the database and returns the matching rows. 118 * 119 * @param dynamicQuery the dynamic query 120 * @return the matching rows 121 */ 122 @Override 123 public <T> java.util.List<T> dynamicQuery( 124 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 125 return _emailAddressLocalService.dynamicQuery(dynamicQuery); 126 } 127 128 /** 129 * Performs a dynamic query on the database and returns a 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 * @return the range of matching rows 139 */ 140 @Override 141 public <T> java.util.List<T> dynamicQuery( 142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 143 int end) { 144 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end); 145 } 146 147 /** 148 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 149 * 150 * <p> 151 * 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. 152 * </p> 153 * 154 * @param dynamicQuery the dynamic query 155 * @param start the lower bound of the range of model instances 156 * @param end the upper bound of the range of model instances (not inclusive) 157 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 158 * @return the ordered range of matching rows 159 */ 160 @Override 161 public <T> java.util.List<T> dynamicQuery( 162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 163 int end, 164 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 165 return _emailAddressLocalService.dynamicQuery(dynamicQuery, start, end, 166 orderByComparator); 167 } 168 169 /** 170 * Returns the number of rows matching the dynamic query. 171 * 172 * @param dynamicQuery the dynamic query 173 * @return the number of rows matching the dynamic query 174 */ 175 @Override 176 public long dynamicQueryCount( 177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 178 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery); 179 } 180 181 /** 182 * Returns the number of rows matching the dynamic query. 183 * 184 * @param dynamicQuery the dynamic query 185 * @param projection the projection to apply to the query 186 * @return the number of rows matching the dynamic query 187 */ 188 @Override 189 public long dynamicQueryCount( 190 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 191 com.liferay.portal.kernel.dao.orm.Projection projection) { 192 return _emailAddressLocalService.dynamicQueryCount(dynamicQuery, 193 projection); 194 } 195 196 @Override 197 public com.liferay.portal.model.EmailAddress fetchEmailAddress( 198 long emailAddressId) { 199 return _emailAddressLocalService.fetchEmailAddress(emailAddressId); 200 } 201 202 /** 203 * Returns the email address with the matching UUID and company. 204 * 205 * @param uuid the email address's UUID 206 * @param companyId the primary key of the company 207 * @return the matching email address, or <code>null</code> if a matching email address could not be found 208 */ 209 @Override 210 public com.liferay.portal.model.EmailAddress fetchEmailAddressByUuidAndCompanyId( 211 java.lang.String uuid, long companyId) { 212 return _emailAddressLocalService.fetchEmailAddressByUuidAndCompanyId(uuid, 213 companyId); 214 } 215 216 @Override 217 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 218 return _emailAddressLocalService.getActionableDynamicQuery(); 219 } 220 221 /** 222 * Returns the email address with the primary key. 223 * 224 * @param emailAddressId the primary key of the email address 225 * @return the email address 226 * @throws PortalException if a email address with the primary key could not be found 227 */ 228 @Override 229 public com.liferay.portal.model.EmailAddress getEmailAddress( 230 long emailAddressId) 231 throws com.liferay.portal.kernel.exception.PortalException { 232 return _emailAddressLocalService.getEmailAddress(emailAddressId); 233 } 234 235 /** 236 * Returns the email address with the matching UUID and company. 237 * 238 * @param uuid the email address's UUID 239 * @param companyId the primary key of the company 240 * @return the matching email address 241 * @throws PortalException if a matching email address could not be found 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 return _emailAddressLocalService.getEmailAddressByUuidAndCompanyId(uuid, 248 companyId); 249 } 250 251 @Override 252 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses() { 253 return _emailAddressLocalService.getEmailAddresses(); 254 } 255 256 @Override 257 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 258 long companyId, java.lang.String className, long classPK) { 259 return _emailAddressLocalService.getEmailAddresses(companyId, 260 className, classPK); 261 } 262 263 /** 264 * Returns a range of all the email addresses. 265 * 266 * <p> 267 * 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. 268 * </p> 269 * 270 * @param start the lower bound of the range of email addresses 271 * @param end the upper bound of the range of email addresses (not inclusive) 272 * @return the range of email addresses 273 */ 274 @Override 275 public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses( 276 int start, int end) { 277 return _emailAddressLocalService.getEmailAddresses(start, end); 278 } 279 280 /** 281 * Returns the number of email addresses. 282 * 283 * @return the number of email addresses 284 */ 285 @Override 286 public int getEmailAddressesCount() { 287 return _emailAddressLocalService.getEmailAddressesCount(); 288 } 289 290 @Override 291 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery( 292 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) { 293 return _emailAddressLocalService.getExportActionableDynamicQuery(portletDataContext); 294 } 295 296 @Override 297 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 298 return _emailAddressLocalService.getIndexableActionableDynamicQuery(); 299 } 300 301 /** 302 * Returns the OSGi service identifier. 303 * 304 * @return the OSGi service identifier 305 */ 306 @Override 307 public java.lang.String getOSGiServiceIdentifier() { 308 return _emailAddressLocalService.getOSGiServiceIdentifier(); 309 } 310 311 @Override 312 public com.liferay.portal.model.PersistedModel getPersistedModel( 313 java.io.Serializable primaryKeyObj) 314 throws com.liferay.portal.kernel.exception.PortalException { 315 return _emailAddressLocalService.getPersistedModel(primaryKeyObj); 316 } 317 318 /** 319 * Updates the email address in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 320 * 321 * @param emailAddress the email address 322 * @return the email address that was updated 323 */ 324 @Override 325 public com.liferay.portal.model.EmailAddress updateEmailAddress( 326 com.liferay.portal.model.EmailAddress emailAddress) { 327 return _emailAddressLocalService.updateEmailAddress(emailAddress); 328 } 329 330 @Override 331 public com.liferay.portal.model.EmailAddress updateEmailAddress( 332 long emailAddressId, java.lang.String address, long typeId, 333 boolean primary) 334 throws com.liferay.portal.kernel.exception.PortalException { 335 return _emailAddressLocalService.updateEmailAddress(emailAddressId, 336 address, typeId, primary); 337 } 338 339 @Override 340 public EmailAddressLocalService getWrappedService() { 341 return _emailAddressLocalService; 342 } 343 344 @Override 345 public void setWrappedService( 346 EmailAddressLocalService emailAddressLocalService) { 347 _emailAddressLocalService = emailAddressLocalService; 348 } 349 350 private EmailAddressLocalService _emailAddressLocalService; 351 }