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