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