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 PortletItemLocalService}. 021 * 022 * @author Brian Wing Shun Chan 023 * @see PortletItemLocalService 024 * @generated 025 */ 026 @ProviderType 027 public class PortletItemLocalServiceWrapper implements PortletItemLocalService, 028 ServiceWrapper<PortletItemLocalService> { 029 public PortletItemLocalServiceWrapper( 030 PortletItemLocalService portletItemLocalService) { 031 _portletItemLocalService = portletItemLocalService; 032 } 033 034 /** 035 * Adds the portlet item to the database. Also notifies the appropriate model listeners. 036 * 037 * @param portletItem the portlet item 038 * @return the portlet item that was added 039 */ 040 @Override 041 public com.liferay.portal.model.PortletItem addPortletItem( 042 com.liferay.portal.model.PortletItem portletItem) { 043 return _portletItemLocalService.addPortletItem(portletItem); 044 } 045 046 @Override 047 public com.liferay.portal.model.PortletItem addPortletItem(long userId, 048 long groupId, java.lang.String name, java.lang.String portletId, 049 java.lang.String className) 050 throws com.liferay.portal.kernel.exception.PortalException { 051 return _portletItemLocalService.addPortletItem(userId, groupId, name, 052 portletId, className); 053 } 054 055 /** 056 * Creates a new portlet item with the primary key. Does not add the portlet item to the database. 057 * 058 * @param portletItemId the primary key for the new portlet item 059 * @return the new portlet item 060 */ 061 @Override 062 public com.liferay.portal.model.PortletItem createPortletItem( 063 long portletItemId) { 064 return _portletItemLocalService.createPortletItem(portletItemId); 065 } 066 067 /** 068 * @throws PortalException 069 */ 070 @Override 071 public com.liferay.portal.model.PersistedModel deletePersistedModel( 072 com.liferay.portal.model.PersistedModel persistedModel) 073 throws com.liferay.portal.kernel.exception.PortalException { 074 return _portletItemLocalService.deletePersistedModel(persistedModel); 075 } 076 077 /** 078 * Deletes the portlet item from the database. Also notifies the appropriate model listeners. 079 * 080 * @param portletItem the portlet item 081 * @return the portlet item that was removed 082 */ 083 @Override 084 public com.liferay.portal.model.PortletItem deletePortletItem( 085 com.liferay.portal.model.PortletItem portletItem) { 086 return _portletItemLocalService.deletePortletItem(portletItem); 087 } 088 089 /** 090 * Deletes the portlet item with the primary key from the database. Also notifies the appropriate model listeners. 091 * 092 * @param portletItemId the primary key of the portlet item 093 * @return the portlet item that was removed 094 * @throws PortalException if a portlet item with the primary key could not be found 095 */ 096 @Override 097 public com.liferay.portal.model.PortletItem deletePortletItem( 098 long portletItemId) 099 throws com.liferay.portal.kernel.exception.PortalException { 100 return _portletItemLocalService.deletePortletItem(portletItemId); 101 } 102 103 @Override 104 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 105 return _portletItemLocalService.dynamicQuery(); 106 } 107 108 /** 109 * Performs a dynamic query on the database and returns the matching rows. 110 * 111 * @param dynamicQuery the dynamic query 112 * @return the matching rows 113 */ 114 @Override 115 public <T> java.util.List<T> dynamicQuery( 116 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { 117 return _portletItemLocalService.dynamicQuery(dynamicQuery); 118 } 119 120 /** 121 * Performs a dynamic query on the database and returns a range of the matching rows. 122 * 123 * <p> 124 * 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.PortletItemModelImpl}. 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. 125 * </p> 126 * 127 * @param dynamicQuery the dynamic query 128 * @param start the lower bound of the range of model instances 129 * @param end the upper bound of the range of model instances (not inclusive) 130 * @return the range of matching rows 131 */ 132 @Override 133 public <T> java.util.List<T> dynamicQuery( 134 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 135 int end) { 136 return _portletItemLocalService.dynamicQuery(dynamicQuery, start, 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.PortletItemModelImpl}. 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 _portletItemLocalService.dynamicQuery(dynamicQuery, start, end, 158 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 _portletItemLocalService.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 _portletItemLocalService.dynamicQueryCount(dynamicQuery, 185 projection); 186 } 187 188 @Override 189 public com.liferay.portal.model.PortletItem fetchPortletItem( 190 long portletItemId) { 191 return _portletItemLocalService.fetchPortletItem(portletItemId); 192 } 193 194 @Override 195 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() { 196 return _portletItemLocalService.getActionableDynamicQuery(); 197 } 198 199 /** 200 * Returns the Spring bean ID for this bean. 201 * 202 * @return the Spring bean ID for this bean 203 */ 204 @Override 205 public java.lang.String getBeanIdentifier() { 206 return _portletItemLocalService.getBeanIdentifier(); 207 } 208 209 @Override 210 public com.liferay.portal.model.PersistedModel getPersistedModel( 211 java.io.Serializable primaryKeyObj) 212 throws com.liferay.portal.kernel.exception.PortalException { 213 return _portletItemLocalService.getPersistedModel(primaryKeyObj); 214 } 215 216 @Override 217 public com.liferay.portal.model.PortletItem getPortletItem(long groupId, 218 java.lang.String name, java.lang.String portletId, 219 java.lang.String className) 220 throws com.liferay.portal.kernel.exception.PortalException { 221 return _portletItemLocalService.getPortletItem(groupId, name, 222 portletId, className); 223 } 224 225 /** 226 * Returns the portlet item with the primary key. 227 * 228 * @param portletItemId the primary key of the portlet item 229 * @return the portlet item 230 * @throws PortalException if a portlet item with the primary key could not be found 231 */ 232 @Override 233 public com.liferay.portal.model.PortletItem getPortletItem( 234 long portletItemId) 235 throws com.liferay.portal.kernel.exception.PortalException { 236 return _portletItemLocalService.getPortletItem(portletItemId); 237 } 238 239 @Override 240 public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems( 241 long groupId, java.lang.String className) { 242 return _portletItemLocalService.getPortletItems(groupId, className); 243 } 244 245 @Override 246 public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems( 247 long groupId, java.lang.String portletId, java.lang.String className) { 248 return _portletItemLocalService.getPortletItems(groupId, portletId, 249 className); 250 } 251 252 /** 253 * Returns a range of all the portlet items. 254 * 255 * <p> 256 * 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.PortletItemModelImpl}. 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. 257 * </p> 258 * 259 * @param start the lower bound of the range of portlet items 260 * @param end the upper bound of the range of portlet items (not inclusive) 261 * @return the range of portlet items 262 */ 263 @Override 264 public java.util.List<com.liferay.portal.model.PortletItem> getPortletItems( 265 int start, int end) { 266 return _portletItemLocalService.getPortletItems(start, end); 267 } 268 269 /** 270 * Returns the number of portlet items. 271 * 272 * @return the number of portlet items 273 */ 274 @Override 275 public int getPortletItemsCount() { 276 return _portletItemLocalService.getPortletItemsCount(); 277 } 278 279 /** 280 * Sets the Spring bean ID for this bean. 281 * 282 * @param beanIdentifier the Spring bean ID for this bean 283 */ 284 @Override 285 public void setBeanIdentifier(java.lang.String beanIdentifier) { 286 _portletItemLocalService.setBeanIdentifier(beanIdentifier); 287 } 288 289 /** 290 * Updates the portlet item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 291 * 292 * @param portletItem the portlet item 293 * @return the portlet item that was updated 294 */ 295 @Override 296 public com.liferay.portal.model.PortletItem updatePortletItem( 297 com.liferay.portal.model.PortletItem portletItem) { 298 return _portletItemLocalService.updatePortletItem(portletItem); 299 } 300 301 @Override 302 public com.liferay.portal.model.PortletItem updatePortletItem(long userId, 303 long groupId, java.lang.String name, java.lang.String portletId, 304 java.lang.String className) 305 throws com.liferay.portal.kernel.exception.PortalException { 306 return _portletItemLocalService.updatePortletItem(userId, groupId, 307 name, portletId, className); 308 } 309 310 /** 311 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 312 */ 313 @Deprecated 314 public PortletItemLocalService getWrappedPortletItemLocalService() { 315 return _portletItemLocalService; 316 } 317 318 /** 319 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 320 */ 321 @Deprecated 322 public void setWrappedPortletItemLocalService( 323 PortletItemLocalService portletItemLocalService) { 324 _portletItemLocalService = portletItemLocalService; 325 } 326 327 @Override 328 public PortletItemLocalService getWrappedService() { 329 return _portletItemLocalService; 330 } 331 332 @Override 333 public void setWrappedService( 334 PortletItemLocalService portletItemLocalService) { 335 _portletItemLocalService = portletItemLocalService; 336 } 337 338 private PortletItemLocalService _portletItemLocalService; 339 }