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 * <p> 019 * This class is a wrapper for {@link ResourceCodeLocalService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see ResourceCodeLocalService 024 * @generated 025 */ 026 public class ResourceCodeLocalServiceWrapper implements ResourceCodeLocalService, 027 ServiceWrapper<ResourceCodeLocalService> { 028 public ResourceCodeLocalServiceWrapper( 029 ResourceCodeLocalService resourceCodeLocalService) { 030 _resourceCodeLocalService = resourceCodeLocalService; 031 } 032 033 /** 034 * Adds the resource code to the database. Also notifies the appropriate model listeners. 035 * 036 * @param resourceCode the resource code 037 * @return the resource code that was added 038 * @throws SystemException if a system exception occurred 039 */ 040 public com.liferay.portal.model.ResourceCode addResourceCode( 041 com.liferay.portal.model.ResourceCode resourceCode) 042 throws com.liferay.portal.kernel.exception.SystemException { 043 return _resourceCodeLocalService.addResourceCode(resourceCode); 044 } 045 046 /** 047 * Creates a new resource code with the primary key. Does not add the resource code to the database. 048 * 049 * @param codeId the primary key for the new resource code 050 * @return the new resource code 051 */ 052 public com.liferay.portal.model.ResourceCode createResourceCode(long codeId) { 053 return _resourceCodeLocalService.createResourceCode(codeId); 054 } 055 056 /** 057 * Deletes the resource code with the primary key from the database. Also notifies the appropriate model listeners. 058 * 059 * @param codeId the primary key of the resource code 060 * @return the resource code that was removed 061 * @throws PortalException if a resource code with the primary key could not be found 062 * @throws SystemException if a system exception occurred 063 */ 064 public com.liferay.portal.model.ResourceCode deleteResourceCode(long codeId) 065 throws com.liferay.portal.kernel.exception.PortalException, 066 com.liferay.portal.kernel.exception.SystemException { 067 return _resourceCodeLocalService.deleteResourceCode(codeId); 068 } 069 070 /** 071 * Deletes the resource code from the database. Also notifies the appropriate model listeners. 072 * 073 * @param resourceCode the resource code 074 * @return the resource code that was removed 075 * @throws SystemException if a system exception occurred 076 */ 077 public com.liferay.portal.model.ResourceCode deleteResourceCode( 078 com.liferay.portal.model.ResourceCode resourceCode) 079 throws com.liferay.portal.kernel.exception.SystemException { 080 return _resourceCodeLocalService.deleteResourceCode(resourceCode); 081 } 082 083 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 084 return _resourceCodeLocalService.dynamicQuery(); 085 } 086 087 /** 088 * Performs a dynamic query on the database and returns the matching rows. 089 * 090 * @param dynamicQuery the dynamic query 091 * @return the matching rows 092 * @throws SystemException if a system exception occurred 093 */ 094 @SuppressWarnings("rawtypes") 095 public java.util.List dynamicQuery( 096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 097 throws com.liferay.portal.kernel.exception.SystemException { 098 return _resourceCodeLocalService.dynamicQuery(dynamicQuery); 099 } 100 101 /** 102 * Performs a dynamic query on the database and returns a range of the matching rows. 103 * 104 * <p> 105 * 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. 106 * </p> 107 * 108 * @param dynamicQuery the dynamic query 109 * @param start the lower bound of the range of model instances 110 * @param end the upper bound of the range of model instances (not inclusive) 111 * @return the range of matching rows 112 * @throws SystemException if a system exception occurred 113 */ 114 @SuppressWarnings("rawtypes") 115 public java.util.List dynamicQuery( 116 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 117 int end) throws com.liferay.portal.kernel.exception.SystemException { 118 return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end); 119 } 120 121 /** 122 * Performs a dynamic query on the database and returns an ordered range of the matching rows. 123 * 124 * <p> 125 * 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. 126 * </p> 127 * 128 * @param dynamicQuery the dynamic query 129 * @param start the lower bound of the range of model instances 130 * @param end the upper bound of the range of model instances (not inclusive) 131 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 132 * @return the ordered range of matching rows 133 * @throws SystemException if a system exception occurred 134 */ 135 @SuppressWarnings("rawtypes") 136 public java.util.List dynamicQuery( 137 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 138 int end, 139 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 140 throws com.liferay.portal.kernel.exception.SystemException { 141 return _resourceCodeLocalService.dynamicQuery(dynamicQuery, start, end, 142 orderByComparator); 143 } 144 145 /** 146 * Returns the number of rows that match the dynamic query. 147 * 148 * @param dynamicQuery the dynamic query 149 * @return the number of rows that match the dynamic query 150 * @throws SystemException if a system exception occurred 151 */ 152 public long dynamicQueryCount( 153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 154 throws com.liferay.portal.kernel.exception.SystemException { 155 return _resourceCodeLocalService.dynamicQueryCount(dynamicQuery); 156 } 157 158 public com.liferay.portal.model.ResourceCode fetchResourceCode(long codeId) 159 throws com.liferay.portal.kernel.exception.SystemException { 160 return _resourceCodeLocalService.fetchResourceCode(codeId); 161 } 162 163 /** 164 * Returns the resource code with the primary key. 165 * 166 * @param codeId the primary key of the resource code 167 * @return the resource code 168 * @throws PortalException if a resource code with the primary key could not be found 169 * @throws SystemException if a system exception occurred 170 */ 171 public com.liferay.portal.model.ResourceCode getResourceCode(long codeId) 172 throws com.liferay.portal.kernel.exception.PortalException, 173 com.liferay.portal.kernel.exception.SystemException { 174 return _resourceCodeLocalService.getResourceCode(codeId); 175 } 176 177 public com.liferay.portal.model.PersistedModel getPersistedModel( 178 java.io.Serializable primaryKeyObj) 179 throws com.liferay.portal.kernel.exception.PortalException, 180 com.liferay.portal.kernel.exception.SystemException { 181 return _resourceCodeLocalService.getPersistedModel(primaryKeyObj); 182 } 183 184 /** 185 * Returns a range of all the resource codes. 186 * 187 * <p> 188 * 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. 189 * </p> 190 * 191 * @param start the lower bound of the range of resource codes 192 * @param end the upper bound of the range of resource codes (not inclusive) 193 * @return the range of resource codes 194 * @throws SystemException if a system exception occurred 195 */ 196 public java.util.List<com.liferay.portal.model.ResourceCode> getResourceCodes( 197 int start, int end) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return _resourceCodeLocalService.getResourceCodes(start, end); 200 } 201 202 /** 203 * Returns the number of resource codes. 204 * 205 * @return the number of resource codes 206 * @throws SystemException if a system exception occurred 207 */ 208 public int getResourceCodesCount() 209 throws com.liferay.portal.kernel.exception.SystemException { 210 return _resourceCodeLocalService.getResourceCodesCount(); 211 } 212 213 /** 214 * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 215 * 216 * @param resourceCode the resource code 217 * @return the resource code that was updated 218 * @throws SystemException if a system exception occurred 219 */ 220 public com.liferay.portal.model.ResourceCode updateResourceCode( 221 com.liferay.portal.model.ResourceCode resourceCode) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return _resourceCodeLocalService.updateResourceCode(resourceCode); 224 } 225 226 /** 227 * Updates the resource code in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 228 * 229 * @param resourceCode the resource code 230 * @param merge whether to merge the resource code with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation. 231 * @return the resource code that was updated 232 * @throws SystemException if a system exception occurred 233 */ 234 public com.liferay.portal.model.ResourceCode updateResourceCode( 235 com.liferay.portal.model.ResourceCode resourceCode, boolean merge) 236 throws com.liferay.portal.kernel.exception.SystemException { 237 return _resourceCodeLocalService.updateResourceCode(resourceCode, merge); 238 } 239 240 /** 241 * Returns the Spring bean ID for this bean. 242 * 243 * @return the Spring bean ID for this bean 244 */ 245 public java.lang.String getBeanIdentifier() { 246 return _resourceCodeLocalService.getBeanIdentifier(); 247 } 248 249 /** 250 * Sets the Spring bean ID for this bean. 251 * 252 * @param beanIdentifier the Spring bean ID for this bean 253 */ 254 public void setBeanIdentifier(java.lang.String beanIdentifier) { 255 _resourceCodeLocalService.setBeanIdentifier(beanIdentifier); 256 } 257 258 public com.liferay.portal.model.ResourceCode addResourceCode( 259 long companyId, java.lang.String name, int scope) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 return _resourceCodeLocalService.addResourceCode(companyId, name, scope); 262 } 263 264 public void checkResourceCodes() 265 throws com.liferay.portal.kernel.exception.SystemException { 266 _resourceCodeLocalService.checkResourceCodes(); 267 } 268 269 public void checkResourceCodes(long companyId, java.lang.String name) 270 throws com.liferay.portal.kernel.exception.SystemException { 271 _resourceCodeLocalService.checkResourceCodes(companyId, name); 272 } 273 274 public com.liferay.portal.model.ResourceCode getResourceCode( 275 long companyId, java.lang.String name, int scope) 276 throws com.liferay.portal.kernel.exception.SystemException { 277 return _resourceCodeLocalService.getResourceCode(companyId, name, scope); 278 } 279 280 /** 281 * @deprecated Renamed to {@link #getWrappedService} 282 */ 283 public ResourceCodeLocalService getWrappedResourceCodeLocalService() { 284 return _resourceCodeLocalService; 285 } 286 287 /** 288 * @deprecated Renamed to {@link #setWrappedService} 289 */ 290 public void setWrappedResourceCodeLocalService( 291 ResourceCodeLocalService resourceCodeLocalService) { 292 _resourceCodeLocalService = resourceCodeLocalService; 293 } 294 295 public ResourceCodeLocalService getWrappedService() { 296 return _resourceCodeLocalService; 297 } 298 299 public void setWrappedService( 300 ResourceCodeLocalService resourceCodeLocalService) { 301 _resourceCodeLocalService = resourceCodeLocalService; 302 } 303 304 private ResourceCodeLocalService _resourceCodeLocalService; 305 }