001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link DLFileShortcutLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       DLFileShortcutLocalService
024     * @generated
025     */
026    public class DLFileShortcutLocalServiceWrapper
027            implements DLFileShortcutLocalService {
028            public DLFileShortcutLocalServiceWrapper(
029                    DLFileShortcutLocalService dlFileShortcutLocalService) {
030                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
031            }
032    
033            /**
034            * Adds the d l file shortcut to the database. Also notifies the appropriate model listeners.
035            *
036            * @param dlFileShortcut the d l file shortcut
037            * @return the d l file shortcut that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
041                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _dlFileShortcutLocalService.addDLFileShortcut(dlFileShortcut);
044            }
045    
046            /**
047            * Creates a new d l file shortcut with the primary key. Does not add the d l file shortcut to the database.
048            *
049            * @param fileShortcutId the primary key for the new d l file shortcut
050            * @return the new d l file shortcut
051            */
052            public com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
053                    long fileShortcutId) {
054                    return _dlFileShortcutLocalService.createDLFileShortcut(fileShortcutId);
055            }
056    
057            /**
058            * Deletes the d l file shortcut with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param fileShortcutId the primary key of the d l file shortcut
061            * @throws PortalException if a d l file shortcut with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteDLFileShortcut(long fileShortcutId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _dlFileShortcutLocalService.deleteDLFileShortcut(fileShortcutId);
068            }
069    
070            /**
071            * Deletes the d l file shortcut from the database. Also notifies the appropriate model listeners.
072            *
073            * @param dlFileShortcut the d l file shortcut
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteDLFileShortcut(
077                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    _dlFileShortcutLocalService.deleteDLFileShortcut(dlFileShortcut);
080            }
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException {
093                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery);
094            }
095    
096            /**
097            * Performs a dynamic query on the database and returns a range of the matching rows.
098            *
099            * <p>
100            * 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.
101            * </p>
102            *
103            * @param dynamicQuery the dynamic query
104            * @param start the lower bound of the range of model instances
105            * @param end the upper bound of the range of model instances (not inclusive)
106            * @return the range of matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112                    int end) throws com.liferay.portal.kernel.exception.SystemException {
113                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start, end);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
127            * @return the ordered range of matching rows
128            * @throws SystemException if a system exception occurred
129            */
130            @SuppressWarnings("rawtypes")
131            public java.util.List dynamicQuery(
132                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133                    int end,
134                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException {
136                    return _dlFileShortcutLocalService.dynamicQuery(dynamicQuery, start,
137                            end, orderByComparator);
138            }
139    
140            /**
141            * Returns the number of rows that match the dynamic query.
142            *
143            * @param dynamicQuery the dynamic query
144            * @return the number of rows that match the dynamic query
145            * @throws SystemException if a system exception occurred
146            */
147            public long dynamicQueryCount(
148                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return _dlFileShortcutLocalService.dynamicQueryCount(dynamicQuery);
151            }
152    
153            /**
154            * Returns the d l file shortcut with the primary key.
155            *
156            * @param fileShortcutId the primary key of the d l file shortcut
157            * @return the d l file shortcut
158            * @throws PortalException if a d l file shortcut with the primary key could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
162                    long fileShortcutId)
163                    throws com.liferay.portal.kernel.exception.PortalException,
164                            com.liferay.portal.kernel.exception.SystemException {
165                    return _dlFileShortcutLocalService.getDLFileShortcut(fileShortcutId);
166            }
167    
168            public com.liferay.portal.model.PersistedModel getPersistedModel(
169                    java.io.Serializable primaryKeyObj)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _dlFileShortcutLocalService.getPersistedModel(primaryKeyObj);
173            }
174    
175            /**
176            * Returns the d l file shortcut with the UUID in the group.
177            *
178            * @param uuid the UUID of d l file shortcut
179            * @param groupId the group id of the d l file shortcut
180            * @return the d l file shortcut
181            * @throws PortalException if a d l file shortcut with the UUID in the group could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
185                    java.lang.String uuid, long groupId)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return _dlFileShortcutLocalService.getDLFileShortcutByUuidAndGroupId(uuid,
189                            groupId);
190            }
191    
192            /**
193            * Returns a range of all the d l file shortcuts.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param start the lower bound of the range of d l file shortcuts
200            * @param end the upper bound of the range of d l file shortcuts (not inclusive)
201            * @return the range of d l file shortcuts
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _dlFileShortcutLocalService.getDLFileShortcuts(start, end);
208            }
209    
210            /**
211            * Returns the number of d l file shortcuts.
212            *
213            * @return the number of d l file shortcuts
214            * @throws SystemException if a system exception occurred
215            */
216            public int getDLFileShortcutsCount()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _dlFileShortcutLocalService.getDLFileShortcutsCount();
219            }
220    
221            /**
222            * Updates the d l file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
223            *
224            * @param dlFileShortcut the d l file shortcut
225            * @return the d l file shortcut that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
229                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut);
232            }
233    
234            /**
235            * Updates the d l file shortcut in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param dlFileShortcut the d l file shortcut
238            * @param merge whether to merge the d l file shortcut 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.
239            * @return the d l file shortcut that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
243                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
244                    boolean merge)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return _dlFileShortcutLocalService.updateDLFileShortcut(dlFileShortcut,
247                            merge);
248            }
249    
250            /**
251            * Returns the Spring bean ID for this bean.
252            *
253            * @return the Spring bean ID for this bean
254            */
255            public java.lang.String getBeanIdentifier() {
256                    return _dlFileShortcutLocalService.getBeanIdentifier();
257            }
258    
259            /**
260            * Sets the Spring bean ID for this bean.
261            *
262            * @param beanIdentifier the Spring bean ID for this bean
263            */
264            public void setBeanIdentifier(java.lang.String beanIdentifier) {
265                    _dlFileShortcutLocalService.setBeanIdentifier(beanIdentifier);
266            }
267    
268            public com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
269                    long userId, long groupId, long folderId, long toFileEntryId,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return _dlFileShortcutLocalService.addFileShortcut(userId, groupId,
274                            folderId, toFileEntryId, serviceContext);
275            }
276    
277            public void addFileShortcutResources(
278                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
279                    boolean addCommunityPermissions, boolean addGuestPermissions)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
283                            addCommunityPermissions, addGuestPermissions);
284            }
285    
286            public void addFileShortcutResources(
287                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
288                    java.lang.String[] communityPermissions,
289                    java.lang.String[] guestPermissions)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcut,
293                            communityPermissions, guestPermissions);
294            }
295    
296            public void addFileShortcutResources(long fileShortcutId,
297                    boolean addCommunityPermissions, boolean addGuestPermissions)
298                    throws com.liferay.portal.kernel.exception.PortalException,
299                            com.liferay.portal.kernel.exception.SystemException {
300                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
301                            addCommunityPermissions, addGuestPermissions);
302            }
303    
304            public void addFileShortcutResources(long fileShortcutId,
305                    java.lang.String[] communityPermissions,
306                    java.lang.String[] guestPermissions)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    _dlFileShortcutLocalService.addFileShortcutResources(fileShortcutId,
310                            communityPermissions, guestPermissions);
311            }
312    
313            public void deleteFileShortcut(
314                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcut);
318            }
319    
320            public void deleteFileShortcut(long fileShortcutId)
321                    throws com.liferay.portal.kernel.exception.PortalException,
322                            com.liferay.portal.kernel.exception.SystemException {
323                    _dlFileShortcutLocalService.deleteFileShortcut(fileShortcutId);
324            }
325    
326            public void deleteFileShortcuts(long toFileEntryId)
327                    throws com.liferay.portal.kernel.exception.PortalException,
328                            com.liferay.portal.kernel.exception.SystemException {
329                    _dlFileShortcutLocalService.deleteFileShortcuts(toFileEntryId);
330            }
331    
332            public com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
333                    long fileShortcutId)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    return _dlFileShortcutLocalService.getFileShortcut(fileShortcutId);
337            }
338    
339            public void updateAsset(long userId,
340                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
341                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _dlFileShortcutLocalService.updateAsset(userId, fileShortcut,
345                            assetCategoryIds, assetTagNames);
346            }
347    
348            public com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
349                    long userId, long fileShortcutId, long folderId, long toFileEntryId,
350                    com.liferay.portal.service.ServiceContext serviceContext)
351                    throws com.liferay.portal.kernel.exception.PortalException,
352                            com.liferay.portal.kernel.exception.SystemException {
353                    return _dlFileShortcutLocalService.updateFileShortcut(userId,
354                            fileShortcutId, folderId, toFileEntryId, serviceContext);
355            }
356    
357            public void updateFileShortcuts(long oldToFileEntryId, long newToFileEntryId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    _dlFileShortcutLocalService.updateFileShortcuts(oldToFileEntryId,
360                            newToFileEntryId);
361            }
362    
363            public DLFileShortcutLocalService getWrappedDLFileShortcutLocalService() {
364                    return _dlFileShortcutLocalService;
365            }
366    
367            public void setWrappedDLFileShortcutLocalService(
368                    DLFileShortcutLocalService dlFileShortcutLocalService) {
369                    _dlFileShortcutLocalService = dlFileShortcutLocalService;
370            }
371    
372            private DLFileShortcutLocalService _dlFileShortcutLocalService;
373    }