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            @Override
233            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
234                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
235                    return _repositoryEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
236            }
237    
238            @Override
239            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
240                    return _repositoryEntryLocalService.getIndexableActionableDynamicQuery();
241            }
242    
243            /**
244            * Returns the OSGi service identifier.
245            *
246            * @return the OSGi service identifier
247            */
248            @Override
249            public java.lang.String getOSGiServiceIdentifier() {
250                    return _repositoryEntryLocalService.getOSGiServiceIdentifier();
251            }
252    
253            @Override
254            public com.liferay.portal.model.PersistedModel getPersistedModel(
255                    java.io.Serializable primaryKeyObj)
256                    throws com.liferay.portal.kernel.exception.PortalException {
257                    return _repositoryEntryLocalService.getPersistedModel(primaryKeyObj);
258            }
259    
260            @Override
261            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries(
262                    long repositoryId) {
263                    return _repositoryEntryLocalService.getRepositoryEntries(repositoryId);
264            }
265    
266            /**
267            * Returns a range of all the repository entries.
268            *
269            * <p>
270            * 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.
271            * </p>
272            *
273            * @param start the lower bound of the range of repository entries
274            * @param end the upper bound of the range of repository entries (not inclusive)
275            * @return the range of repository entries
276            */
277            @Override
278            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries(
279                    int start, int end) {
280                    return _repositoryEntryLocalService.getRepositoryEntries(start, end);
281            }
282    
283            /**
284            * Returns all the repository entries matching the UUID and company.
285            *
286            * @param uuid the UUID of the repository entries
287            * @param companyId the primary key of the company
288            * @return the matching repository entries, or an empty list if no matches were found
289            */
290            @Override
291            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
292                    java.lang.String uuid, long companyId) {
293                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
294                            companyId);
295            }
296    
297            /**
298            * Returns a range of repository entries matching the UUID and company.
299            *
300            * @param uuid the UUID of the repository entries
301            * @param companyId the primary key of the company
302            * @param start the lower bound of the range of repository entries
303            * @param end the upper bound of the range of repository entries (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the range of matching repository entries, or an empty list if no matches were found
306            */
307            @Override
308            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
309                    java.lang.String uuid, long companyId, int start, int end,
310                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.RepositoryEntry> orderByComparator) {
311                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
312                            companyId, start, end, orderByComparator);
313            }
314    
315            /**
316            * Returns the number of repository entries.
317            *
318            * @return the number of repository entries
319            */
320            @Override
321            public int getRepositoryEntriesCount() {
322                    return _repositoryEntryLocalService.getRepositoryEntriesCount();
323            }
324    
325            /**
326            * Returns the repository entry with the primary key.
327            *
328            * @param repositoryEntryId the primary key of the repository entry
329            * @return the repository entry
330            * @throws PortalException if a repository entry with the primary key could not be found
331            */
332            @Override
333            public com.liferay.portal.model.RepositoryEntry getRepositoryEntry(
334                    long repositoryEntryId)
335                    throws com.liferay.portal.kernel.exception.PortalException {
336                    return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId);
337            }
338    
339            @Override
340            public com.liferay.portal.model.RepositoryEntry getRepositoryEntry(
341                    long userId, long groupId, long repositoryId, java.lang.String objectId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    return _repositoryEntryLocalService.getRepositoryEntry(userId, groupId,
344                            repositoryId, objectId);
345            }
346    
347            @Override
348            public com.liferay.portal.model.RepositoryEntry getRepositoryEntry(
349                    java.lang.String uuid, long groupId)
350                    throws com.liferay.portal.kernel.exception.PortalException {
351                    return _repositoryEntryLocalService.getRepositoryEntry(uuid, groupId);
352            }
353    
354            /**
355            * Returns the repository entry matching the UUID and group.
356            *
357            * @param uuid the repository entry's UUID
358            * @param groupId the primary key of the group
359            * @return the matching repository entry
360            * @throws PortalException if a matching repository entry could not be found
361            */
362            @Override
363            public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId(
364                    java.lang.String uuid, long groupId)
365                    throws com.liferay.portal.kernel.exception.PortalException {
366                    return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid,
367                            groupId);
368            }
369    
370            /**
371            * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
372            *
373            * @param repositoryEntry the repository entry
374            * @return the repository entry that was updated
375            */
376            @Override
377            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
378                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
379                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry);
380            }
381    
382            @Override
383            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
384                    long repositoryEntryId, java.lang.String mappedId)
385                    throws com.liferay.portal.kernel.exception.PortalException {
386                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntryId,
387                            mappedId);
388            }
389    
390            @Override
391            public RepositoryEntryLocalService getWrappedService() {
392                    return _repositoryEntryLocalService;
393            }
394    
395            @Override
396            public void setWrappedService(
397                    RepositoryEntryLocalService repositoryEntryLocalService) {
398                    _repositoryEntryLocalService = repositoryEntryLocalService;
399            }
400    
401            private RepositoryEntryLocalService _repositoryEntryLocalService;
402    }