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 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 * Adds the website to the database. Also notifies the appropriate model listeners. 035 * 036 * @param website the website 037 * @return the website that was added 038 * @throws SystemException if a system exception occurred 039 */ 040 @Override 041 public com.liferay.portal.model.Website addWebsite( 042 com.liferay.portal.model.Website website) 043 throws com.liferay.portal.kernel.exception.SystemException { 044 return _websiteLocalService.addWebsite(website); 045 } 046 047 /** 048 * Creates a new website with the primary key. Does not add the website to the database. 049 * 050 * @param websiteId the primary key for the new website 051 * @return the new website 052 */ 053 @Override 054 public com.liferay.portal.model.Website createWebsite(long websiteId) { 055 return _websiteLocalService.createWebsite(websiteId); 056 } 057 058 /** 059 * Deletes the website with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param websiteId the primary key of the website 062 * @return the website that was removed 063 * @throws PortalException if a website with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 @Override 067 public com.liferay.portal.model.Website deleteWebsite(long websiteId) 068 throws com.liferay.portal.kernel.exception.PortalException, 069 com.liferay.portal.kernel.exception.SystemException { 070 return _websiteLocalService.deleteWebsite(websiteId); 071 } 072 073 /** 074 * Deletes the website from the database. Also notifies the appropriate model listeners. 075 * 076 * @param website the website 077 * @return the website that was removed 078 * @throws SystemException if a system exception occurred 079 */ 080 @Override 081 public com.liferay.portal.model.Website deleteWebsite( 082 com.liferay.portal.model.Website website) 083 throws com.liferay.portal.kernel.exception.SystemException { 084 return _websiteLocalService.deleteWebsite(website); 085 } 086 087 @Override 088 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 089 return _websiteLocalService.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 _websiteLocalService.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.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. 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 _websiteLocalService.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.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. 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 _websiteLocalService.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 _websiteLocalService.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 _websiteLocalService.dynamicQueryCount(dynamicQuery, projection); 181 } 182 183 @Override 184 public com.liferay.portal.model.Website fetchWebsite(long websiteId) 185 throws com.liferay.portal.kernel.exception.SystemException { 186 return _websiteLocalService.fetchWebsite(websiteId); 187 } 188 189 /** 190 * Returns the website with the matching UUID and company. 191 * 192 * @param uuid the website's UUID 193 * @param companyId the primary key of the company 194 * @return the matching website, or <code>null</code> if a matching website could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 @Override 198 public com.liferay.portal.model.Website fetchWebsiteByUuidAndCompanyId( 199 java.lang.String uuid, long companyId) 200 throws com.liferay.portal.kernel.exception.SystemException { 201 return _websiteLocalService.fetchWebsiteByUuidAndCompanyId(uuid, 202 companyId); 203 } 204 205 /** 206 * Returns the website with the primary key. 207 * 208 * @param websiteId the primary key of the website 209 * @return the website 210 * @throws PortalException if a website with the primary key could not be found 211 * @throws SystemException if a system exception occurred 212 */ 213 @Override 214 public com.liferay.portal.model.Website getWebsite(long websiteId) 215 throws com.liferay.portal.kernel.exception.PortalException, 216 com.liferay.portal.kernel.exception.SystemException { 217 return _websiteLocalService.getWebsite(websiteId); 218 } 219 220 @Override 221 public com.liferay.portal.model.PersistedModel getPersistedModel( 222 java.io.Serializable primaryKeyObj) 223 throws com.liferay.portal.kernel.exception.PortalException, 224 com.liferay.portal.kernel.exception.SystemException { 225 return _websiteLocalService.getPersistedModel(primaryKeyObj); 226 } 227 228 /** 229 * Returns the website with the matching UUID and company. 230 * 231 * @param uuid the website's UUID 232 * @param companyId the primary key of the company 233 * @return the matching website 234 * @throws PortalException if a matching website could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 @Override 238 public com.liferay.portal.model.Website getWebsiteByUuidAndCompanyId( 239 java.lang.String uuid, long companyId) 240 throws com.liferay.portal.kernel.exception.PortalException, 241 com.liferay.portal.kernel.exception.SystemException { 242 return _websiteLocalService.getWebsiteByUuidAndCompanyId(uuid, companyId); 243 } 244 245 /** 246 * Returns a range of all the websites. 247 * 248 * <p> 249 * 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. 250 * </p> 251 * 252 * @param start the lower bound of the range of websites 253 * @param end the upper bound of the range of websites (not inclusive) 254 * @return the range of websites 255 * @throws SystemException if a system exception occurred 256 */ 257 @Override 258 public java.util.List<com.liferay.portal.model.Website> getWebsites( 259 int start, int end) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 return _websiteLocalService.getWebsites(start, end); 262 } 263 264 /** 265 * Returns the number of websites. 266 * 267 * @return the number of websites 268 * @throws SystemException if a system exception occurred 269 */ 270 @Override 271 public int getWebsitesCount() 272 throws com.liferay.portal.kernel.exception.SystemException { 273 return _websiteLocalService.getWebsitesCount(); 274 } 275 276 /** 277 * Updates the website in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 278 * 279 * @param website the website 280 * @return the website that was updated 281 * @throws SystemException if a system exception occurred 282 */ 283 @Override 284 public com.liferay.portal.model.Website updateWebsite( 285 com.liferay.portal.model.Website website) 286 throws com.liferay.portal.kernel.exception.SystemException { 287 return _websiteLocalService.updateWebsite(website); 288 } 289 290 /** 291 * Returns the Spring bean ID for this bean. 292 * 293 * @return the Spring bean ID for this bean 294 */ 295 @Override 296 public java.lang.String getBeanIdentifier() { 297 return _websiteLocalService.getBeanIdentifier(); 298 } 299 300 /** 301 * Sets the Spring bean ID for this bean. 302 * 303 * @param beanIdentifier the Spring bean ID for this bean 304 */ 305 @Override 306 public void setBeanIdentifier(java.lang.String beanIdentifier) { 307 _websiteLocalService.setBeanIdentifier(beanIdentifier); 308 } 309 310 /** 311 * @deprecated As of 6.2.0, replaced by {@link #addWebsite(long, String, 312 long, String, int, boolean, ServiceContext)} 313 */ 314 @Override 315 public com.liferay.portal.model.Website addWebsite(long userId, 316 java.lang.String className, long classPK, java.lang.String url, 317 int typeId, boolean primary) 318 throws com.liferay.portal.kernel.exception.PortalException, 319 com.liferay.portal.kernel.exception.SystemException { 320 return _websiteLocalService.addWebsite(userId, className, classPK, url, 321 typeId, primary); 322 } 323 324 @Override 325 public com.liferay.portal.model.Website addWebsite(long userId, 326 java.lang.String className, long classPK, java.lang.String url, 327 int typeId, boolean primary, 328 com.liferay.portal.service.ServiceContext serviceContext) 329 throws com.liferay.portal.kernel.exception.PortalException, 330 com.liferay.portal.kernel.exception.SystemException { 331 return _websiteLocalService.addWebsite(userId, className, classPK, url, 332 typeId, primary, serviceContext); 333 } 334 335 @Override 336 public void deleteWebsites(long companyId, java.lang.String className, 337 long classPK) 338 throws com.liferay.portal.kernel.exception.SystemException { 339 _websiteLocalService.deleteWebsites(companyId, className, classPK); 340 } 341 342 @Override 343 public java.util.List<com.liferay.portal.model.Website> getWebsites() 344 throws com.liferay.portal.kernel.exception.SystemException { 345 return _websiteLocalService.getWebsites(); 346 } 347 348 @Override 349 public java.util.List<com.liferay.portal.model.Website> getWebsites( 350 long companyId, java.lang.String className, long classPK) 351 throws com.liferay.portal.kernel.exception.SystemException { 352 return _websiteLocalService.getWebsites(companyId, className, classPK); 353 } 354 355 @Override 356 public com.liferay.portal.model.Website updateWebsite(long websiteId, 357 java.lang.String url, int typeId, boolean primary) 358 throws com.liferay.portal.kernel.exception.PortalException, 359 com.liferay.portal.kernel.exception.SystemException { 360 return _websiteLocalService.updateWebsite(websiteId, url, typeId, 361 primary); 362 } 363 364 /** 365 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 366 */ 367 public WebsiteLocalService getWrappedWebsiteLocalService() { 368 return _websiteLocalService; 369 } 370 371 /** 372 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 373 */ 374 public void setWrappedWebsiteLocalService( 375 WebsiteLocalService websiteLocalService) { 376 _websiteLocalService = websiteLocalService; 377 } 378 379 @Override 380 public WebsiteLocalService getWrappedService() { 381 return _websiteLocalService; 382 } 383 384 @Override 385 public void setWrappedService(WebsiteLocalService websiteLocalService) { 386 _websiteLocalService = websiteLocalService; 387 } 388 389 private WebsiteLocalService _websiteLocalService; 390 }