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