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