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 RepositoryEntryLocalService}. 019 * 020 * @author Brian Wing Shun Chan 021 * @see RepositoryEntryLocalService 022 * @generated 023 */ 024 public class RepositoryEntryLocalServiceWrapper 025 implements RepositoryEntryLocalService, 026 ServiceWrapper<RepositoryEntryLocalService> { 027 public RepositoryEntryLocalServiceWrapper( 028 RepositoryEntryLocalService repositoryEntryLocalService) { 029 _repositoryEntryLocalService = repositoryEntryLocalService; 030 } 031 032 /** 033 * Adds the repository entry to the database. Also notifies the appropriate model listeners. 034 * 035 * @param repositoryEntry the repository entry 036 * @return the repository entry that was added 037 * @throws SystemException if a system exception occurred 038 */ 039 @Override 040 public com.liferay.portal.model.RepositoryEntry addRepositoryEntry( 041 com.liferay.portal.model.RepositoryEntry repositoryEntry) 042 throws com.liferay.portal.kernel.exception.SystemException { 043 return _repositoryEntryLocalService.addRepositoryEntry(repositoryEntry); 044 } 045 046 /** 047 * Creates a new repository entry with the primary key. Does not add the repository entry to the database. 048 * 049 * @param repositoryEntryId the primary key for the new repository entry 050 * @return the new repository entry 051 */ 052 @Override 053 public com.liferay.portal.model.RepositoryEntry createRepositoryEntry( 054 long repositoryEntryId) { 055 return _repositoryEntryLocalService.createRepositoryEntry(repositoryEntryId); 056 } 057 058 /** 059 * Deletes the repository entry with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param repositoryEntryId the primary key of the repository entry 062 * @return the repository entry that was removed 063 * @throws PortalException if a repository entry 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.RepositoryEntry deleteRepositoryEntry( 068 long repositoryEntryId) 069 throws com.liferay.portal.kernel.exception.PortalException, 070 com.liferay.portal.kernel.exception.SystemException { 071 return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntryId); 072 } 073 074 /** 075 * Deletes the repository entry from the database. Also notifies the appropriate model listeners. 076 * 077 * @param repositoryEntry the repository entry 078 * @return the repository entry that was removed 079 * @throws SystemException if a system exception occurred 080 */ 081 @Override 082 public com.liferay.portal.model.RepositoryEntry deleteRepositoryEntry( 083 com.liferay.portal.model.RepositoryEntry repositoryEntry) 084 throws com.liferay.portal.kernel.exception.SystemException { 085 return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntry); 086 } 087 088 @Override 089 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { 090 return _repositoryEntryLocalService.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 _repositoryEntryLocalService.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.RepositoryEntryModelImpl}. 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 _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 127 end); 128 } 129 130 /** 131 * Performs a dynamic query on the database and returns an ordered 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.RepositoryEntryModelImpl}. 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 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 141 * @return the ordered range of matching rows 142 * @throws SystemException if a system exception occurred 143 */ 144 @Override 145 @SuppressWarnings("rawtypes") 146 public java.util.List dynamicQuery( 147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, 148 int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException { 151 return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start, 152 end, orderByComparator); 153 } 154 155 /** 156 * Returns the number of rows that match the dynamic query. 157 * 158 * @param dynamicQuery the dynamic query 159 * @return the number of rows that match the dynamic query 160 * @throws SystemException if a system exception occurred 161 */ 162 @Override 163 public long dynamicQueryCount( 164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery); 167 } 168 169 /** 170 * Returns the number of rows that match the dynamic query. 171 * 172 * @param dynamicQuery the dynamic query 173 * @param projection the projection to apply to the query 174 * @return the number of rows that match the dynamic query 175 * @throws SystemException if a system exception occurred 176 */ 177 @Override 178 public long dynamicQueryCount( 179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, 180 com.liferay.portal.kernel.dao.orm.Projection projection) 181 throws com.liferay.portal.kernel.exception.SystemException { 182 return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery, 183 projection); 184 } 185 186 @Override 187 public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntry( 188 long repositoryEntryId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return _repositoryEntryLocalService.fetchRepositoryEntry(repositoryEntryId); 191 } 192 193 /** 194 * Returns the repository entry with the matching UUID and company. 195 * 196 * @param uuid the repository entry's UUID 197 * @param companyId the primary key of the company 198 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 @Override 202 public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntryByUuidAndCompanyId( 203 java.lang.String uuid, long companyId) 204 throws com.liferay.portal.kernel.exception.SystemException { 205 return _repositoryEntryLocalService.fetchRepositoryEntryByUuidAndCompanyId(uuid, 206 companyId); 207 } 208 209 /** 210 * Returns the repository entry matching the UUID and group. 211 * 212 * @param uuid the repository entry's UUID 213 * @param groupId the primary key of the group 214 * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 @Override 218 public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntryByUuidAndGroupId( 219 java.lang.String uuid, long groupId) 220 throws com.liferay.portal.kernel.exception.SystemException { 221 return _repositoryEntryLocalService.fetchRepositoryEntryByUuidAndGroupId(uuid, 222 groupId); 223 } 224 225 /** 226 * Returns the repository entry with the primary key. 227 * 228 * @param repositoryEntryId the primary key of the repository entry 229 * @return the repository entry 230 * @throws PortalException if a repository entry with the primary key could not be found 231 * @throws SystemException if a system exception occurred 232 */ 233 @Override 234 public com.liferay.portal.model.RepositoryEntry getRepositoryEntry( 235 long repositoryEntryId) 236 throws com.liferay.portal.kernel.exception.PortalException, 237 com.liferay.portal.kernel.exception.SystemException { 238 return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId); 239 } 240 241 @Override 242 public com.liferay.portal.model.PersistedModel getPersistedModel( 243 java.io.Serializable primaryKeyObj) 244 throws com.liferay.portal.kernel.exception.PortalException, 245 com.liferay.portal.kernel.exception.SystemException { 246 return _repositoryEntryLocalService.getPersistedModel(primaryKeyObj); 247 } 248 249 /** 250 * Returns the repository entry with the matching UUID and company. 251 * 252 * @param uuid the repository entry's UUID 253 * @param companyId the primary key of the company 254 * @return the matching repository entry 255 * @throws PortalException if a matching repository entry could not be found 256 * @throws SystemException if a system exception occurred 257 */ 258 @Override 259 public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndCompanyId( 260 java.lang.String uuid, long companyId) 261 throws com.liferay.portal.kernel.exception.PortalException, 262 com.liferay.portal.kernel.exception.SystemException { 263 return _repositoryEntryLocalService.getRepositoryEntryByUuidAndCompanyId(uuid, 264 companyId); 265 } 266 267 /** 268 * Returns the repository entry matching the UUID and group. 269 * 270 * @param uuid the repository entry's UUID 271 * @param groupId the primary key of the group 272 * @return the matching repository entry 273 * @throws PortalException if a matching repository entry could not be found 274 * @throws SystemException if a system exception occurred 275 */ 276 @Override 277 public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId( 278 java.lang.String uuid, long groupId) 279 throws com.liferay.portal.kernel.exception.PortalException, 280 com.liferay.portal.kernel.exception.SystemException { 281 return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid, 282 groupId); 283 } 284 285 /** 286 * Returns a range of all the repository entries. 287 * 288 * <p> 289 * 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.RepositoryEntryModelImpl}. 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. 290 * </p> 291 * 292 * @param start the lower bound of the range of repository entries 293 * @param end the upper bound of the range of repository entries (not inclusive) 294 * @return the range of repository entries 295 * @throws SystemException if a system exception occurred 296 */ 297 @Override 298 public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries( 299 int start, int end) 300 throws com.liferay.portal.kernel.exception.SystemException { 301 return _repositoryEntryLocalService.getRepositoryEntries(start, end); 302 } 303 304 /** 305 * Returns the number of repository entries. 306 * 307 * @return the number of repository entries 308 * @throws SystemException if a system exception occurred 309 */ 310 @Override 311 public int getRepositoryEntriesCount() 312 throws com.liferay.portal.kernel.exception.SystemException { 313 return _repositoryEntryLocalService.getRepositoryEntriesCount(); 314 } 315 316 /** 317 * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. 318 * 319 * @param repositoryEntry the repository entry 320 * @return the repository entry that was updated 321 * @throws SystemException if a system exception occurred 322 */ 323 @Override 324 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 325 com.liferay.portal.model.RepositoryEntry repositoryEntry) 326 throws com.liferay.portal.kernel.exception.SystemException { 327 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry); 328 } 329 330 /** 331 * Returns the Spring bean ID for this bean. 332 * 333 * @return the Spring bean ID for this bean 334 */ 335 @Override 336 public java.lang.String getBeanIdentifier() { 337 return _repositoryEntryLocalService.getBeanIdentifier(); 338 } 339 340 /** 341 * Sets the Spring bean ID for this bean. 342 * 343 * @param beanIdentifier the Spring bean ID for this bean 344 */ 345 @Override 346 public void setBeanIdentifier(java.lang.String beanIdentifier) { 347 _repositoryEntryLocalService.setBeanIdentifier(beanIdentifier); 348 } 349 350 @Override 351 public com.liferay.portal.model.RepositoryEntry addRepositoryEntry( 352 long userId, long groupId, long repositoryId, 353 java.lang.String mappedId, 354 com.liferay.portal.service.ServiceContext serviceContext) 355 throws com.liferay.portal.kernel.exception.PortalException, 356 com.liferay.portal.kernel.exception.SystemException { 357 return _repositoryEntryLocalService.addRepositoryEntry(userId, groupId, 358 repositoryId, mappedId, serviceContext); 359 } 360 361 @Override 362 public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries( 363 long repositoryId) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return _repositoryEntryLocalService.getRepositoryEntries(repositoryId); 366 } 367 368 @Override 369 public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry( 370 long repositoryEntryId, java.lang.String mappedId) 371 throws com.liferay.portal.kernel.exception.PortalException, 372 com.liferay.portal.kernel.exception.SystemException { 373 return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntryId, 374 mappedId); 375 } 376 377 /** 378 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 379 */ 380 public RepositoryEntryLocalService getWrappedRepositoryEntryLocalService() { 381 return _repositoryEntryLocalService; 382 } 383 384 /** 385 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 386 */ 387 public void setWrappedRepositoryEntryLocalService( 388 RepositoryEntryLocalService repositoryEntryLocalService) { 389 _repositoryEntryLocalService = repositoryEntryLocalService; 390 } 391 392 @Override 393 public RepositoryEntryLocalService getWrappedService() { 394 return _repositoryEntryLocalService; 395 } 396 397 @Override 398 public void setWrappedService( 399 RepositoryEntryLocalService repositoryEntryLocalService) { 400 _repositoryEntryLocalService = repositoryEntryLocalService; 401 } 402 403 private RepositoryEntryLocalService _repositoryEntryLocalService; 404 }