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