Source Code Cross Referenced for DLFolderLocalServiceUtil.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » documentlibrary » service » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.documentlibrary.service 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003:         *
004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
005:         * of this software and associated documentation files (the "Software"), to deal
006:         * in the Software without restriction, including without limitation the rights
007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008:         * copies of the Software, and to permit persons to whom the Software is
009:         * furnished to do so, subject to the following conditions:
010:         *
011:         * The above copyright notice and this permission notice shall be included in
012:         * all copies or substantial portions of the Software.
013:         *
014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020:         * SOFTWARE.
021:         */package com.liferay.portlet.documentlibrary.service;
022:
023:        /**
024:         * <a href="DLFolderLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025:         *
026:         * <p>
027:         * ServiceBuilder generated this class. Modifications in this class will be
028:         * overwritten the next time is generated.
029:         * </p>
030:         *
031:         * <p>
032:         * This class provides static methods for the
033:         * <code>com.liferay.portlet.documentlibrary.service.DLFolderLocalService</code>
034:         * bean. The static methods of this class calls the same methods of the bean
035:         * instance. It's convenient to be able to just write one line to call a method
036:         * on a bean instead of writing a lookup call and a method call.
037:         * </p>
038:         *
039:         * <p>
040:         * <code>com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceFactory</code>
041:         * is responsible for the lookup of the bean.
042:         * </p>
043:         *
044:         * @author Brian Wing Shun Chan
045:         *
046:         * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalService
047:         * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceFactory
048:         *
049:         */
050:        public class DLFolderLocalServiceUtil {
051:            public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
052:                    com.liferay.portlet.documentlibrary.model.DLFolder model)
053:                    throws com.liferay.portal.SystemException {
054:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
055:                        .getService();
056:
057:                return dlFolderLocalService.addDLFolder(model);
058:            }
059:
060:            public static java.util.List dynamicQuery(
061:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062:                    throws com.liferay.portal.SystemException {
063:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
064:                        .getService();
065:
066:                return dlFolderLocalService.dynamicQuery(queryInitializer);
067:            }
068:
069:            public static java.util.List dynamicQuery(
070:                    com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071:                    int begin, int end)
072:                    throws com.liferay.portal.SystemException {
073:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
074:                        .getService();
075:
076:                return dlFolderLocalService.dynamicQuery(queryInitializer,
077:                        begin, end);
078:            }
079:
080:            public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
081:                    com.liferay.portlet.documentlibrary.model.DLFolder model)
082:                    throws com.liferay.portal.SystemException {
083:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
084:                        .getService();
085:
086:                return dlFolderLocalService.updateDLFolder(model);
087:            }
088:
089:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence() {
090:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
091:                        .getService();
092:
093:                return dlFolderLocalService.getDLFileEntryPersistence();
094:            }
095:
096:            public static void setDLFileEntryPersistence(
097:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence) {
098:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
099:                        .getService();
100:
101:                dlFolderLocalService
102:                        .setDLFileEntryPersistence(dlFileEntryPersistence);
103:            }
104:
105:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder() {
106:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
107:                        .getService();
108:
109:                return dlFolderLocalService.getDLFileEntryFinder();
110:            }
111:
112:            public static void setDLFileEntryFinder(
113:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder) {
114:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
115:                        .getService();
116:
117:                dlFolderLocalService.setDLFileEntryFinder(dlFileEntryFinder);
118:            }
119:
120:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
121:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
122:                        .getService();
123:
124:                return dlFolderLocalService.getDLFileEntryAndShortcutFinder();
125:            }
126:
127:            public static void setDLFileEntryAndShortcutFinder(
128:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
129:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
130:                        .getService();
131:
132:                dlFolderLocalService
133:                        .setDLFileEntryAndShortcutFinder(dlFileEntryAndShortcutFinder);
134:            }
135:
136:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence() {
137:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
138:                        .getService();
139:
140:                return dlFolderLocalService.getDLFileRankPersistence();
141:            }
142:
143:            public static void setDLFileRankPersistence(
144:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence) {
145:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
146:                        .getService();
147:
148:                dlFolderLocalService
149:                        .setDLFileRankPersistence(dlFileRankPersistence);
150:            }
151:
152:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder() {
153:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
154:                        .getService();
155:
156:                return dlFolderLocalService.getDLFileRankFinder();
157:            }
158:
159:            public static void setDLFileRankFinder(
160:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder) {
161:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
162:                        .getService();
163:
164:                dlFolderLocalService.setDLFileRankFinder(dlFileRankFinder);
165:            }
166:
167:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence() {
168:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
169:                        .getService();
170:
171:                return dlFolderLocalService.getDLFileShortcutPersistence();
172:            }
173:
174:            public static void setDLFileShortcutPersistence(
175:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence) {
176:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
177:                        .getService();
178:
179:                dlFolderLocalService
180:                        .setDLFileShortcutPersistence(dlFileShortcutPersistence);
181:            }
182:
183:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder() {
184:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
185:                        .getService();
186:
187:                return dlFolderLocalService.getDLFileShortcutFinder();
188:            }
189:
190:            public static void setDLFileShortcutFinder(
191:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder) {
192:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
193:                        .getService();
194:
195:                dlFolderLocalService
196:                        .setDLFileShortcutFinder(dlFileShortcutFinder);
197:            }
198:
199:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence() {
200:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
201:                        .getService();
202:
203:                return dlFolderLocalService.getDLFileVersionPersistence();
204:            }
205:
206:            public static void setDLFileVersionPersistence(
207:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence) {
208:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
209:                        .getService();
210:
211:                dlFolderLocalService
212:                        .setDLFileVersionPersistence(dlFileVersionPersistence);
213:            }
214:
215:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence() {
216:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
217:                        .getService();
218:
219:                return dlFolderLocalService.getDLFolderPersistence();
220:            }
221:
222:            public static void setDLFolderPersistence(
223:                    com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence) {
224:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
225:                        .getService();
226:
227:                dlFolderLocalService
228:                        .setDLFolderPersistence(dlFolderPersistence);
229:            }
230:
231:            public static com.liferay.portal.service.persistence.LayoutPersistence getLayoutPersistence() {
232:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
233:                        .getService();
234:
235:                return dlFolderLocalService.getLayoutPersistence();
236:            }
237:
238:            public static void setLayoutPersistence(
239:                    com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence) {
240:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
241:                        .getService();
242:
243:                dlFolderLocalService.setLayoutPersistence(layoutPersistence);
244:            }
245:
246:            public static com.liferay.portal.service.persistence.LayoutFinder getLayoutFinder() {
247:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
248:                        .getService();
249:
250:                return dlFolderLocalService.getLayoutFinder();
251:            }
252:
253:            public static void setLayoutFinder(
254:                    com.liferay.portal.service.persistence.LayoutFinder layoutFinder) {
255:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
256:                        .getService();
257:
258:                dlFolderLocalService.setLayoutFinder(layoutFinder);
259:            }
260:
261:            public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
262:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
263:                        .getService();
264:
265:                return dlFolderLocalService.getResourcePersistence();
266:            }
267:
268:            public static void setResourcePersistence(
269:                    com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
270:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
271:                        .getService();
272:
273:                dlFolderLocalService
274:                        .setResourcePersistence(resourcePersistence);
275:            }
276:
277:            public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
278:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
279:                        .getService();
280:
281:                return dlFolderLocalService.getResourceFinder();
282:            }
283:
284:            public static void setResourceFinder(
285:                    com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
286:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
287:                        .getService();
288:
289:                dlFolderLocalService.setResourceFinder(resourceFinder);
290:            }
291:
292:            public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
293:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
294:                        .getService();
295:
296:                return dlFolderLocalService.getUserPersistence();
297:            }
298:
299:            public static void setUserPersistence(
300:                    com.liferay.portal.service.persistence.UserPersistence userPersistence) {
301:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
302:                        .getService();
303:
304:                dlFolderLocalService.setUserPersistence(userPersistence);
305:            }
306:
307:            public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
308:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
309:                        .getService();
310:
311:                return dlFolderLocalService.getUserFinder();
312:            }
313:
314:            public static void setUserFinder(
315:                    com.liferay.portal.service.persistence.UserFinder userFinder) {
316:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
317:                        .getService();
318:
319:                dlFolderLocalService.setUserFinder(userFinder);
320:            }
321:
322:            public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
323:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
324:                        .getService();
325:
326:                return dlFolderLocalService.getWebDAVPropsPersistence();
327:            }
328:
329:            public static void setWebDAVPropsPersistence(
330:                    com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
331:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
332:                        .getService();
333:
334:                dlFolderLocalService
335:                        .setWebDAVPropsPersistence(webDAVPropsPersistence);
336:            }
337:
338:            public static void afterPropertiesSet() {
339:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
340:                        .getService();
341:
342:                dlFolderLocalService.afterPropertiesSet();
343:            }
344:
345:            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
346:                    long userId, long plid, long parentFolderId,
347:                    java.lang.String name, java.lang.String description,
348:                    boolean addCommunityPermissions, boolean addGuestPermissions)
349:                    throws com.liferay.portal.PortalException,
350:                    com.liferay.portal.SystemException {
351:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
352:                        .getService();
353:
354:                return dlFolderLocalService.addFolder(userId, plid,
355:                        parentFolderId, name, description,
356:                        addCommunityPermissions, addGuestPermissions);
357:            }
358:
359:            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
360:                    java.lang.String uuid, long userId, long plid,
361:                    long parentFolderId, java.lang.String name,
362:                    java.lang.String description,
363:                    boolean addCommunityPermissions, boolean addGuestPermissions)
364:                    throws com.liferay.portal.PortalException,
365:                    com.liferay.portal.SystemException {
366:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
367:                        .getService();
368:
369:                return dlFolderLocalService.addFolder(uuid, userId, plid,
370:                        parentFolderId, name, description,
371:                        addCommunityPermissions, addGuestPermissions);
372:            }
373:
374:            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
375:                    long userId, long plid, long parentFolderId,
376:                    java.lang.String name, java.lang.String description,
377:                    java.lang.String[] communityPermissions,
378:                    java.lang.String[] guestPermissions)
379:                    throws com.liferay.portal.PortalException,
380:                    com.liferay.portal.SystemException {
381:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
382:                        .getService();
383:
384:                return dlFolderLocalService.addFolder(userId, plid,
385:                        parentFolderId, name, description,
386:                        communityPermissions, guestPermissions);
387:            }
388:
389:            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
390:                    java.lang.String uuid, long userId, long plid,
391:                    long parentFolderId, java.lang.String name,
392:                    java.lang.String description,
393:                    java.lang.Boolean addCommunityPermissions,
394:                    java.lang.Boolean addGuestPermissions,
395:                    java.lang.String[] communityPermissions,
396:                    java.lang.String[] guestPermissions)
397:                    throws com.liferay.portal.PortalException,
398:                    com.liferay.portal.SystemException {
399:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
400:                        .getService();
401:
402:                return dlFolderLocalService.addFolder(uuid, userId, plid,
403:                        parentFolderId, name, description,
404:                        addCommunityPermissions, addGuestPermissions,
405:                        communityPermissions, guestPermissions);
406:            }
407:
408:            public static com.liferay.portlet.documentlibrary.model.DLFolder addFolderToGroup(
409:                    java.lang.String uuid, long userId, long groupId,
410:                    long parentFolderId, java.lang.String name,
411:                    java.lang.String description,
412:                    java.lang.Boolean addCommunityPermissions,
413:                    java.lang.Boolean addGuestPermissions,
414:                    java.lang.String[] communityPermissions,
415:                    java.lang.String[] guestPermissions)
416:                    throws com.liferay.portal.PortalException,
417:                    com.liferay.portal.SystemException {
418:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
419:                        .getService();
420:
421:                return dlFolderLocalService.addFolderToGroup(uuid, userId,
422:                        groupId, parentFolderId, name, description,
423:                        addCommunityPermissions, addGuestPermissions,
424:                        communityPermissions, guestPermissions);
425:            }
426:
427:            public static void addFolderResources(long folderId,
428:                    boolean addCommunityPermissions, boolean addGuestPermissions)
429:                    throws com.liferay.portal.PortalException,
430:                    com.liferay.portal.SystemException {
431:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
432:                        .getService();
433:
434:                dlFolderLocalService.addFolderResources(folderId,
435:                        addCommunityPermissions, addGuestPermissions);
436:            }
437:
438:            public static void addFolderResources(
439:                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
440:                    boolean addCommunityPermissions, boolean addGuestPermissions)
441:                    throws com.liferay.portal.PortalException,
442:                    com.liferay.portal.SystemException {
443:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
444:                        .getService();
445:
446:                dlFolderLocalService.addFolderResources(folder,
447:                        addCommunityPermissions, addGuestPermissions);
448:            }
449:
450:            public static void addFolderResources(long folderId,
451:                    java.lang.String[] communityPermissions,
452:                    java.lang.String[] guestPermissions)
453:                    throws com.liferay.portal.PortalException,
454:                    com.liferay.portal.SystemException {
455:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
456:                        .getService();
457:
458:                dlFolderLocalService.addFolderResources(folderId,
459:                        communityPermissions, guestPermissions);
460:            }
461:
462:            public static void addFolderResources(
463:                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
464:                    java.lang.String[] communityPermissions,
465:                    java.lang.String[] guestPermissions)
466:                    throws com.liferay.portal.PortalException,
467:                    com.liferay.portal.SystemException {
468:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
469:                        .getService();
470:
471:                dlFolderLocalService.addFolderResources(folder,
472:                        communityPermissions, guestPermissions);
473:            }
474:
475:            public static void deleteFolder(long folderId)
476:                    throws com.liferay.portal.PortalException,
477:                    com.liferay.portal.SystemException {
478:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
479:                        .getService();
480:
481:                dlFolderLocalService.deleteFolder(folderId);
482:            }
483:
484:            public static void deleteFolder(
485:                    com.liferay.portlet.documentlibrary.model.DLFolder folder)
486:                    throws com.liferay.portal.PortalException,
487:                    com.liferay.portal.SystemException {
488:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
489:                        .getService();
490:
491:                dlFolderLocalService.deleteFolder(folder);
492:            }
493:
494:            public static void deleteFolders(long groupId)
495:                    throws com.liferay.portal.PortalException,
496:                    com.liferay.portal.SystemException {
497:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
498:                        .getService();
499:
500:                dlFolderLocalService.deleteFolders(groupId);
501:            }
502:
503:            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
504:                    long folderId) throws com.liferay.portal.PortalException,
505:                    com.liferay.portal.SystemException {
506:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
507:                        .getService();
508:
509:                return dlFolderLocalService.getFolder(folderId);
510:            }
511:
512:            public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
513:                    long groupId, long parentFolderId, java.lang.String name)
514:                    throws com.liferay.portal.PortalException,
515:                    com.liferay.portal.SystemException {
516:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
517:                        .getService();
518:
519:                return dlFolderLocalService.getFolder(groupId, parentFolderId,
520:                        name);
521:            }
522:
523:            public static java.util.List getFolders(long companyId)
524:                    throws com.liferay.portal.SystemException {
525:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
526:                        .getService();
527:
528:                return dlFolderLocalService.getFolders(companyId);
529:            }
530:
531:            public static java.util.List getFolders(long groupId,
532:                    long parentFolderId)
533:                    throws com.liferay.portal.SystemException {
534:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
535:                        .getService();
536:
537:                return dlFolderLocalService.getFolders(groupId, parentFolderId);
538:            }
539:
540:            public static java.util.List getFolders(long groupId,
541:                    long parentFolderId, int begin, int end)
542:                    throws com.liferay.portal.SystemException {
543:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
544:                        .getService();
545:
546:                return dlFolderLocalService.getFolders(groupId, parentFolderId,
547:                        begin, end);
548:            }
549:
550:            public static int getFoldersCount(long groupId, long parentFolderId)
551:                    throws com.liferay.portal.SystemException {
552:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
553:                        .getService();
554:
555:                return dlFolderLocalService.getFoldersCount(groupId,
556:                        parentFolderId);
557:            }
558:
559:            public static void getSubfolderIds(java.util.List folderIds,
560:                    long groupId, long folderId)
561:                    throws com.liferay.portal.SystemException {
562:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
563:                        .getService();
564:
565:                dlFolderLocalService.getSubfolderIds(folderIds, groupId,
566:                        folderId);
567:            }
568:
569:            public static void reIndex(java.lang.String[] ids)
570:                    throws com.liferay.portal.SystemException {
571:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
572:                        .getService();
573:
574:                dlFolderLocalService.reIndex(ids);
575:            }
576:
577:            public static com.liferay.portal.kernel.search.Hits search(
578:                    long companyId, long groupId, long[] folderIds,
579:                    java.lang.String keywords)
580:                    throws com.liferay.portal.PortalException,
581:                    com.liferay.portal.SystemException {
582:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
583:                        .getService();
584:
585:                return dlFolderLocalService.search(companyId, groupId,
586:                        folderIds, keywords);
587:            }
588:
589:            public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
590:                    long folderId, long parentFolderId, java.lang.String name,
591:                    java.lang.String description)
592:                    throws com.liferay.portal.PortalException,
593:                    com.liferay.portal.SystemException {
594:                DLFolderLocalService dlFolderLocalService = DLFolderLocalServiceFactory
595:                        .getService();
596:
597:                return dlFolderLocalService.updateFolder(folderId,
598:                        parentFolderId, name, description);
599:            }
600:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.