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