001    /**
002     * Copyright (c) 2000-2010 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    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the d l folder remote service. This utility wraps {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DLFolderService
032     * @see com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl
033     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl
034     * @generated
035     */
036    public class DLFolderServiceUtil {
037            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
038                    long groupId, long parentFolderId, java.lang.String name,
039                    java.lang.String description,
040                    com.liferay.portal.service.ServiceContext serviceContext)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    return getService()
044                                       .addFolder(groupId, parentFolderId, name, description,
045                            serviceContext);
046            }
047    
048            public static com.liferay.portlet.documentlibrary.model.DLFolder copyFolder(
049                    long groupId, long sourceFolderId, long parentFolderId,
050                    java.lang.String name, java.lang.String description,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException,
054                            java.rmi.RemoteException {
055                    return getService()
056                                       .copyFolder(groupId, sourceFolderId, parentFolderId, name,
057                            description, serviceContext);
058            }
059    
060            public static void deleteFolder(long folderId)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException,
063                            java.rmi.RemoteException {
064                    getService().deleteFolder(folderId);
065            }
066    
067            public static void deleteFolder(long groupId, long parentFolderId,
068                    java.lang.String name)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException,
071                            java.rmi.RemoteException {
072                    getService().deleteFolder(groupId, parentFolderId, name);
073            }
074    
075            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
076                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
077                    int start, int end)
078                    throws com.liferay.portal.kernel.exception.SystemException {
079                    return getService()
080                                       .getFileEntriesAndFileShortcuts(groupId, folderIds, status,
081                            start, end);
082            }
083    
084            public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
085                    long groupId, long folderId, int status, int start, int end)
086                    throws com.liferay.portal.kernel.exception.SystemException {
087                    return getService()
088                                       .getFileEntriesAndFileShortcuts(groupId, folderId, status,
089                            start, end);
090            }
091    
092            public static int getFileEntriesAndFileShortcutsCount(long groupId,
093                    java.util.List<java.lang.Long> folderIds, int status)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return getService()
096                                       .getFileEntriesAndFileShortcutsCount(groupId, folderIds,
097                            status);
098            }
099    
100            public static int getFileEntriesAndFileShortcutsCount(long groupId,
101                    long folderId, int status)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService()
104                                       .getFileEntriesAndFileShortcutsCount(groupId, folderId,
105                            status);
106            }
107    
108            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
109                    long folderId)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    return getService().getFolder(folderId);
113            }
114    
115            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
116                    long groupId, long parentFolderId, java.lang.String name)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return getService().getFolder(groupId, parentFolderId, name);
120            }
121    
122            public static long getFolderId(long groupId, long parentFolderId,
123                    java.lang.String name)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException {
126                    return getService().getFolderId(groupId, parentFolderId, name);
127            }
128    
129            public static long[] getFolderIds(long groupId, long folderId)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return getService().getFolderIds(groupId, folderId);
132            }
133    
134            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
135                    long groupId, long parentFolderId)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getService().getFolders(groupId, parentFolderId);
138            }
139    
140            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
141                    long groupId, long parentFolderId, int start, int end)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    return getService().getFolders(groupId, parentFolderId, start, end);
144            }
145    
146            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
147                    long groupId, java.util.List<java.lang.Long> folderIds, int status,
148                    int start, int end)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    return getService()
151                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId,
152                            folderIds, status, start, end);
153            }
154    
155            public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
156                    long groupId, long folderId, int status, int start, int end)
157                    throws com.liferay.portal.kernel.exception.PortalException,
158                            com.liferay.portal.kernel.exception.SystemException {
159                    return getService()
160                                       .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
161                            status, start, end);
162            }
163    
164            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
165                    long groupId, java.util.List<java.lang.Long> folderIds, int status)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getService()
168                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
169                            folderIds, status);
170            }
171    
172            public static int getFoldersAndFileEntriesAndFileShortcutsCount(
173                    long groupId, long folderId, int status)
174                    throws com.liferay.portal.kernel.exception.PortalException,
175                            com.liferay.portal.kernel.exception.SystemException {
176                    return getService()
177                                       .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
178                            folderId, status);
179            }
180    
181            public static int getFoldersCount(long groupId, long parentFolderId)
182                    throws com.liferay.portal.kernel.exception.SystemException {
183                    return getService().getFoldersCount(groupId, parentFolderId);
184            }
185    
186            public static void getSubfolderIds(
187                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    getService().getSubfolderIds(folderIds, groupId, folderId);
190            }
191    
192            public static void getSubfolderIds(
193                    java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
194                    boolean recurse)
195                    throws com.liferay.portal.kernel.exception.SystemException {
196                    getService().getSubfolderIds(folderIds, groupId, folderId, recurse);
197            }
198    
199            public static boolean hasInheritableLock(long folderId)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return getService().hasInheritableLock(folderId);
203            }
204    
205            public static com.liferay.portal.model.Lock lockFolder(long folderId)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException,
208                            java.rmi.RemoteException {
209                    return getService().lockFolder(folderId);
210            }
211    
212            public static com.liferay.portal.model.Lock lockFolder(long folderId,
213                    java.lang.String owner, boolean inheritable, long expirationTime)
214                    throws com.liferay.portal.kernel.exception.PortalException,
215                            com.liferay.portal.kernel.exception.SystemException,
216                            java.rmi.RemoteException {
217                    return getService()
218                                       .lockFolder(folderId, owner, inheritable, expirationTime);
219            }
220    
221            public static com.liferay.portal.model.Lock refreshFolderLock(
222                    java.lang.String lockUuid, long expirationTime)
223                    throws com.liferay.portal.kernel.exception.PortalException,
224                            com.liferay.portal.kernel.exception.SystemException {
225                    return getService().refreshFolderLock(lockUuid, expirationTime);
226            }
227    
228            public static void unlockFolder(long groupId, long folderId,
229                    java.lang.String lockUuid)
230                    throws com.liferay.portal.kernel.exception.PortalException,
231                            com.liferay.portal.kernel.exception.SystemException {
232                    getService().unlockFolder(groupId, folderId, lockUuid);
233            }
234    
235            public static void unlockFolder(long groupId, long parentFolderId,
236                    java.lang.String name, java.lang.String lockUuid)
237                    throws com.liferay.portal.kernel.exception.PortalException,
238                            com.liferay.portal.kernel.exception.SystemException {
239                    getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
240            }
241    
242            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
243                    long folderId, long parentFolderId, java.lang.String name,
244                    java.lang.String description,
245                    com.liferay.portal.service.ServiceContext serviceContext)
246                    throws com.liferay.portal.kernel.exception.PortalException,
247                            com.liferay.portal.kernel.exception.SystemException,
248                            java.rmi.RemoteException {
249                    return getService()
250                                       .updateFolder(folderId, parentFolderId, name, description,
251                            serviceContext);
252            }
253    
254            public static boolean verifyInheritableLock(long folderId,
255                    java.lang.String lockUuid)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    return getService().verifyInheritableLock(folderId, lockUuid);
259            }
260    
261            public static DLFolderService getService() {
262                    if (_service == null) {
263                            _service = (DLFolderService)PortalBeanLocatorUtil.locate(DLFolderService.class.getName());
264                    }
265    
266                    return _service;
267            }
268    
269            public void setService(DLFolderService service) {
270                    _service = service;
271            }
272    
273            private static DLFolderService _service;
274    }