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