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