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 that match the dynamic query.
166            *
167            * @param dynamicQuery the dynamic query
168            * @return the number of rows that match 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 that match 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 that match 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            @Override
263            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
264                    java.lang.String uuid, long companyId) {
265                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
266                            companyId);
267            }
268    
269            @Override
270            public java.util.List<com.liferay.portal.model.RepositoryEntry> getRepositoryEntriesByUuidAndCompanyId(
271                    java.lang.String uuid, long companyId, int start, int end,
272                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.RepositoryEntry> orderByComparator) {
273                    return _repositoryEntryLocalService.getRepositoryEntriesByUuidAndCompanyId(uuid,
274                            companyId, start, end, orderByComparator);
275            }
276    
277            /**
278            * Returns the number of repository entries.
279            *
280            * @return the number of repository entries
281            */
282            @Override
283            public int getRepositoryEntriesCount() {
284                    return _repositoryEntryLocalService.getRepositoryEntriesCount();
285            }
286    
287            /**
288            * Returns the repository entry with the primary key.
289            *
290            * @param repositoryEntryId the primary key of the repository entry
291            * @return the repository entry
292            * @throws PortalException if a repository entry with the primary key could not be found
293            */
294            @Override
295            public com.liferay.portal.model.RepositoryEntry getRepositoryEntry(
296                    long repositoryEntryId)
297                    throws com.liferay.portal.kernel.exception.PortalException {
298                    return _repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId);
299            }
300    
301            /**
302            * Returns the repository entry matching the UUID and group.
303            *
304            * @param uuid the repository entry's UUID
305            * @param groupId the primary key of the group
306            * @return the matching repository entry
307            * @throws PortalException if a matching repository entry could not be found
308            */
309            @Override
310            public com.liferay.portal.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId(
311                    java.lang.String uuid, long groupId)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return _repositoryEntryLocalService.getRepositoryEntryByUuidAndGroupId(uuid,
314                            groupId);
315            }
316    
317            /**
318            * Sets the Spring bean ID for this bean.
319            *
320            * @param beanIdentifier the Spring bean ID for this bean
321            */
322            @Override
323            public void setBeanIdentifier(java.lang.String beanIdentifier) {
324                    _repositoryEntryLocalService.setBeanIdentifier(beanIdentifier);
325            }
326    
327            /**
328            * Updates the repository entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
329            *
330            * @param repositoryEntry the repository entry
331            * @return the repository entry that was updated
332            */
333            @Override
334            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
335                    com.liferay.portal.model.RepositoryEntry repositoryEntry) {
336                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntry);
337            }
338    
339            @Override
340            public com.liferay.portal.model.RepositoryEntry updateRepositoryEntry(
341                    long repositoryEntryId, java.lang.String mappedId)
342                    throws com.liferay.portal.kernel.exception.PortalException {
343                    return _repositoryEntryLocalService.updateRepositoryEntry(repositoryEntryId,
344                            mappedId);
345            }
346    
347            /**
348             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
349             */
350            @Deprecated
351            public RepositoryEntryLocalService getWrappedRepositoryEntryLocalService() {
352                    return _repositoryEntryLocalService;
353            }
354    
355            /**
356             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
357             */
358            @Deprecated
359            public void setWrappedRepositoryEntryLocalService(
360                    RepositoryEntryLocalService repositoryEntryLocalService) {
361                    _repositoryEntryLocalService = repositoryEntryLocalService;
362            }
363    
364            @Override
365            public RepositoryEntryLocalService getWrappedService() {
366                    return _repositoryEntryLocalService;
367            }
368    
369            @Override
370            public void setWrappedService(
371                    RepositoryEntryLocalService repositoryEntryLocalService) {
372                    _repositoryEntryLocalService = repositoryEntryLocalService;
373            }
374    
375            private RepositoryEntryLocalService _repositoryEntryLocalService;
376    }