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            * @throws PortalException if a repository with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteRepository(long repositoryId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _repositoryLocalService.deleteRepository(repositoryId);
068            }
069    
070            /**
071            * Deletes the repository from the database. Also notifies the appropriate model listeners.
072            *
073            * @param repository the repository
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteRepository(com.liferay.portal.model.Repository repository)
077                    throws com.liferay.portal.kernel.exception.SystemException {
078                    _repositoryLocalService.deleteRepository(repository);
079            }
080    
081            /**
082            * Performs a dynamic query on the database and returns the matching rows.
083            *
084            * @param dynamicQuery the dynamic query
085            * @return the matching rows
086            * @throws SystemException if a system exception occurred
087            */
088            @SuppressWarnings("rawtypes")
089            public java.util.List dynamicQuery(
090                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
091                    throws com.liferay.portal.kernel.exception.SystemException {
092                    return _repositoryLocalService.dynamicQuery(dynamicQuery);
093            }
094    
095            /**
096            * Performs a dynamic query on the database and returns a range of the matching rows.
097            *
098            * <p>
099            * 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.
100            * </p>
101            *
102            * @param dynamicQuery the dynamic query
103            * @param start the lower bound of the range of model instances
104            * @param end the upper bound of the range of model instances (not inclusive)
105            * @return the range of matching rows
106            * @throws SystemException if a system exception occurred
107            */
108            @SuppressWarnings("rawtypes")
109            public java.util.List dynamicQuery(
110                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
111                    int end) throws com.liferay.portal.kernel.exception.SystemException {
112                    return _repositoryLocalService.dynamicQuery(dynamicQuery, start, end);
113            }
114    
115            /**
116            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
117            *
118            * <p>
119            * 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.
120            * </p>
121            *
122            * @param dynamicQuery the dynamic query
123            * @param start the lower bound of the range of model instances
124            * @param end the upper bound of the range of model instances (not inclusive)
125            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
126            * @return the ordered range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return _repositoryLocalService.dynamicQuery(dynamicQuery, start, end,
136                            orderByComparator);
137            }
138    
139            /**
140            * Returns the number of rows that match the dynamic query.
141            *
142            * @param dynamicQuery the dynamic query
143            * @return the number of rows that match the dynamic query
144            * @throws SystemException if a system exception occurred
145            */
146            public long dynamicQueryCount(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
148                    throws com.liferay.portal.kernel.exception.SystemException {
149                    return _repositoryLocalService.dynamicQueryCount(dynamicQuery);
150            }
151    
152            public com.liferay.portal.model.Repository fetchRepository(
153                    long repositoryId)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _repositoryLocalService.fetchRepository(repositoryId);
156            }
157    
158            /**
159            * Returns the repository with the primary key.
160            *
161            * @param repositoryId the primary key of the repository
162            * @return the repository
163            * @throws PortalException if a repository with the primary key could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            public com.liferay.portal.model.Repository getRepository(long repositoryId)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _repositoryLocalService.getRepository(repositoryId);
170            }
171    
172            public com.liferay.portal.model.PersistedModel getPersistedModel(
173                    java.io.Serializable primaryKeyObj)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return _repositoryLocalService.getPersistedModel(primaryKeyObj);
177            }
178    
179            /**
180            * Returns the repository with the UUID in the group.
181            *
182            * @param uuid the UUID of repository
183            * @param groupId the group id of the repository
184            * @return the repository
185            * @throws PortalException if a repository with the UUID in the group could not be found
186            * @throws SystemException if a system exception occurred
187            */
188            public com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
189                    java.lang.String uuid, long groupId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return _repositoryLocalService.getRepositoryByUuidAndGroupId(uuid,
193                            groupId);
194            }
195    
196            /**
197            * Returns a range of all the repositories.
198            *
199            * <p>
200            * 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.
201            * </p>
202            *
203            * @param start the lower bound of the range of repositories
204            * @param end the upper bound of the range of repositories (not inclusive)
205            * @return the range of repositories
206            * @throws SystemException if a system exception occurred
207            */
208            public java.util.List<com.liferay.portal.model.Repository> getRepositories(
209                    int start, int end)
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return _repositoryLocalService.getRepositories(start, end);
212            }
213    
214            /**
215            * Returns the number of repositories.
216            *
217            * @return the number of repositories
218            * @throws SystemException if a system exception occurred
219            */
220            public int getRepositoriesCount()
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _repositoryLocalService.getRepositoriesCount();
223            }
224    
225            /**
226            * Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param repository the repository
229            * @return the repository that was updated
230            * @throws SystemException if a system exception occurred
231            */
232            public com.liferay.portal.model.Repository updateRepository(
233                    com.liferay.portal.model.Repository repository)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _repositoryLocalService.updateRepository(repository);
236            }
237    
238            /**
239            * Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
240            *
241            * @param repository the repository
242            * @param merge whether to merge the repository with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
243            * @return the repository that was updated
244            * @throws SystemException if a system exception occurred
245            */
246            public com.liferay.portal.model.Repository updateRepository(
247                    com.liferay.portal.model.Repository repository, boolean merge)
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _repositoryLocalService.updateRepository(repository, merge);
250            }
251    
252            /**
253            * Returns the Spring bean ID for this bean.
254            *
255            * @return the Spring bean ID for this bean
256            */
257            public java.lang.String getBeanIdentifier() {
258                    return _repositoryLocalService.getBeanIdentifier();
259            }
260    
261            /**
262            * Sets the Spring bean ID for this bean.
263            *
264            * @param beanIdentifier the Spring bean ID for this bean
265            */
266            public void setBeanIdentifier(java.lang.String beanIdentifier) {
267                    _repositoryLocalService.setBeanIdentifier(beanIdentifier);
268            }
269    
270            public long addRepository(long userId, long groupId, long classNameId,
271                    long parentFolderId, java.lang.String name,
272                    java.lang.String description, java.lang.String portletId,
273                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
274                    com.liferay.portal.service.ServiceContext serviceContext)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _repositoryLocalService.addRepository(userId, groupId,
278                            classNameId, parentFolderId, name, description, portletId,
279                            typeSettingsProperties, serviceContext);
280            }
281    
282            public void checkRepository(long repositoryId)
283                    throws com.liferay.portal.kernel.exception.SystemException {
284                    _repositoryLocalService.checkRepository(repositoryId);
285            }
286    
287            public void deleteRepositories(long groupId)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _repositoryLocalService.deleteRepositories(groupId);
291            }
292    
293            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
294                    long repositoryId)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _repositoryLocalService.getLocalRepositoryImpl(repositoryId);
298            }
299    
300            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
301                    long folderId, long fileEntryId, long fileVersionId)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _repositoryLocalService.getLocalRepositoryImpl(folderId,
305                            fileEntryId, fileVersionId);
306            }
307    
308            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
309                    long repositoryId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    return _repositoryLocalService.getRepositoryImpl(repositoryId);
313            }
314    
315            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
316                    long folderId, long fileEntryId, long fileVersionId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _repositoryLocalService.getRepositoryImpl(folderId, fileEntryId,
320                            fileVersionId);
321            }
322    
323            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
324                    long repositoryId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _repositoryLocalService.getTypeSettingsProperties(repositoryId);
328            }
329    
330            public void updateRepository(long repositoryId, java.lang.String name,
331                    java.lang.String description)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    _repositoryLocalService.updateRepository(repositoryId, name, description);
335            }
336    
337            /**
338             * @deprecated Renamed to {@link #getWrappedService}
339             */
340            public RepositoryLocalService getWrappedRepositoryLocalService() {
341                    return _repositoryLocalService;
342            }
343    
344            /**
345             * @deprecated Renamed to {@link #setWrappedService}
346             */
347            public void setWrappedRepositoryLocalService(
348                    RepositoryLocalService repositoryLocalService) {
349                    _repositoryLocalService = repositoryLocalService;
350            }
351    
352            public RepositoryLocalService getWrappedService() {
353                    return _repositoryLocalService;
354            }
355    
356            public void setWrappedService(RepositoryLocalService repositoryLocalService) {
357                    _repositoryLocalService = repositoryLocalService;
358            }
359    
360            private RepositoryLocalService _repositoryLocalService;
361    }