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 @Override 223 public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() { 224 return _resourceActionLocalService.getIndexableActionableDynamicQuery(); 225 } 226 227 /** 228 * Returns the OSGi service identifier. 229 * 230 * @return the OSGi service identifier 231 */ 232 @Override 233 public java.lang.String getOSGiServiceIdentifier() { 234 return _resourceActionLocalService.getOSGiServiceIdentifier(); 235 } 236 237 @Override 238 public com.liferay.portal.model.PersistedModel getPersistedModel( 239 java.io.Serializable primaryKeyObj) 240 throws com.liferay.portal.kernel.exception.PortalException { 241 return _resourceActionLocalService.getPersistedModel(primaryKeyObj); 242 } 243 244 @Override 245 public com.liferay.portal.model.ResourceAction getResourceAction( 246 java.lang.String name, java.lang.String actionId) 247 throws com.liferay.portal.kernel.exception.PortalException { 248 return _resourceActionLocalService.getResourceAction(name, actionId); 249 } 250 251 /** 252 * Returns the resource action with the primary key. 253 * 254 * @param resourceActionId the primary key of the resource action 255 * @return the resource action 256 * @throws PortalException if a resource action with the primary key could not be found 257 */ 258 @Override 259 public com.liferay.portal.model.ResourceAction getResourceAction( 260 long resourceActionId) 261 throws com.liferay.portal.kernel.exception.PortalException { 262 return _resourceActionLocalService.getResourceAction(resourceActionId); 263 } 264 265 @Override 266 public java.util.List<com.liferay.portal.model.ResourceAction> getResourceActions( 267 java.lang.String name) { 268 return _resourceActionLocalService.getResourceActions(name); 269 } 270 271 /** 272 * Returns a range of all the resource actions. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param start the lower bound of the range of resource actions 279 * @param end the upper bound of the range of resource actions (not inclusive) 280 * @return the range of resource actions 281 */ 282 @Override 283 public java.util.List<com.liferay.portal.model.ResourceAction> getResourceActions( 284 int start, int end) { 285 return _resourceActionLocalService.getResourceActions(start, end); 286 } 287 288 /** 289 * Returns the number of resource actions. 290 * 291 * @return the number of resource actions 292 */ 293 @Override 294 public int getResourceActionsCount() { 295 return _resourceActionLocalService.getResourceActionsCount(); 296 } 297 298 @Override 299 public int getResourceActionsCount(java.lang.String name) { 300 return _resourceActionLocalService.getResourceActionsCount(name); 301 } 302 303 /** 304 * Updates the resource action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 305 * 306 * @param resourceAction the resource action 307 * @return the resource action that was updated 308 */ 309 @Override 310 public com.liferay.portal.model.ResourceAction updateResourceAction( 311 com.liferay.portal.model.ResourceAction resourceAction) { 312 return _resourceActionLocalService.updateResourceAction(resourceAction); 313 } 314 315 @Override 316 public ResourceActionLocalService getWrappedService() { 317 return _resourceActionLocalService; 318 } 319 320 @Override 321 public void setWrappedService( 322 ResourceActionLocalService resourceActionLocalService) { 323 _resourceActionLocalService = resourceActionLocalService; 324 } 325 326 private ResourceActionLocalService _resourceActionLocalService; 327 }