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