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