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.portlet.documentlibrary.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link DLContentLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       DLContentLocalService
026     * @generated
027     */
028    public class DLContentLocalServiceWrapper implements DLContentLocalService,
029            ServiceWrapper<DLContentLocalService> {
030            public DLContentLocalServiceWrapper(
031                    DLContentLocalService dlContentLocalService) {
032                    _dlContentLocalService = dlContentLocalService;
033            }
034    
035            /**
036            * Adds the document library content to the database. Also notifies the appropriate model listeners.
037            *
038            * @param dlContent the document library content
039            * @return the document library content that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.documentlibrary.model.DLContent addDLContent(
043                    com.liferay.portlet.documentlibrary.model.DLContent dlContent)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _dlContentLocalService.addDLContent(dlContent);
046            }
047    
048            /**
049            * Creates a new document library content with the primary key. Does not add the document library content to the database.
050            *
051            * @param contentId the primary key for the new document library content
052            * @return the new document library content
053            */
054            public com.liferay.portlet.documentlibrary.model.DLContent createDLContent(
055                    long contentId) {
056                    return _dlContentLocalService.createDLContent(contentId);
057            }
058    
059            /**
060            * Deletes the document library content with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param contentId the primary key of the document library content
063            * @return the document library content that was removed
064            * @throws PortalException if a document library content with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
068                    long contentId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _dlContentLocalService.deleteDLContent(contentId);
072            }
073    
074            /**
075            * Deletes the document library content from the database. Also notifies the appropriate model listeners.
076            *
077            * @param dlContent the document library content
078            * @return the document library content that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.documentlibrary.model.DLContent deleteDLContent(
082                    com.liferay.portlet.documentlibrary.model.DLContent dlContent)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _dlContentLocalService.deleteDLContent(dlContent);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _dlContentLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _dlContentLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.portlet.documentlibrary.model.impl.DLContentModelImpl}. 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _dlContentLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.portlet.documentlibrary.model.impl.DLContentModelImpl}. 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _dlContentLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _dlContentLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.documentlibrary.model.DLContent fetchDLContent(
163                    long contentId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _dlContentLocalService.fetchDLContent(contentId);
166            }
167    
168            /**
169            * Returns the document library content with the primary key.
170            *
171            * @param contentId the primary key of the document library content
172            * @return the document library content
173            * @throws PortalException if a document library content with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.documentlibrary.model.DLContent getDLContent(
177                    long contentId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _dlContentLocalService.getDLContent(contentId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _dlContentLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the document library contents.
192            *
193            * <p>
194            * 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.portlet.documentlibrary.model.impl.DLContentModelImpl}. 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of document library contents
198            * @param end the upper bound of the range of document library contents (not inclusive)
199            * @return the range of document library contents
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getDLContents(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _dlContentLocalService.getDLContents(start, end);
206            }
207    
208            /**
209            * Returns the number of document library contents.
210            *
211            * @return the number of document library contents
212            * @throws SystemException if a system exception occurred
213            */
214            public int getDLContentsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _dlContentLocalService.getDLContentsCount();
217            }
218    
219            /**
220            * Updates the document library content in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param dlContent the document library content
223            * @return the document library content that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.documentlibrary.model.DLContent updateDLContent(
227                    com.liferay.portlet.documentlibrary.model.DLContent dlContent)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _dlContentLocalService.updateDLContent(dlContent);
230            }
231    
232            public com.liferay.portlet.documentlibrary.model.DLContentDataBlobModel getDataBlobModel(
233                    java.io.Serializable primaryKey)
234                    throws com.liferay.portal.kernel.exception.SystemException {
235                    return _dlContentLocalService.getDataBlobModel(primaryKey);
236            }
237    
238            /**
239            * Returns the Spring bean ID for this bean.
240            *
241            * @return the Spring bean ID for this bean
242            */
243            public java.lang.String getBeanIdentifier() {
244                    return _dlContentLocalService.getBeanIdentifier();
245            }
246    
247            /**
248            * Sets the Spring bean ID for this bean.
249            *
250            * @param beanIdentifier the Spring bean ID for this bean
251            */
252            public void setBeanIdentifier(java.lang.String beanIdentifier) {
253                    _dlContentLocalService.setBeanIdentifier(beanIdentifier);
254            }
255    
256            public com.liferay.portlet.documentlibrary.model.DLContent addContent(
257                    long companyId, long repositoryId, java.lang.String path,
258                    java.lang.String version, byte[] bytes)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _dlContentLocalService.addContent(companyId, repositoryId, path,
261                            version, bytes);
262            }
263    
264            public com.liferay.portlet.documentlibrary.model.DLContent addContent(
265                    long companyId, long repositoryId, java.lang.String path,
266                    java.lang.String version, java.io.InputStream inputStream, long size)
267                    throws com.liferay.portal.kernel.exception.SystemException {
268                    return _dlContentLocalService.addContent(companyId, repositoryId, path,
269                            version, inputStream, size);
270            }
271    
272            public void deleteContent(long companyId, long repositoryId,
273                    java.lang.String path, java.lang.String version)
274                    throws com.liferay.portal.kernel.exception.PortalException,
275                            com.liferay.portal.kernel.exception.SystemException {
276                    _dlContentLocalService.deleteContent(companyId, repositoryId, path,
277                            version);
278            }
279    
280            public void deleteContents(long companyId, long repositoryId,
281                    java.lang.String path)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    _dlContentLocalService.deleteContents(companyId, repositoryId, path);
284            }
285    
286            public void deleteContentsByDirectory(long companyId, long repositoryId,
287                    java.lang.String dirName)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _dlContentLocalService.deleteContentsByDirectory(companyId,
290                            repositoryId, dirName);
291            }
292    
293            public com.liferay.portlet.documentlibrary.model.DLContent getContent(
294                    long companyId, long repositoryId, java.lang.String path)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.documentlibrary.NoSuchContentException {
297                    return _dlContentLocalService.getContent(companyId, repositoryId, path);
298            }
299    
300            public com.liferay.portlet.documentlibrary.model.DLContent getContent(
301                    long companyId, long repositoryId, java.lang.String path,
302                    java.lang.String version)
303                    throws com.liferay.portal.kernel.exception.SystemException,
304                            com.liferay.portlet.documentlibrary.NoSuchContentException {
305                    return _dlContentLocalService.getContent(companyId, repositoryId, path,
306                            version);
307            }
308    
309            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
310                    long companyId, long repositoryId)
311                    throws com.liferay.portal.kernel.exception.SystemException {
312                    return _dlContentLocalService.getContents(companyId, repositoryId);
313            }
314    
315            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContents(
316                    long companyId, long repositoryId, java.lang.String path)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _dlContentLocalService.getContents(companyId, repositoryId, path);
319            }
320    
321            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> getContentsByDirectory(
322                    long companyId, long repositoryId, java.lang.String dirName)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _dlContentLocalService.getContentsByDirectory(companyId,
325                            repositoryId, dirName);
326            }
327    
328            public boolean hasContent(long companyId, long repositoryId,
329                    java.lang.String path, java.lang.String version)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    return _dlContentLocalService.hasContent(companyId, repositoryId, path,
332                            version);
333            }
334    
335            public void updateDLContent(long companyId, long oldRepositoryId,
336                    long newRepositoryId, java.lang.String oldPath, java.lang.String newPath)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    _dlContentLocalService.updateDLContent(companyId, oldRepositoryId,
339                            newRepositoryId, oldPath, newPath);
340            }
341    
342            /**
343             * @deprecated Renamed to {@link #getWrappedService}
344             */
345            public DLContentLocalService getWrappedDLContentLocalService() {
346                    return _dlContentLocalService;
347            }
348    
349            /**
350             * @deprecated Renamed to {@link #setWrappedService}
351             */
352            public void setWrappedDLContentLocalService(
353                    DLContentLocalService dlContentLocalService) {
354                    _dlContentLocalService = dlContentLocalService;
355            }
356    
357            public DLContentLocalService getWrappedService() {
358                    return _dlContentLocalService;
359            }
360    
361            public void setWrappedService(DLContentLocalService dlContentLocalService) {
362                    _dlContentLocalService = dlContentLocalService;
363            }
364    
365            private DLContentLocalService _dlContentLocalService;
366    }