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 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 */ 041 @Override 042 public com.liferay.portal.model.PluginSetting addPluginSetting( 043 com.liferay.portal.model.PluginSetting pluginSetting) { 044 return _pluginSettingLocalService.addPluginSetting(pluginSetting); 045 } 046 047 @Override 048 public void checkPermission(long userId, java.lang.String pluginId, 049 java.lang.String pluginType) 050 throws com.liferay.portal.kernel.exception.PortalException { 051 _pluginSettingLocalService.checkPermission(userId, pluginId, pluginType); 052 } 053 054 /** 055 * Creates a new plugin setting with the primary key. Does not add the plugin setting to the database. 056 * 057 * @param pluginSettingId the primary key for the new plugin setting 058 * @return the new plugin setting 059 */ 060 @Override 061 public com.liferay.portal.model.PluginSetting createPluginSetting( 062 long pluginSettingId) { 063 return _pluginSettingLocalService.createPluginSetting(pluginSettingId); 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 _pluginSettingLocalService.deletePersistedModel(persistedModel); 074 } 075 076 /** 077 * Deletes the plugin setting from the database. Also notifies the appropriate model listeners. 078 * 079 * @param pluginSetting the plugin setting 080 * @return the plugin setting that was removed 081 */ 082 @Override 083 public com.liferay.portal.model.PluginSetting deletePluginSetting( 084 com.liferay.portal.model.PluginSetting pluginSetting) { 085 return _pluginSettingLocalService.deletePluginSetting(pluginSetting); 086 } 087 088 /** 089 * Deletes the plugin setting with the primary key from the database. Also notifies the appropriate model listeners. 090 * 091 * @param pluginSettingId the primary key of the plugin setting 092 * @return the plugin setting that was removed 093 * @throws PortalException if a plugin setting with the primary key could not be found 094 */ 095 @Override 096 public com.liferay.portal.model.PluginSetting deletePluginSetting( 097 long pluginSettingId) 098 throws com.liferay.portal.kernel.exception.PortalException { 099 return _pluginSettingLocalService.deletePluginSetting(pluginSettingId); 100 } 101 102 @Override 103 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 104 return _pluginSettingLocalService.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 _pluginSettingLocalService.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.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. 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 _pluginSettingLocalService.dynamicQuery(dynamicQuery, start, end); 136 } 137 138 /** 139 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 140 * 141 * <p> 142 * 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. 143 * </p> 144 * 145 * @param dynamicQuery the dynamic query 146 * @param start the lower bound of the range of model instances 147 * @param end the upper bound of the range of model instances (not inclusive) 148 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 149 * @return the ordered range of matching rows 150 */ 151 @Override 152 public <T> java.util.List<T> dynamicQuery( 153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 154 int end, 155 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) { 156 return _pluginSettingLocalService.dynamicQuery(dynamicQuery, start, 157 end, orderByComparator); 158 } 159 160 /** 161 * Returns the number of rows matching the dynamic query. 162 * 163 * @param dynamicQuery the dynamic query 164 * @return the number of rows matching the dynamic query 165 */ 166 @Override 167 public long dynamicQueryCount( 168 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 169 return _pluginSettingLocalService.dynamicQueryCount(dynamicQuery); 170 } 171 172 /** 173 * Returns the number of rows matching the dynamic query. 174 * 175 * @param dynamicQuery the dynamic query 176 * @param projection the projection to apply to the query 177 * @return the number of rows matching the dynamic query 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 return _pluginSettingLocalService.dynamicQueryCount(dynamicQuery, 184 projection); 185 } 186 187 @Override 188 public com.liferay.portal.model.PluginSetting fetchPluginSetting( 189 long pluginSettingId) { 190 return _pluginSettingLocalService.fetchPluginSetting(pluginSettingId); 191 } 192 193 @Override 194 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 195 return _pluginSettingLocalService.getActionableDynamicQuery(); 196 } 197 198 @Override 199 public com.liferay.portal.model.PluginSetting getDefaultPluginSetting() { 200 return _pluginSettingLocalService.getDefaultPluginSetting(); 201 } 202 203 /** 204 * Returns the OSGi service identifier. 205 * 206 * @return the OSGi service identifier 207 */ 208 @Override 209 public java.lang.String getOSGiServiceIdentifier() { 210 return _pluginSettingLocalService.getOSGiServiceIdentifier(); 211 } 212 213 @Override 214 public com.liferay.portal.model.PersistedModel getPersistedModel( 215 java.io.Serializable primaryKeyObj) 216 throws com.liferay.portal.kernel.exception.PortalException { 217 return _pluginSettingLocalService.getPersistedModel(primaryKeyObj); 218 } 219 220 @Override 221 public com.liferay.portal.model.PluginSetting getPluginSetting( 222 long companyId, java.lang.String pluginId, java.lang.String pluginType) { 223 return _pluginSettingLocalService.getPluginSetting(companyId, pluginId, 224 pluginType); 225 } 226 227 /** 228 * Returns the plugin setting with the primary key. 229 * 230 * @param pluginSettingId the primary key of the plugin setting 231 * @return the plugin setting 232 * @throws PortalException if a plugin setting with the primary key could not be found 233 */ 234 @Override 235 public com.liferay.portal.model.PluginSetting getPluginSetting( 236 long pluginSettingId) 237 throws com.liferay.portal.kernel.exception.PortalException { 238 return _pluginSettingLocalService.getPluginSetting(pluginSettingId); 239 } 240 241 /** 242 * Returns a range of all the plugin settings. 243 * 244 * <p> 245 * 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. 246 * </p> 247 * 248 * @param start the lower bound of the range of plugin settings 249 * @param end the upper bound of the range of plugin settings (not inclusive) 250 * @return the range of plugin settings 251 */ 252 @Override 253 public java.util.List<com.liferay.portal.model.PluginSetting> getPluginSettings( 254 int start, int end) { 255 return _pluginSettingLocalService.getPluginSettings(start, end); 256 } 257 258 /** 259 * Returns the number of plugin settings. 260 * 261 * @return the number of plugin settings 262 */ 263 @Override 264 public int getPluginSettingsCount() { 265 return _pluginSettingLocalService.getPluginSettingsCount(); 266 } 267 268 @Override 269 public boolean hasPermission(long userId, java.lang.String pluginId, 270 java.lang.String pluginType) { 271 return _pluginSettingLocalService.hasPermission(userId, pluginId, 272 pluginType); 273 } 274 275 @Override 276 public com.liferay.portal.model.PluginSetting updatePluginSetting( 277 long companyId, java.lang.String pluginId, java.lang.String pluginType, 278 java.lang.String roles, boolean active) { 279 return _pluginSettingLocalService.updatePluginSetting(companyId, 280 pluginId, pluginType, roles, active); 281 } 282 283 /** 284 * Updates the plugin setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 285 * 286 * @param pluginSetting the plugin setting 287 * @return the plugin setting that was updated 288 */ 289 @Override 290 public com.liferay.portal.model.PluginSetting updatePluginSetting( 291 com.liferay.portal.model.PluginSetting pluginSetting) { 292 return _pluginSettingLocalService.updatePluginSetting(pluginSetting); 293 } 294 295 /** 296 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 297 */ 298 @Deprecated 299 public PluginSettingLocalService getWrappedPluginSettingLocalService() { 300 return _pluginSettingLocalService; 301 } 302 303 /** 304 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 305 */ 306 @Deprecated 307 public void setWrappedPluginSettingLocalService( 308 PluginSettingLocalService pluginSettingLocalService) { 309 _pluginSettingLocalService = pluginSettingLocalService; 310 } 311 312 @Override 313 public PluginSettingLocalService getWrappedService() { 314 return _pluginSettingLocalService; 315 } 316 317 @Override 318 public void setWrappedService( 319 PluginSettingLocalService pluginSettingLocalService) { 320 _pluginSettingLocalService = pluginSettingLocalService; 321 } 322 323 private PluginSettingLocalService _pluginSettingLocalService; 324 }