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