001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
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 boolean hasInheritableLock(long folderId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService().hasInheritableLock(folderId);
196 }
197
198 public static com.liferay.portal.model.Lock lockFolder(long folderId)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException,
201 java.rmi.RemoteException {
202 return getService().lockFolder(folderId);
203 }
204
205 public static com.liferay.portal.model.Lock lockFolder(long folderId,
206 java.lang.String owner, boolean inheritable, long expirationTime)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException,
209 java.rmi.RemoteException {
210 return getService()
211 .lockFolder(folderId, owner, inheritable, expirationTime);
212 }
213
214 public static com.liferay.portal.model.Lock refreshFolderLock(
215 java.lang.String lockUuid, long expirationTime)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException {
218 return getService().refreshFolderLock(lockUuid, expirationTime);
219 }
220
221 public static void unlockFolder(long groupId, long folderId,
222 java.lang.String lockUuid)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException {
225 getService().unlockFolder(groupId, folderId, lockUuid);
226 }
227
228 public static void unlockFolder(long groupId, long parentFolderId,
229 java.lang.String name, java.lang.String lockUuid)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 getService().unlockFolder(groupId, parentFolderId, name, lockUuid);
233 }
234
235 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
236 long folderId, long parentFolderId, java.lang.String name,
237 java.lang.String description,
238 com.liferay.portal.service.ServiceContext serviceContext)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException,
241 java.rmi.RemoteException {
242 return getService()
243 .updateFolder(folderId, parentFolderId, name, description,
244 serviceContext);
245 }
246
247 public static boolean verifyInheritableLock(long folderId,
248 java.lang.String lockUuid)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException {
251 return getService().verifyInheritableLock(folderId, lockUuid);
252 }
253
254 public static DLFolderService getService() {
255 if (_service == null) {
256 _service = (DLFolderService)PortalBeanLocatorUtil.locate(DLFolderService.class.getName());
257 }
258
259 return _service;
260 }
261
262 public void setService(DLFolderService service) {
263 _service = service;
264 }
265
266 private static DLFolderService _service;
267 }