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 @Override 204 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 205 return _pluginSettingLocalService.getIndexableActionableDynamicQuery(); 206 } 207 208 /** 209 * Returns the OSGi service identifier. 210 * 211 * @return the OSGi service identifier 212 */ 213 @Override 214 public java.lang.String getOSGiServiceIdentifier() { 215 return _pluginSettingLocalService.getOSGiServiceIdentifier(); 216 } 217 218 @Override 219 public com.liferay.portal.model.PersistedModel getPersistedModel( 220 java.io.Serializable primaryKeyObj) 221 throws com.liferay.portal.kernel.exception.PortalException { 222 return _pluginSettingLocalService.getPersistedModel(primaryKeyObj); 223 } 224 225 @Override 226 public com.liferay.portal.model.PluginSetting getPluginSetting( 227 long companyId, java.lang.String pluginId, java.lang.String pluginType) { 228 return _pluginSettingLocalService.getPluginSetting(companyId, pluginId, 229 pluginType); 230 } 231 232 /** 233 * Returns the plugin setting with the primary key. 234 * 235 * @param pluginSettingId the primary key of the plugin setting 236 * @return the plugin setting 237 * @throws PortalException if a plugin setting with the primary key could not be found 238 */ 239 @Override 240 public com.liferay.portal.model.PluginSetting getPluginSetting( 241 long pluginSettingId) 242 throws com.liferay.portal.kernel.exception.PortalException { 243 return _pluginSettingLocalService.getPluginSetting(pluginSettingId); 244 } 245 246 /** 247 * Returns a range of all the plugin settings. 248 * 249 * <p> 250 * 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. 251 * </p> 252 * 253 * @param start the lower bound of the range of plugin settings 254 * @param end the upper bound of the range of plugin settings (not inclusive) 255 * @return the range of plugin settings 256 */ 257 @Override 258 public java.util.List<com.liferay.portal.model.PluginSetting> getPluginSettings( 259 int start, int end) { 260 return _pluginSettingLocalService.getPluginSettings(start, end); 261 } 262 263 /** 264 * Returns the number of plugin settings. 265 * 266 * @return the number of plugin settings 267 */ 268 @Override 269 public int getPluginSettingsCount() { 270 return _pluginSettingLocalService.getPluginSettingsCount(); 271 } 272 273 @Override 274 public boolean hasPermission(long userId, java.lang.String pluginId, 275 java.lang.String pluginType) { 276 return _pluginSettingLocalService.hasPermission(userId, pluginId, 277 pluginType); 278 } 279 280 @Override 281 public com.liferay.portal.model.PluginSetting updatePluginSetting( 282 long companyId, java.lang.String pluginId, java.lang.String pluginType, 283 java.lang.String roles, boolean active) { 284 return _pluginSettingLocalService.updatePluginSetting(companyId, 285 pluginId, pluginType, roles, active); 286 } 287 288 /** 289 * Updates the plugin setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 290 * 291 * @param pluginSetting the plugin setting 292 * @return the plugin setting that was updated 293 */ 294 @Override 295 public com.liferay.portal.model.PluginSetting updatePluginSetting( 296 com.liferay.portal.model.PluginSetting pluginSetting) { 297 return _pluginSettingLocalService.updatePluginSetting(pluginSetting); 298 } 299 300 @Override 301 public PluginSettingLocalService getWrappedService() { 302 return _pluginSettingLocalService; 303 } 304 305 @Override 306 public void setWrappedService( 307 PluginSettingLocalService pluginSettingLocalService) { 308 _pluginSettingLocalService = pluginSettingLocalService; 309 } 310 311 private PluginSettingLocalService _pluginSettingLocalService; 312 }