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