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