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