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