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            /**
272            * Returns the OSGi service identifier.
273            *
274            * @return the OSGi service identifier
275            */
276            @Override
277            public java.lang.String getOSGiServiceIdentifier() {
278                    return _repositoryLocalService.getOSGiServiceIdentifier();
279            }
280    
281            @Override
282            public com.liferay.portal.model.PersistedModel getPersistedModel(
283                    java.io.Serializable primaryKeyObj)
284                    throws com.liferay.portal.kernel.exception.PortalException {
285                    return _repositoryLocalService.getPersistedModel(primaryKeyObj);
286            }
287    
288            /**
289            * Returns a range of all the repositories.
290            *
291            * <p>
292            * 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.
293            * </p>
294            *
295            * @param start the lower bound of the range of repositories
296            * @param end the upper bound of the range of repositories (not inclusive)
297            * @return the range of repositories
298            */
299            @Override
300            public java.util.List<com.liferay.portal.model.Repository> getRepositories(
301                    int start, int end) {
302                    return _repositoryLocalService.getRepositories(start, end);
303            }
304    
305            /**
306            * Returns all the 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            * @return the matching repositories, or an empty list if no matches were found
311            */
312            @Override
313            public java.util.List<com.liferay.portal.model.Repository> getRepositoriesByUuidAndCompanyId(
314                    java.lang.String uuid, long companyId) {
315                    return _repositoryLocalService.getRepositoriesByUuidAndCompanyId(uuid,
316                            companyId);
317            }
318    
319            /**
320            * Returns a range of repositories matching the UUID and company.
321            *
322            * @param uuid the UUID of the repositories
323            * @param companyId the primary key of the company
324            * @param start the lower bound of the range of repositories
325            * @param end the upper bound of the range of repositories (not inclusive)
326            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
327            * @return the range of matching repositories, or an empty list if no matches were found
328            */
329            @Override
330            public java.util.List<com.liferay.portal.model.Repository> getRepositoriesByUuidAndCompanyId(
331                    java.lang.String uuid, long companyId, int start, int end,
332                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Repository> orderByComparator) {
333                    return _repositoryLocalService.getRepositoriesByUuidAndCompanyId(uuid,
334                            companyId, start, end, orderByComparator);
335            }
336    
337            /**
338            * Returns the number of repositories.
339            *
340            * @return the number of repositories
341            */
342            @Override
343            public int getRepositoriesCount() {
344                    return _repositoryLocalService.getRepositoriesCount();
345            }
346    
347            @Override
348            public com.liferay.portal.model.Repository getRepository(long groupId,
349                    java.lang.String name, java.lang.String portletId)
350                    throws com.liferay.portal.kernel.exception.PortalException {
351                    return _repositoryLocalService.getRepository(groupId, name, portletId);
352            }
353    
354            @Override
355            public com.liferay.portal.model.Repository getRepository(long groupId,
356                    java.lang.String portletId)
357                    throws com.liferay.portal.kernel.exception.PortalException {
358                    return _repositoryLocalService.getRepository(groupId, portletId);
359            }
360    
361            /**
362            * Returns the repository with the primary key.
363            *
364            * @param repositoryId the primary key of the repository
365            * @return the repository
366            * @throws PortalException if a repository with the primary key could not be found
367            */
368            @Override
369            public com.liferay.portal.model.Repository getRepository(long repositoryId)
370                    throws com.liferay.portal.kernel.exception.PortalException {
371                    return _repositoryLocalService.getRepository(repositoryId);
372            }
373    
374            /**
375            * Returns the repository matching the UUID and group.
376            *
377            * @param uuid the repository's UUID
378            * @param groupId the primary key of the group
379            * @return the matching repository
380            * @throws PortalException if a matching repository could not be found
381            */
382            @Override
383            public com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
384                    java.lang.String uuid, long groupId)
385                    throws com.liferay.portal.kernel.exception.PortalException {
386                    return _repositoryLocalService.getRepositoryByUuidAndGroupId(uuid,
387                            groupId);
388            }
389    
390            @Override
391            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
392                    long repositoryId)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    return _repositoryLocalService.getTypeSettingsProperties(repositoryId);
395            }
396    
397            /**
398            * Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
399            *
400            * @param repository the repository
401            * @return the repository that was updated
402            */
403            @Override
404            public com.liferay.portal.model.Repository updateRepository(
405                    com.liferay.portal.model.Repository repository) {
406                    return _repositoryLocalService.updateRepository(repository);
407            }
408    
409            @Override
410            public void updateRepository(long repositoryId, java.lang.String name,
411                    java.lang.String description)
412                    throws com.liferay.portal.kernel.exception.PortalException {
413                    _repositoryLocalService.updateRepository(repositoryId, name, description);
414            }
415    
416            @Override
417            public void updateRepository(long repositoryId,
418                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
419                    throws com.liferay.portal.kernel.exception.PortalException {
420                    _repositoryLocalService.updateRepository(repositoryId,
421                            typeSettingsProperties);
422            }
423    
424            /**
425             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
426             */
427            @Deprecated
428            public RepositoryLocalService getWrappedRepositoryLocalService() {
429                    return _repositoryLocalService;
430            }
431    
432            /**
433             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
434             */
435            @Deprecated
436            public void setWrappedRepositoryLocalService(
437                    RepositoryLocalService repositoryLocalService) {
438                    _repositoryLocalService = repositoryLocalService;
439            }
440    
441            @Override
442            public RepositoryLocalService getWrappedService() {
443                    return _repositoryLocalService;
444            }
445    
446            @Override
447            public void setWrappedService(RepositoryLocalService repositoryLocalService) {
448                    _repositoryLocalService = repositoryLocalService;
449            }
450    
451            private RepositoryLocalService _repositoryLocalService;
452    }