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.
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            * Updates the repository in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
248            *
249            * @param repository the repository
250            * @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.
251            * @return the repository that was updated
252            * @throws SystemException if a system exception occurred
253            */
254            public com.liferay.portal.model.Repository updateRepository(
255                    com.liferay.portal.model.Repository repository, boolean merge)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    return _repositoryLocalService.updateRepository(repository, merge);
258            }
259    
260            /**
261            * Returns the Spring bean ID for this bean.
262            *
263            * @return the Spring bean ID for this bean
264            */
265            public java.lang.String getBeanIdentifier() {
266                    return _repositoryLocalService.getBeanIdentifier();
267            }
268    
269            /**
270            * Sets the Spring bean ID for this bean.
271            *
272            * @param beanIdentifier the Spring bean ID for this bean
273            */
274            public void setBeanIdentifier(java.lang.String beanIdentifier) {
275                    _repositoryLocalService.setBeanIdentifier(beanIdentifier);
276            }
277    
278            public long addRepository(long userId, long groupId, long classNameId,
279                    long parentFolderId, java.lang.String name,
280                    java.lang.String description, java.lang.String portletId,
281                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
282                    com.liferay.portal.service.ServiceContext serviceContext)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    return _repositoryLocalService.addRepository(userId, groupId,
286                            classNameId, parentFolderId, name, description, portletId,
287                            typeSettingsProperties, serviceContext);
288            }
289    
290            public void checkRepository(long repositoryId)
291                    throws com.liferay.portal.kernel.exception.SystemException {
292                    _repositoryLocalService.checkRepository(repositoryId);
293            }
294    
295            public void deleteRepositories(long groupId)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _repositoryLocalService.deleteRepositories(groupId);
299            }
300    
301            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
302                    long repositoryId)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    return _repositoryLocalService.getLocalRepositoryImpl(repositoryId);
306            }
307    
308            public com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
309                    long folderId, long fileEntryId, long fileVersionId)
310                    throws com.liferay.portal.kernel.exception.PortalException,
311                            com.liferay.portal.kernel.exception.SystemException {
312                    return _repositoryLocalService.getLocalRepositoryImpl(folderId,
313                            fileEntryId, fileVersionId);
314            }
315    
316            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
317                    long repositoryId)
318                    throws com.liferay.portal.kernel.exception.PortalException,
319                            com.liferay.portal.kernel.exception.SystemException {
320                    return _repositoryLocalService.getRepositoryImpl(repositoryId);
321            }
322    
323            public com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
324                    long folderId, long fileEntryId, long fileVersionId)
325                    throws com.liferay.portal.kernel.exception.PortalException,
326                            com.liferay.portal.kernel.exception.SystemException {
327                    return _repositoryLocalService.getRepositoryImpl(folderId, fileEntryId,
328                            fileVersionId);
329            }
330    
331            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
332                    long repositoryId)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _repositoryLocalService.getTypeSettingsProperties(repositoryId);
336            }
337    
338            public void updateRepository(long repositoryId, java.lang.String name,
339                    java.lang.String description)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException {
342                    _repositoryLocalService.updateRepository(repositoryId, name, description);
343            }
344    
345            /**
346             * @deprecated Renamed to {@link #getWrappedService}
347             */
348            public RepositoryLocalService getWrappedRepositoryLocalService() {
349                    return _repositoryLocalService;
350            }
351    
352            /**
353             * @deprecated Renamed to {@link #setWrappedService}
354             */
355            public void setWrappedRepositoryLocalService(
356                    RepositoryLocalService repositoryLocalService) {
357                    _repositoryLocalService = repositoryLocalService;
358            }
359    
360            public RepositoryLocalService getWrappedService() {
361                    return _repositoryLocalService;
362            }
363    
364            public void setWrappedService(RepositoryLocalService repositoryLocalService) {
365                    _repositoryLocalService = repositoryLocalService;
366            }
367    
368            private RepositoryLocalService _repositoryLocalService;
369    }