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