1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class DLFolderLocalServiceUtil {
40 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
41 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
42 throws com.liferay.portal.SystemException {
43 return getService().addDLFolder(dlFolder);
44 }
45
46 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
47 long folderId) {
48 return getService().createDLFolder(folderId);
49 }
50
51 public static void deleteDLFolder(long folderId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteDLFolder(folderId);
55 }
56
57 public static void deleteDLFolder(
58 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
59 throws com.liferay.portal.SystemException {
60 getService().deleteDLFolder(dlFolder);
61 }
62
63 public static java.util.List<Object> dynamicQuery(
64 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65 throws com.liferay.portal.SystemException {
66 return getService().dynamicQuery(dynamicQuery);
67 }
68
69 public static java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 public static java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
91 long folderId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getDLFolder(folderId);
95 }
96
97 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getDLFolders(start, end);
100 }
101
102 public static int getDLFoldersCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getDLFoldersCount();
105 }
106
107 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
108 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
109 throws com.liferay.portal.SystemException {
110 return getService().updateDLFolder(dlFolder);
111 }
112
113 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
114 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateDLFolder(dlFolder, merge);
117 }
118
119 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
120 long userId, long groupId, long parentFolderId, java.lang.String name,
121 java.lang.String description,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException {
125 return getService()
126 .addFolder(userId, groupId, parentFolderId, name,
127 description, serviceContext);
128 }
129
130 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
131 java.lang.String uuid, long userId, long groupId, long parentFolderId,
132 java.lang.String name, java.lang.String description,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addFolder(uuid, userId, groupId, parentFolderId, name,
138 description, serviceContext);
139 }
140
141 public static void addFolderResources(long folderId,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 getService()
146 .addFolderResources(folderId, addCommunityPermissions,
147 addGuestPermissions);
148 }
149
150 public static void addFolderResources(
151 com.liferay.portlet.documentlibrary.model.DLFolder folder,
152 boolean addCommunityPermissions, boolean addGuestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addFolderResources(folder, addCommunityPermissions,
157 addGuestPermissions);
158 }
159
160 public static void addFolderResources(long folderId,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addFolderResources(folderId, communityPermissions, guestPermissions);
167 }
168
169 public static void addFolderResources(
170 com.liferay.portlet.documentlibrary.model.DLFolder folder,
171 java.lang.String[] communityPermissions,
172 java.lang.String[] guestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addFolderResources(folder, communityPermissions, guestPermissions);
177 }
178
179 public static void deleteFolder(long folderId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 getService().deleteFolder(folderId);
183 }
184
185 public static void deleteFolder(
186 com.liferay.portlet.documentlibrary.model.DLFolder folder)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 getService().deleteFolder(folder);
190 }
191
192 public static void deleteFolders(long groupId)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 getService().deleteFolders(groupId);
196 }
197
198 public static java.util.List<Object> getFileEntriesAndFileShortcuts(
199 long folderId, int start, int end)
200 throws com.liferay.portal.SystemException {
201 return getService().getFileEntriesAndFileShortcuts(folderId, start, end);
202 }
203
204 public static java.util.List<Object> getFileEntriesAndFileShortcuts(
205 java.util.List<Long> folderIds, int start, int end)
206 throws com.liferay.portal.SystemException {
207 return getService().getFileEntriesAndFileShortcuts(folderIds, start, end);
208 }
209
210 public static int getFileEntriesAndFileShortcutsCount(long folderId)
211 throws com.liferay.portal.SystemException {
212 return getService().getFileEntriesAndFileShortcutsCount(folderId);
213 }
214
215 public static int getFileEntriesAndFileShortcutsCount(
216 java.util.List<Long> folderIds)
217 throws com.liferay.portal.SystemException {
218 return getService().getFileEntriesAndFileShortcutsCount(folderIds);
219 }
220
221 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
222 long folderId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 return getService().getFolder(folderId);
226 }
227
228 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
229 long groupId, long parentFolderId, java.lang.String name)
230 throws com.liferay.portal.PortalException,
231 com.liferay.portal.SystemException {
232 return getService().getFolder(groupId, parentFolderId, name);
233 }
234
235 public static java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
236 long folderId, int start, int end)
237 throws com.liferay.portal.SystemException {
238 return getService()
239 .getFoldersAndFileEntriesAndFileShortcuts(folderId, start,
240 end);
241 }
242
243 public static java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
244 java.util.List<Long> folderIds, int start, int end)
245 throws com.liferay.portal.SystemException {
246 return getService()
247 .getFoldersAndFileEntriesAndFileShortcuts(folderIds, start,
248 end);
249 }
250
251 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
252 long folderId) throws com.liferay.portal.SystemException {
253 return getService()
254 .getFoldersAndFileEntriesAndFileShortcutsCount(folderId);
255 }
256
257 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
258 java.util.List<Long> folderIds)
259 throws com.liferay.portal.SystemException {
260 return getService()
261 .getFoldersAndFileEntriesAndFileShortcutsCount(folderIds);
262 }
263
264 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
265 long companyId) throws com.liferay.portal.SystemException {
266 return getService().getFolders(companyId);
267 }
268
269 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
270 long groupId, long parentFolderId)
271 throws com.liferay.portal.SystemException {
272 return getService().getFolders(groupId, parentFolderId);
273 }
274
275 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
276 long groupId, long parentFolderId, int start, int end)
277 throws com.liferay.portal.SystemException {
278 return getService().getFolders(groupId, parentFolderId, start, end);
279 }
280
281 public static int getFoldersCount(long groupId, long parentFolderId)
282 throws com.liferay.portal.SystemException {
283 return getService().getFoldersCount(groupId, parentFolderId);
284 }
285
286 public static void getSubfolderIds(java.util.List<Long> folderIds,
287 long groupId, long folderId) throws com.liferay.portal.SystemException {
288 getService().getSubfolderIds(folderIds, groupId, folderId);
289 }
290
291 public static void reIndex(java.lang.String[] ids)
292 throws com.liferay.portal.SystemException {
293 getService().reIndex(ids);
294 }
295
296 public static com.liferay.portal.kernel.search.Hits search(long companyId,
297 long groupId, long userId, long[] folderIds, java.lang.String keywords,
298 int start, int end) throws com.liferay.portal.SystemException {
299 return getService()
300 .search(companyId, groupId, userId, folderIds, keywords,
301 start, end);
302 }
303
304 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
305 long folderId, long parentFolderId, java.lang.String name,
306 java.lang.String description,
307 com.liferay.portal.service.ServiceContext serviceContext)
308 throws com.liferay.portal.PortalException,
309 com.liferay.portal.SystemException {
310 return getService()
311 .updateFolder(folderId, parentFolderId, name, description,
312 serviceContext);
313 }
314
315 public static DLFolderLocalService getService() {
316 if (_service == null) {
317 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
318 }
319
320 return _service;
321 }
322
323 public void setService(DLFolderLocalService service) {
324 _service = service;
325 }
326
327 private static DLFolderLocalService _service;
328 }