001 /** 002 * Copyright (c) 2000-2012 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 /** 018 * <p> 019 * This class is a wrapper for {@link WebsiteLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see WebsiteLocalService 024 * @generated 025 */ 026 public class WebsiteLocalServiceWrapper implements WebsiteLocalService, 027 ServiceWrapper<WebsiteLocalService> { 028 public WebsiteLocalServiceWrapper(WebsiteLocalService websiteLocalService) { 029 _websiteLocalService = websiteLocalService; 030 } 031 032 /** 033 * Adds the website to the database. Also notifies the appropriate model listeners. 034 * 035 * @param website the website 036 * @return the website that was added 037 * @throws SystemException if a system exception occurred 038 */ 039 public com.liferay.portal.model.Website addWebsite( 040 com.liferay.portal.model.Website website) 041 throws com.liferay.portal.kernel.exception.SystemException { 042 return _websiteLocalService.addWebsite(website); 043 } 044 045 /** 046 * Creates a new website with the primary key. Does not add the website to the database. 047 * 048 * @param websiteId the primary key for the new website 049 * @return the new website 050 */ 051 public com.liferay.portal.model.Website createWebsite(long websiteId) { 052 return _websiteLocalService.createWebsite(websiteId); 053 } 054 055 /** 056 * Deletes the website with the primary key from the database. Also notifies the appropriate model listeners. 057 * 058 * @param websiteId the primary key of the website 059 * @throws PortalException if a website with the primary key could not be found 060 * @throws SystemException if a system exception occurred 061 */ 062 public void deleteWebsite(long websiteId) 063 throws com.liferay.portal.kernel.exception.PortalException, 064 com.liferay.portal.kernel.exception.SystemException { 065 _websiteLocalService.deleteWebsite(websiteId); 066 } 067 068 /** 069 * Deletes the website from the database. Also notifies the appropriate model listeners. 070 * 071 * @param website the website 072 * @throws SystemException if a system exception occurred 073 */ 074 public void deleteWebsite(com.liferay.portal.model.Website website) 075 throws com.liferay.portal.kernel.exception.SystemException { 076 _websiteLocalService.deleteWebsite(website); 077 } 078 079 /** 080 * Performs a dynamic query on the database and returns the matching rows. 081 * 082 * @param dynamicQuery the dynamic query 083 * @return the matching rows 084 * @throws SystemException if a system exception occurred 085 */ 086 @SuppressWarnings("rawtypes") 087 public java.util.List dynamicQuery( 088 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 089 throws com.liferay.portal.kernel.exception.SystemException { 090 return _websiteLocalService.dynamicQuery(dynamicQuery); 091 } 092 093 /** 094 * Performs a dynamic query on the database and returns a range of the matching rows. 095 * 096 * <p> 097 * 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. 098 * </p> 099 * 100 * @param dynamicQuery the dynamic query 101 * @param start the lower bound of the range of model instances 102 * @param end the upper bound of the range of model instances (not inclusive) 103 * @return the range of matching rows 104 * @throws SystemException if a system exception occurred 105 */ 106 @SuppressWarnings("rawtypes") 107 public java.util.List dynamicQuery( 108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 109 int end) throws com.liferay.portal.kernel.exception.SystemException { 110 return _websiteLocalService.dynamicQuery(dynamicQuery, start, end); 111 } 112 113 /** 114 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 115 * 116 * <p> 117 * 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. 118 * </p> 119 * 120 * @param dynamicQuery the dynamic query 121 * @param start the lower bound of the range of model instances 122 * @param end the upper bound of the range of model instances (not inclusive) 123 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 124 * @return the ordered range of matching rows 125 * @throws SystemException if a system exception occurred 126 */ 127 @SuppressWarnings("rawtypes") 128 public java.util.List dynamicQuery( 129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 130 int end, 131 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 132 throws com.liferay.portal.kernel.exception.SystemException { 133 return _websiteLocalService.dynamicQuery(dynamicQuery, start, end, 134 orderByComparator); 135 } 136 137 /** 138 * Returns the number of rows that match the dynamic query. 139 * 140 * @param dynamicQuery the dynamic query 141 * @return the number of rows that match the dynamic query 142 * @throws SystemException if a system exception occurred 143 */ 144 public long dynamicQueryCount( 145 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 146 throws com.liferay.portal.kernel.exception.SystemException { 147 return _websiteLocalService.dynamicQueryCount(dynamicQuery); 148 } 149 150 public com.liferay.portal.model.Website fetchWebsite(long websiteId) 151 throws com.liferay.portal.kernel.exception.SystemException { 152 return _websiteLocalService.fetchWebsite(websiteId); 153 } 154 155 /** 156 * Returns the website with the primary key. 157 * 158 * @param websiteId the primary key of the website 159 * @return the website 160 * @throws PortalException if a website with the primary key could not be found 161 * @throws SystemException if a system exception occurred 162 */ 163 public com.liferay.portal.model.Website getWebsite(long websiteId) 164 throws com.liferay.portal.kernel.exception.PortalException, 165 com.liferay.portal.kernel.exception.SystemException { 166 return _websiteLocalService.getWebsite(websiteId); 167 } 168 169 public com.liferay.portal.model.PersistedModel getPersistedModel( 170 java.io.Serializable primaryKeyObj) 171 throws com.liferay.portal.kernel.exception.PortalException, 172 com.liferay.portal.kernel.exception.SystemException { 173 return _websiteLocalService.getPersistedModel(primaryKeyObj); 174 } 175 176 /** 177 * Returns a range of all the websites. 178 * 179 * <p> 180 * 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. 181 * </p> 182 * 183 * @param start the lower bound of the range of websites 184 * @param end the upper bound of the range of websites (not inclusive) 185 * @return the range of websites 186 * @throws SystemException if a system exception occurred 187 */ 188 public java.util.List<com.liferay.portal.model.Website> getWebsites( 189 int start, int end) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return _websiteLocalService.getWebsites(start, end); 192 } 193 194 /** 195 * Returns the number of websites. 196 * 197 * @return the number of websites 198 * @throws SystemException if a system exception occurred 199 */ 200 public int getWebsitesCount() 201 throws com.liferay.portal.kernel.exception.SystemException { 202 return _websiteLocalService.getWebsitesCount(); 203 } 204 205 /** 206 * Updates the website in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 207 * 208 * @param website the website 209 * @return the website that was updated 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portal.model.Website updateWebsite( 213 com.liferay.portal.model.Website website) 214 throws com.liferay.portal.kernel.exception.SystemException { 215 return _websiteLocalService.updateWebsite(website); 216 } 217 218 /** 219 * Updates the website in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 220 * 221 * @param website the website 222 * @param merge whether to merge the website with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 223 * @return the website that was updated 224 * @throws SystemException if a system exception occurred 225 */ 226 public com.liferay.portal.model.Website updateWebsite( 227 com.liferay.portal.model.Website website, boolean merge) 228 throws com.liferay.portal.kernel.exception.SystemException { 229 return _websiteLocalService.updateWebsite(website, merge); 230 } 231 232 /** 233 * Returns the Spring bean ID for this bean. 234 * 235 * @return the Spring bean ID for this bean 236 */ 237 public java.lang.String getBeanIdentifier() { 238 return _websiteLocalService.getBeanIdentifier(); 239 } 240 241 /** 242 * Sets the Spring bean ID for this bean. 243 * 244 * @param beanIdentifier the Spring bean ID for this bean 245 */ 246 public void setBeanIdentifier(java.lang.String beanIdentifier) { 247 _websiteLocalService.setBeanIdentifier(beanIdentifier); 248 } 249 250 public com.liferay.portal.model.Website addWebsite(long userId, 251 java.lang.String className, long classPK, java.lang.String url, 252 int typeId, boolean primary) 253 throws com.liferay.portal.kernel.exception.PortalException, 254 com.liferay.portal.kernel.exception.SystemException { 255 return _websiteLocalService.addWebsite(userId, className, classPK, url, 256 typeId, primary); 257 } 258 259 public void deleteWebsites(long companyId, java.lang.String className, 260 long classPK) 261 throws com.liferay.portal.kernel.exception.SystemException { 262 _websiteLocalService.deleteWebsites(companyId, className, classPK); 263 } 264 265 public java.util.List<com.liferay.portal.model.Website> getWebsites() 266 throws com.liferay.portal.kernel.exception.SystemException { 267 return _websiteLocalService.getWebsites(); 268 } 269 270 public java.util.List<com.liferay.portal.model.Website> getWebsites( 271 long companyId, java.lang.String className, long classPK) 272 throws com.liferay.portal.kernel.exception.SystemException { 273 return _websiteLocalService.getWebsites(companyId, className, classPK); 274 } 275 276 public com.liferay.portal.model.Website updateWebsite(long websiteId, 277 java.lang.String url, int typeId, boolean primary) 278 throws com.liferay.portal.kernel.exception.PortalException, 279 com.liferay.portal.kernel.exception.SystemException { 280 return _websiteLocalService.updateWebsite(websiteId, url, typeId, 281 primary); 282 } 283 284 /** 285 * @deprecated Renamed to {@link #getWrappedService} 286 */ 287 public WebsiteLocalService getWrappedWebsiteLocalService() { 288 return _websiteLocalService; 289 } 290 291 /** 292 * @deprecated Renamed to {@link #setWrappedService} 293 */ 294 public void setWrappedWebsiteLocalService( 295 WebsiteLocalService websiteLocalService) { 296 _websiteLocalService = websiteLocalService; 297 } 298 299 public WebsiteLocalService getWrappedService() { 300 return _websiteLocalService; 301 } 302 303 public void setWrappedService(WebsiteLocalService websiteLocalService) { 304 _websiteLocalService = websiteLocalService; 305 } 306 307 private WebsiteLocalService _websiteLocalService; 308 }