001    /**
002     * Copyright (c) 2000-2012 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.
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.
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 with the UUID in the group.
189            *
190            * @param uuid the UUID of repository
191            * @param groupId the group id of the repository
192            * @return the repository
193            * @throws PortalException if a repository with the UUID in the group 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.
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 long addRepository(long userId, long groupId, long classNameId,
265                    long parentFolderId, java.lang.String name,
266                    java.lang.String description, java.lang.String portletId,
267                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
268                    boolean hidden, com.liferay.portal.service.ServiceContext serviceContext)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException {
271                    return _repositoryLocalService.addRepository(userId, groupId,
272                            classNameId, parentFolderId, name, description, portletId,
273                            typeSettingsProperties, hidden, serviceContext);
274            }
275    
276            /**
277            * @deprecated {@link #addRepository(long, long, long, long, String, String,
278            String, UnicodeProperties, boolean, ServiceContext)}
279            */
280            public long addRepository(long userId, long groupId, long classNameId,
281                    long parentFolderId, java.lang.String name,
282                    java.lang.String description, java.lang.String portletId,
283                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
284                    com.liferay.portal.service.ServiceContext serviceContext)
285                    throws com.liferay.portal.kernel.exception.PortalException,
286                            com.liferay.portal.kernel.exception.SystemException {
287                    return _repositoryLocalService.addRepository(userId, groupId,
288                            classNameId, parentFolderId, name, description, portletId,
289                            typeSettingsProperties, serviceContext);
290            }
291    
292            public void checkRepository(long repositoryId)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    _repositoryLocalService.checkRepository(repositoryId);
295            }
296    
297            public void deleteRepositories(long groupId)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _repositoryLocalService.deleteRepositories(groupId);
301            }
302    
303            public com.liferay.portal.model.Repository fetchRepository(long groupId,
304                    java.lang.String portletId)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _repositoryLocalService.fetchRepository(groupId, portletId);
307            }
308    
309            public com.liferay.portal.model.Repository fetchRepository(long groupId,
310                    java.lang.String name, java.lang.String portletId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _repositoryLocalService.fetchRepository(groupId, name, portletId);
313            }
314    
315            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
316                    long repositoryId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _repositoryLocalService.getLocalRepositoryImpl(repositoryId);
320            }
321    
322            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
323                    long folderId, long fileEntryId, long fileVersionId)
324                    throws com.liferay.portal.kernel.exception.PortalException,
325                            com.liferay.portal.kernel.exception.SystemException {
326                    return _repositoryLocalService.getLocalRepositoryImpl(folderId,
327                            fileEntryId, fileVersionId);
328            }
329    
330            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
331                    long repositoryId)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return _repositoryLocalService.getRepositoryImpl(repositoryId);
335            }
336    
337            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
338                    long folderId, long fileEntryId, long fileVersionId)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    return _repositoryLocalService.getRepositoryImpl(folderId, fileEntryId,
342                            fileVersionId);
343            }
344    
345            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
346                    long repositoryId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    return _repositoryLocalService.getTypeSettingsProperties(repositoryId);
350            }
351    
352            public void updateRepository(long repositoryId, java.lang.String name,
353                    java.lang.String description)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    _repositoryLocalService.updateRepository(repositoryId, name, description);
357            }
358    
359            /**
360             * @deprecated Renamed to {@link #getWrappedService}
361             */
362            public RepositoryLocalService getWrappedRepositoryLocalService() {
363                    return _repositoryLocalService;
364            }
365    
366            /**
367             * @deprecated Renamed to {@link #setWrappedService}
368             */
369            public void setWrappedRepositoryLocalService(
370                    RepositoryLocalService repositoryLocalService) {
371                    _repositoryLocalService = repositoryLocalService;
372            }
373    
374            public RepositoryLocalService getWrappedService() {
375                    return _repositoryLocalService;
376            }
377    
378            public void setWrappedService(RepositoryLocalService repositoryLocalService) {
379                    _repositoryLocalService = repositoryLocalService;
380            }
381    
382            private RepositoryLocalService _repositoryLocalService;
383    }