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