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