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