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 RepositoryLocalService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see RepositoryLocalService
022     * @generated
023     */
024    public class RepositoryLocalServiceWrapper implements RepositoryLocalService,
025            ServiceWrapper<RepositoryLocalService> {
026            public RepositoryLocalServiceWrapper(
027                    RepositoryLocalService repositoryLocalService) {
028                    _repositoryLocalService = repositoryLocalService;
029            }
030    
031            /**
032            * Adds the repository to the database. Also notifies the appropriate model listeners.
033            *
034            * @param repository the repository
035            * @return the repository that was added
036            * @throws SystemException if a system exception occurred
037            */
038            @Override
039            public com.liferay.portal.model.Repository addRepository(
040                    com.liferay.portal.model.Repository repository)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _repositoryLocalService.addRepository(repository);
043            }
044    
045            /**
046            * Creates a new repository with the primary key. Does not add the repository to the database.
047            *
048            * @param repositoryId the primary key for the new repository
049            * @return the new repository
050            */
051            @Override
052            public com.liferay.portal.model.Repository createRepository(
053                    long repositoryId) {
054                    return _repositoryLocalService.createRepository(repositoryId);
055            }
056    
057            /**
058            * Deletes the repository with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param repositoryId the primary key of the repository
061            * @return the repository that was removed
062            * @throws PortalException if a repository with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            @Override
066            public com.liferay.portal.model.Repository deleteRepository(
067                    long repositoryId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _repositoryLocalService.deleteRepository(repositoryId);
071            }
072    
073            /**
074            * Deletes the repository from the database. Also notifies the appropriate model listeners.
075            *
076            * @param repository the repository
077            * @return the repository that was removed
078            * @throws SystemException if a system exception occurred
079            */
080            @Override
081            public com.liferay.portal.model.Repository deleteRepository(
082                    com.liferay.portal.model.Repository repository)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _repositoryLocalService.deleteRepository(repository);
085            }
086    
087            @Override
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _repositoryLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @Override
100            @SuppressWarnings("rawtypes")
101            public java.util.List dynamicQuery(
102                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103                    throws com.liferay.portal.kernel.exception.SystemException {
104                    return _repositoryLocalService.dynamicQuery(dynamicQuery);
105            }
106    
107            /**
108            * Performs a dynamic query on the database and returns a range of the matching rows.
109            *
110            * <p>
111            * 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.RepositoryModelImpl}. 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.
112            * </p>
113            *
114            * @param dynamicQuery the dynamic query
115            * @param start the lower bound of the range of model instances
116            * @param end the upper bound of the range of model instances (not inclusive)
117            * @return the range of matching rows
118            * @throws SystemException if a system exception occurred
119            */
120            @Override
121            @SuppressWarnings("rawtypes")
122            public java.util.List dynamicQuery(
123                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124                    int end) throws com.liferay.portal.kernel.exception.SystemException {
125                    return _repositoryLocalService.dynamicQuery(dynamicQuery, start, end);
126            }
127    
128            /**
129            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
130            *
131            * <p>
132            * 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.RepositoryModelImpl}. 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.
133            * </p>
134            *
135            * @param dynamicQuery the dynamic query
136            * @param start the lower bound of the range of model instances
137            * @param end the upper bound of the range of model instances (not inclusive)
138            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
139            * @return the ordered range of matching rows
140            * @throws SystemException if a system exception occurred
141            */
142            @Override
143            @SuppressWarnings("rawtypes")
144            public java.util.List dynamicQuery(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
146                    int end,
147                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _repositoryLocalService.dynamicQuery(dynamicQuery, start, end,
150                            orderByComparator);
151            }
152    
153            /**
154            * Returns the number of rows that match the dynamic query.
155            *
156            * @param dynamicQuery the dynamic query
157            * @return the number of rows that match the dynamic query
158            * @throws SystemException if a system exception occurred
159            */
160            @Override
161            public long dynamicQueryCount(
162                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163                    throws com.liferay.portal.kernel.exception.SystemException {
164                    return _repositoryLocalService.dynamicQueryCount(dynamicQuery);
165            }
166    
167            /**
168            * Returns the number of rows that match the dynamic query.
169            *
170            * @param dynamicQuery the dynamic query
171            * @param projection the projection to apply to the query
172            * @return the number of rows that match the dynamic query
173            * @throws SystemException if a system exception occurred
174            */
175            @Override
176            public long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return _repositoryLocalService.dynamicQueryCount(dynamicQuery,
181                            projection);
182            }
183    
184            @Override
185            public com.liferay.portal.model.Repository fetchRepository(
186                    long repositoryId)
187                    throws com.liferay.portal.kernel.exception.SystemException {
188                    return _repositoryLocalService.fetchRepository(repositoryId);
189            }
190    
191            /**
192            * Returns the repository with the matching UUID and company.
193            *
194            * @param uuid the repository's UUID
195            * @param companyId the primary key of the company
196            * @return the matching repository, or <code>null</code> if a matching repository could not be found
197            * @throws SystemException if a system exception occurred
198            */
199            @Override
200            public com.liferay.portal.model.Repository fetchRepositoryByUuidAndCompanyId(
201                    java.lang.String uuid, long companyId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return _repositoryLocalService.fetchRepositoryByUuidAndCompanyId(uuid,
204                            companyId);
205            }
206    
207            /**
208            * Returns the repository matching the UUID and group.
209            *
210            * @param uuid the repository's UUID
211            * @param groupId the primary key of the group
212            * @return the matching repository, or <code>null</code> if a matching repository could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            @Override
216            public com.liferay.portal.model.Repository fetchRepositoryByUuidAndGroupId(
217                    java.lang.String uuid, long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _repositoryLocalService.fetchRepositoryByUuidAndGroupId(uuid,
220                            groupId);
221            }
222    
223            /**
224            * Returns the repository with the primary key.
225            *
226            * @param repositoryId the primary key of the repository
227            * @return the repository
228            * @throws PortalException if a repository with the primary key could not be found
229            * @throws SystemException if a system exception occurred
230            */
231            @Override
232            public com.liferay.portal.model.Repository getRepository(long repositoryId)
233                    throws com.liferay.portal.kernel.exception.PortalException,
234                            com.liferay.portal.kernel.exception.SystemException {
235                    return _repositoryLocalService.getRepository(repositoryId);
236            }
237    
238            @Override
239            public com.liferay.portal.model.PersistedModel getPersistedModel(
240                    java.io.Serializable primaryKeyObj)
241                    throws com.liferay.portal.kernel.exception.PortalException,
242                            com.liferay.portal.kernel.exception.SystemException {
243                    return _repositoryLocalService.getPersistedModel(primaryKeyObj);
244            }
245    
246            /**
247            * Returns the repository with the matching UUID and company.
248            *
249            * @param uuid the repository's UUID
250            * @param companyId the primary key of the company
251            * @return the matching repository
252            * @throws PortalException if a matching repository could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public com.liferay.portal.model.Repository getRepositoryByUuidAndCompanyId(
257                    java.lang.String uuid, long companyId)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _repositoryLocalService.getRepositoryByUuidAndCompanyId(uuid,
261                            companyId);
262            }
263    
264            /**
265            * Returns the repository matching the UUID and group.
266            *
267            * @param uuid the repository's UUID
268            * @param groupId the primary key of the group
269            * @return the matching repository
270            * @throws PortalException if a matching repository could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            @Override
274            public com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
275                    java.lang.String uuid, long groupId)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    return _repositoryLocalService.getRepositoryByUuidAndGroupId(uuid,
279                            groupId);
280            }
281    
282            /**
283            * Returns a range of all the repositories.
284            *
285            * <p>
286            * 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.RepositoryModelImpl}. 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.
287            * </p>
288            *
289            * @param start the lower bound of the range of repositories
290            * @param end the upper bound of the range of repositories (not inclusive)
291            * @return the range of repositories
292            * @throws SystemException if a system exception occurred
293            */
294            @Override
295            public java.util.List<com.liferay.portal.model.Repository> getRepositories(
296                    int start, int end)
297                    throws com.liferay.portal.kernel.exception.SystemException {
298                    return _repositoryLocalService.getRepositories(start, end);
299            }
300    
301            /**
302            * Returns the number of repositories.
303            *
304            * @return the number of repositories
305            * @throws SystemException if a system exception occurred
306            */
307            @Override
308            public int getRepositoriesCount()
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _repositoryLocalService.getRepositoriesCount();
311            }
312    
313            /**
314            * Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
315            *
316            * @param repository the repository
317            * @return the repository that was updated
318            * @throws SystemException if a system exception occurred
319            */
320            @Override
321            public com.liferay.portal.model.Repository updateRepository(
322                    com.liferay.portal.model.Repository repository)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _repositoryLocalService.updateRepository(repository);
325            }
326    
327            /**
328            * Returns the Spring bean ID for this bean.
329            *
330            * @return the Spring bean ID for this bean
331            */
332            @Override
333            public java.lang.String getBeanIdentifier() {
334                    return _repositoryLocalService.getBeanIdentifier();
335            }
336    
337            /**
338            * Sets the Spring bean ID for this bean.
339            *
340            * @param beanIdentifier the Spring bean ID for this bean
341            */
342            @Override
343            public void setBeanIdentifier(java.lang.String beanIdentifier) {
344                    _repositoryLocalService.setBeanIdentifier(beanIdentifier);
345            }
346    
347            @Override
348            public com.liferay.portal.model.Repository addRepository(long userId,
349                    long groupId, long classNameId, long parentFolderId,
350                    java.lang.String name, java.lang.String description,
351                    java.lang.String portletId,
352                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
353                    boolean hidden, com.liferay.portal.service.ServiceContext serviceContext)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return _repositoryLocalService.addRepository(userId, groupId,
357                            classNameId, parentFolderId, name, description, portletId,
358                            typeSettingsProperties, hidden, serviceContext);
359            }
360    
361            /**
362            * @deprecated As of 6.2.0, replaced by {@link #addRepository(long, long,
363            long, long, String, String, String, UnicodeProperties,
364            boolean, ServiceContext)}
365            */
366            @Override
367            public com.liferay.portal.model.Repository addRepository(long userId,
368                    long groupId, long classNameId, long parentFolderId,
369                    java.lang.String name, java.lang.String description,
370                    java.lang.String portletId,
371                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
372                    com.liferay.portal.service.ServiceContext serviceContext)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    return _repositoryLocalService.addRepository(userId, groupId,
376                            classNameId, parentFolderId, name, description, portletId,
377                            typeSettingsProperties, serviceContext);
378            }
379    
380            @Override
381            public void checkRepository(long repositoryId)
382                    throws com.liferay.portal.kernel.exception.SystemException {
383                    _repositoryLocalService.checkRepository(repositoryId);
384            }
385    
386            @Override
387            public void deleteRepositories(long groupId)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    _repositoryLocalService.deleteRepositories(groupId);
391            }
392    
393            @Override
394            public com.liferay.portal.model.Repository fetchRepository(long groupId,
395                    java.lang.String portletId)
396                    throws com.liferay.portal.kernel.exception.SystemException {
397                    return _repositoryLocalService.fetchRepository(groupId, portletId);
398            }
399    
400            @Override
401            public com.liferay.portal.model.Repository fetchRepository(long groupId,
402                    java.lang.String name, java.lang.String portletId)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return _repositoryLocalService.fetchRepository(groupId, name, portletId);
405            }
406    
407            @Override
408            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
409                    long repositoryId)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException {
412                    return _repositoryLocalService.getLocalRepositoryImpl(repositoryId);
413            }
414    
415            @Override
416            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
417                    long folderId, long fileEntryId, long fileVersionId)
418                    throws com.liferay.portal.kernel.exception.PortalException,
419                            com.liferay.portal.kernel.exception.SystemException {
420                    return _repositoryLocalService.getLocalRepositoryImpl(folderId,
421                            fileEntryId, fileVersionId);
422            }
423    
424            @Override
425            public com.liferay.portal.model.Repository getRepository(long groupId,
426                    java.lang.String portletId)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException {
429                    return _repositoryLocalService.getRepository(groupId, portletId);
430            }
431    
432            @Override
433            public com.liferay.portal.model.Repository getRepository(long groupId,
434                    java.lang.String name, java.lang.String portletId)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    return _repositoryLocalService.getRepository(groupId, name, portletId);
438            }
439    
440            @Override
441            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
442                    long repositoryId)
443                    throws com.liferay.portal.kernel.exception.PortalException,
444                            com.liferay.portal.kernel.exception.SystemException {
445                    return _repositoryLocalService.getRepositoryImpl(repositoryId);
446            }
447    
448            @Override
449            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
450                    long folderId, long fileEntryId, long fileVersionId)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException {
453                    return _repositoryLocalService.getRepositoryImpl(folderId, fileEntryId,
454                            fileVersionId);
455            }
456    
457            @Override
458            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
459                    long repositoryId)
460                    throws com.liferay.portal.kernel.exception.PortalException,
461                            com.liferay.portal.kernel.exception.SystemException {
462                    return _repositoryLocalService.getTypeSettingsProperties(repositoryId);
463            }
464    
465            @Override
466            public void updateRepository(long repositoryId, java.lang.String name,
467                    java.lang.String description)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    _repositoryLocalService.updateRepository(repositoryId, name, description);
471            }
472    
473            /**
474             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
475             */
476            public RepositoryLocalService getWrappedRepositoryLocalService() {
477                    return _repositoryLocalService;
478            }
479    
480            /**
481             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
482             */
483            public void setWrappedRepositoryLocalService(
484                    RepositoryLocalService repositoryLocalService) {
485                    _repositoryLocalService = repositoryLocalService;
486            }
487    
488            @Override
489            public RepositoryLocalService getWrappedService() {
490                    return _repositoryLocalService;
491            }
492    
493            @Override
494            public void setWrappedService(RepositoryLocalService repositoryLocalService) {
495                    _repositoryLocalService = repositoryLocalService;
496            }
497    
498            private RepositoryLocalService _repositoryLocalService;
499    }