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            /**
080            * Deletes the repository entry from the database. Also notifies the appropriate model listeners.
081            *
082            * @param repositoryEntry the repository entry
083            * @return the repository entry that was removed
084            */
085            @Override
086            public com.liferay.portal.model.RepositoryEntry deleteRepositoryEntry(
087                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
088                    return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntry);
089            }
090    
091            /**
092            * Deletes the repository entry with the primary key from the database. Also notifies the appropriate model listeners.
093            *
094            * @param repositoryEntryId the primary key of the repository entry
095            * @return the repository entry that was removed
096            * @throws PortalException if a repository entry with the primary key could not be found
097            */
098            @Override
099            public com.liferay.portal.model.RepositoryEntry deleteRepositoryEntry(
100                    long repositoryEntryId)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _repositoryEntryLocalService.deleteRepositoryEntry(repositoryEntryId);
103            }
104    
105            @Override
106            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
107                    return _repositoryEntryLocalService.dynamicQuery();
108            }
109    
110            /**
111            * Performs a dynamic query on the database and returns the matching rows.
112            *
113            * @param dynamicQuery the dynamic query
114            * @return the matching rows
115            */
116            @Override
117            public <T> java.util.List<T> dynamicQuery(
118                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
119                    return _repositoryEntryLocalService.dynamicQuery(dynamicQuery);
120            }
121    
122            /**
123            * Performs a dynamic query on the database and returns a range of the matching rows.
124            *
125            * <p>
126            * 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.
127            * </p>
128            *
129            * @param dynamicQuery the dynamic query
130            * @param start the lower bound of the range of model instances
131            * @param end the upper bound of the range of model instances (not inclusive)
132            * @return the range of matching rows
133            */
134            @Override
135            public <T> java.util.List<T> dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end) {
138                    return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start,
139                            end);
140            }
141    
142            /**
143            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
144            *
145            * <p>
146            * 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.
147            * </p>
148            *
149            * @param dynamicQuery the dynamic query
150            * @param start the lower bound of the range of model instances
151            * @param end the upper bound of the range of model instances (not inclusive)
152            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
153            * @return the ordered range of matching rows
154            */
155            @Override
156            public <T> java.util.List<T> dynamicQuery(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158                    int end,
159                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
160                    return _repositoryEntryLocalService.dynamicQuery(dynamicQuery, start,
161                            end, orderByComparator);
162            }
163    
164            /**
165            * Returns the number of rows matching the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @return the number of rows matching the dynamic query
169            */
170            @Override
171            public long dynamicQueryCount(
172                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
173                    return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery);
174            }
175    
176            /**
177            * Returns the number of rows matching the dynamic query.
178            *
179            * @param dynamicQuery the dynamic query
180            * @param projection the projection to apply to the 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                    com.liferay.portal.kernel.dao.orm.Projection projection) {
187                    return _repositoryEntryLocalService.dynamicQueryCount(dynamicQuery,
188                            projection);
189            }
190    
191            @Override
192            public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntry(
193                    long repositoryEntryId) {
194                    return _repositoryEntryLocalService.fetchRepositoryEntry(repositoryEntryId);
195            }
196    
197            /**
198            * Returns the repository entry matching the UUID and group.
199            *
200            * @param uuid the repository entry's UUID
201            * @param groupId the primary key of the group
202            * @return the matching repository entry, or <code>null</code> if a matching repository entry could not be found
203            */
204            @Override
205            public com.liferay.portal.model.RepositoryEntry fetchRepositoryEntryByUuidAndGroupId(
206                    java.lang.String uuid, long groupId) {
207                    return _repositoryEntryLocalService.fetchRepositoryEntryByUuidAndGroupId(uuid,
208                            groupId);
209            }
210    
211            @Override
212            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
213                    return _repositoryEntryLocalService.getActionableDynamicQuery();
214            }
215    
216            /**
217            * Returns the Spring bean ID for this bean.
218            *
219            * @return the Spring bean ID for this bean
220            */
221            @Override
222            public java.lang.String getBeanIdentifier() {
223                    return _repositoryEntryLocalService.getBeanIdentifier();
224            }
225    
226            @Override
227            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
228                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
229                    return _repositoryEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
230            }
231    
232            @Override
233            public com.liferay.portal.model.PersistedModel getPersistedModel(
234                    java.io.Serializable primaryKeyObj)
235                    throws com.liferay.portal.kernel.exception.PortalException {
236                    return _repositoryEntryLocalService.getPersistedModel(primaryKeyObj);
237            }
238    
239            @Override
240            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries(
241                    long repositoryId) {
242                    return _repositoryEntryLocalService.getRepositoryEntries(repositoryId);
243            }
244    
245            /**
246            * Returns a range of all the repository entries.
247            *
248            * <p>
249            * 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.
250            * </p>
251            *
252            * @param start the lower bound of the range of repository entries
253            * @param end the upper bound of the range of repository entries (not inclusive)
254            * @return the range of repository entries
255            */
256            @Override
257            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntries(
258                    int start, int end) {
259                    return _repositoryEntryLocalService.getRepositoryEntries(start, end);
260            }
261    
262            /**
263            * Returns all the repository entries matching the UUID and company.
264            *
265            * @param uuid the UUID of the repository entries
266            * @param companyId the primary key of the company
267            * @return the matching repository entries, or an empty list if no matches were found
268            */
269            @Override
270            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
271                    java.lang.String uuid, long companyId) {
272                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
273                            companyId);
274            }
275    
276            /**
277            * Returns a range of repository entries matching the UUID and company.
278            *
279            * @param uuid the UUID of the repository entries
280            * @param companyId the primary key of the company
281            * @param start the lower bound of the range of repository entries
282            * @param end the upper bound of the range of repository entries (not inclusive)
283            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
284            * @return the range of matching repository entries, or an empty list if no matches were found
285            */
286            @Override
287            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
288                    java.lang.String uuid, long companyId, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.RepositoryEntry> orderByComparator) {
290                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
291                            companyId, start, end, orderByComparator);
292            }
293    
294            /**
295            * Returns the number of repository entries.
296            *
297            * @return the number of repository entries
298            */
299            @Override
300            public int getRepositoryEntriesCount() {
301                    return _repositoryEntryLocalService.getRepositoryEntriesCount();
302            }
303    
304            /**
305            * Returns the repository entry with the primary key.
306            *
307            * @param repositoryEntryId the primary key of the repository entry
308            * @return the repository entry
309            * @throws PortalException if a repository entry with the primary key could not be found
310            */
311            @Override
312            public com.liferay.portal.model.RepositoryEntry getRepositoryEntry(
313                    long repositoryEntryId)
314                    throws com.liferay.portal.kernel.exception.PortalException {
315                    return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId);
316            }
317    
318            /**
319            * Returns the repository entry matching the UUID and group.
320            *
321            * @param uuid the repository entry's UUID
322            * @param groupId the primary key of the group
323            * @return the matching repository entry
324            * @throws PortalException if a matching repository entry could not be found
325            */
326            @Override
327            public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId(
328                    java.lang.String uuid, long groupId)
329                    throws com.liferay.portal.kernel.exception.PortalException {
330                    return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid,
331                            groupId);
332            }
333    
334            /**
335            * Sets the Spring bean ID for this bean.
336            *
337            * @param beanIdentifier the Spring bean ID for this bean
338            */
339            @Override
340            public void setBeanIdentifier(java.lang.String beanIdentifier) {
341                    _repositoryEntryLocalService.setBeanIdentifier(beanIdentifier);
342            }
343    
344            /**
345            * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
346            *
347            * @param repositoryEntry the repository entry
348            * @return the repository entry that was updated
349            */
350            @Override
351            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
352                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
353                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry);
354            }
355    
356            @Override
357            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
358                    long repositoryEntryId, java.lang.String mappedId)
359                    throws com.liferay.portal.kernel.exception.PortalException {
360                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntryId,
361                            mappedId);
362            }
363    
364            /**
365             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
366             */
367            @Deprecated
368            public RepositoryEntryLocalService getWrappedRepositoryEntryLocalService() {
369                    return _repositoryEntryLocalService;
370            }
371    
372            /**
373             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
374             */
375            @Deprecated
376            public void setWrappedRepositoryEntryLocalService(
377                    RepositoryEntryLocalService repositoryEntryLocalService) {
378                    _repositoryEntryLocalService = repositoryEntryLocalService;
379            }
380    
381            @Override
382            public RepositoryEntryLocalService getWrappedService() {
383                    return _repositoryEntryLocalService;
384            }
385    
386            @Override
387            public void setWrappedService(
388                    RepositoryEntryLocalService repositoryEntryLocalService) {
389                    _repositoryEntryLocalService = repositoryEntryLocalService;
390            }
391    
392            private RepositoryEntryLocalService _repositoryEntryLocalService;
393    }