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