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