001    /**
002     * Copyright (c) 2000-2010 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.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link DLFileShortcutLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       DLFileShortcutLocalService
030     * @generated
031     */
032    public class DLFileShortcutLocalServiceUtil {
033            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
034                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addDLFileShortcut(dlFileShortcut);
037            }
038    
039            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
040                    long fileShortcutId) {
041                    return getService().createDLFileShortcut(fileShortcutId);
042            }
043    
044            public static void deleteDLFileShortcut(long fileShortcutId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteDLFileShortcut(fileShortcutId);
048            }
049    
050            public static void deleteDLFileShortcut(
051                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteDLFileShortcut(dlFileShortcut);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
087                    long fileShortcutId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getDLFileShortcut(fileShortcutId);
091            }
092    
093            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
094                    java.lang.String uuid, long groupId)
095                    throws com.liferay.portal.kernel.exception.PortalException,
096                            com.liferay.portal.kernel.exception.SystemException {
097                    return getService().getDLFileShortcutByUuidAndGroupId(uuid, groupId);
098            }
099    
100            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
101                    int start, int end)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().getDLFileShortcuts(start, end);
104            }
105    
106            public static int getDLFileShortcutsCount()
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().getDLFileShortcutsCount();
109            }
110    
111            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
112                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().updateDLFileShortcut(dlFileShortcut);
115            }
116    
117            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
118                    com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
119                    boolean merge)
120                    throws com.liferay.portal.kernel.exception.SystemException {
121                    return getService().updateDLFileShortcut(dlFileShortcut, merge);
122            }
123    
124            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
125                    long userId, long groupId, long folderId, long toFolderId,
126                    java.lang.String toName,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws com.liferay.portal.kernel.exception.PortalException,
129                            com.liferay.portal.kernel.exception.SystemException {
130                    return getService()
131                                       .addFileShortcut(userId, groupId, folderId, toFolderId,
132                            toName, serviceContext);
133            }
134    
135            public static void addFileShortcutResources(
136                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
137                    boolean addCommunityPermissions, boolean addGuestPermissions)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    getService()
141                            .addFileShortcutResources(fileShortcut, addCommunityPermissions,
142                            addGuestPermissions);
143            }
144    
145            public static void addFileShortcutResources(
146                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
147                    java.lang.String[] communityPermissions,
148                    java.lang.String[] guestPermissions)
149                    throws com.liferay.portal.kernel.exception.PortalException,
150                            com.liferay.portal.kernel.exception.SystemException {
151                    getService()
152                            .addFileShortcutResources(fileShortcut, communityPermissions,
153                            guestPermissions);
154            }
155    
156            public static void addFileShortcutResources(long fileShortcutId,
157                    boolean addCommunityPermissions, boolean addGuestPermissions)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    getService()
161                            .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
162                            addGuestPermissions);
163            }
164    
165            public static void addFileShortcutResources(long fileShortcutId,
166                    java.lang.String[] communityPermissions,
167                    java.lang.String[] guestPermissions)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    getService()
171                            .addFileShortcutResources(fileShortcutId, communityPermissions,
172                            guestPermissions);
173            }
174    
175            public static void deleteFileShortcut(
176                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
177                    throws com.liferay.portal.kernel.exception.PortalException,
178                            com.liferay.portal.kernel.exception.SystemException {
179                    getService().deleteFileShortcut(fileShortcut);
180            }
181    
182            public static void deleteFileShortcut(long fileShortcutId)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    getService().deleteFileShortcut(fileShortcutId);
186            }
187    
188            public static void deleteFileShortcuts(long groupId, long toFolderId,
189                    java.lang.String toName)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    getService().deleteFileShortcuts(groupId, toFolderId, toName);
193            }
194    
195            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
196                    long fileShortcutId)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException {
199                    return getService().getFileShortcut(fileShortcutId);
200            }
201    
202            public static void updateAsset(long userId,
203                    com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
204                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException {
207                    getService()
208                            .updateAsset(userId, fileShortcut, assetCategoryIds, assetTagNames);
209            }
210    
211            public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
212                    long userId, long fileShortcutId, long folderId, long toFolderId,
213                    java.lang.String toName,
214                    com.liferay.portal.service.ServiceContext serviceContext)
215                    throws com.liferay.portal.kernel.exception.PortalException,
216                            com.liferay.portal.kernel.exception.SystemException {
217                    return getService()
218                                       .updateFileShortcut(userId, fileShortcutId, folderId,
219                            toFolderId, toName, serviceContext);
220            }
221    
222            public static void updateFileShortcuts(long groupId, long oldToFolderId,
223                    java.lang.String oldToName, long newToFolderId,
224                    java.lang.String newToName)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    getService()
227                            .updateFileShortcuts(groupId, oldToFolderId, oldToName,
228                            newToFolderId, newToName);
229            }
230    
231            public static DLFileShortcutLocalService getService() {
232                    if (_service == null) {
233                            _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
234                    }
235    
236                    return _service;
237            }
238    
239            public void setService(DLFileShortcutLocalService service) {
240                    _service = service;
241            }
242    
243            private static DLFileShortcutLocalService _service;
244    }