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