Source Code Cross Referenced for DLFileEntryLocalServiceUtil.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="DLFileEntryLocalServiceUtil.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.DLFileEntryLocalService</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.DLFileEntryLocalServiceFactory</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.DLFileEntryLocalService
047:         * @see com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceFactory
048:         *
049:         */
050:        public class DLFileEntryLocalServiceUtil {
051:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
052:                    com.liferay.portlet.documentlibrary.model.DLFileEntry model)
053:                    throws com.liferay.portal.SystemException {
054:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
055:                        .getService();
056:
057:                return dlFileEntryLocalService.addDLFileEntry(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:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
064:                        .getService();
065:
066:                return dlFileEntryLocalService.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:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
074:                        .getService();
075:
076:                return dlFileEntryLocalService.dynamicQuery(queryInitializer,
077:                        begin, end);
078:            }
079:
080:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
081:                    com.liferay.portlet.documentlibrary.model.DLFileEntry model)
082:                    throws com.liferay.portal.SystemException {
083:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
084:                        .getService();
085:
086:                return dlFileEntryLocalService.updateDLFileEntry(model);
087:            }
088:
089:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence() {
090:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
091:                        .getService();
092:
093:                return dlFileEntryLocalService.getDLFileEntryPersistence();
094:            }
095:
096:            public static void setDLFileEntryPersistence(
097:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence) {
098:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
099:                        .getService();
100:
101:                dlFileEntryLocalService
102:                        .setDLFileEntryPersistence(dlFileEntryPersistence);
103:            }
104:
105:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder() {
106:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
107:                        .getService();
108:
109:                return dlFileEntryLocalService.getDLFileEntryFinder();
110:            }
111:
112:            public static void setDLFileEntryFinder(
113:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder) {
114:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
115:                        .getService();
116:
117:                dlFileEntryLocalService.setDLFileEntryFinder(dlFileEntryFinder);
118:            }
119:
120:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
121:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
122:                        .getService();
123:
124:                return dlFileEntryLocalService
125:                        .getDLFileEntryAndShortcutFinder();
126:            }
127:
128:            public static void setDLFileEntryAndShortcutFinder(
129:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
130:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
131:                        .getService();
132:
133:                dlFileEntryLocalService
134:                        .setDLFileEntryAndShortcutFinder(dlFileEntryAndShortcutFinder);
135:            }
136:
137:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence() {
138:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
139:                        .getService();
140:
141:                return dlFileEntryLocalService.getDLFileRankPersistence();
142:            }
143:
144:            public static void setDLFileRankPersistence(
145:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence) {
146:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
147:                        .getService();
148:
149:                dlFileEntryLocalService
150:                        .setDLFileRankPersistence(dlFileRankPersistence);
151:            }
152:
153:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder() {
154:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
155:                        .getService();
156:
157:                return dlFileEntryLocalService.getDLFileRankFinder();
158:            }
159:
160:            public static void setDLFileRankFinder(
161:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder) {
162:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
163:                        .getService();
164:
165:                dlFileEntryLocalService.setDLFileRankFinder(dlFileRankFinder);
166:            }
167:
168:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence() {
169:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
170:                        .getService();
171:
172:                return dlFileEntryLocalService.getDLFileShortcutPersistence();
173:            }
174:
175:            public static void setDLFileShortcutPersistence(
176:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence) {
177:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
178:                        .getService();
179:
180:                dlFileEntryLocalService
181:                        .setDLFileShortcutPersistence(dlFileShortcutPersistence);
182:            }
183:
184:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder() {
185:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
186:                        .getService();
187:
188:                return dlFileEntryLocalService.getDLFileShortcutFinder();
189:            }
190:
191:            public static void setDLFileShortcutFinder(
192:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder) {
193:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
194:                        .getService();
195:
196:                dlFileEntryLocalService
197:                        .setDLFileShortcutFinder(dlFileShortcutFinder);
198:            }
199:
200:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence() {
201:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
202:                        .getService();
203:
204:                return dlFileEntryLocalService.getDLFileVersionPersistence();
205:            }
206:
207:            public static void setDLFileVersionPersistence(
208:                    com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence) {
209:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
210:                        .getService();
211:
212:                dlFileEntryLocalService
213:                        .setDLFileVersionPersistence(dlFileVersionPersistence);
214:            }
215:
216:            public static com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence() {
217:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
218:                        .getService();
219:
220:                return dlFileEntryLocalService.getDLFolderPersistence();
221:            }
222:
223:            public static void setDLFolderPersistence(
224:                    com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence) {
225:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
226:                        .getService();
227:
228:                dlFileEntryLocalService
229:                        .setDLFolderPersistence(dlFolderPersistence);
230:            }
231:
232:            public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
233:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
234:                        .getService();
235:
236:                return dlFileEntryLocalService.getResourcePersistence();
237:            }
238:
239:            public static void setResourcePersistence(
240:                    com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
241:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
242:                        .getService();
243:
244:                dlFileEntryLocalService
245:                        .setResourcePersistence(resourcePersistence);
246:            }
247:
248:            public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
249:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
250:                        .getService();
251:
252:                return dlFileEntryLocalService.getResourceFinder();
253:            }
254:
255:            public static void setResourceFinder(
256:                    com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
257:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
258:                        .getService();
259:
260:                dlFileEntryLocalService.setResourceFinder(resourceFinder);
261:            }
262:
263:            public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
264:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
265:                        .getService();
266:
267:                return dlFileEntryLocalService.getUserPersistence();
268:            }
269:
270:            public static void setUserPersistence(
271:                    com.liferay.portal.service.persistence.UserPersistence userPersistence) {
272:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
273:                        .getService();
274:
275:                dlFileEntryLocalService.setUserPersistence(userPersistence);
276:            }
277:
278:            public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
279:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
280:                        .getService();
281:
282:                return dlFileEntryLocalService.getUserFinder();
283:            }
284:
285:            public static void setUserFinder(
286:                    com.liferay.portal.service.persistence.UserFinder userFinder) {
287:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
288:                        .getService();
289:
290:                dlFileEntryLocalService.setUserFinder(userFinder);
291:            }
292:
293:            public static com.liferay.portal.service.persistence.WebDAVPropsPersistence getWebDAVPropsPersistence() {
294:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
295:                        .getService();
296:
297:                return dlFileEntryLocalService.getWebDAVPropsPersistence();
298:            }
299:
300:            public static void setWebDAVPropsPersistence(
301:                    com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence) {
302:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
303:                        .getService();
304:
305:                dlFileEntryLocalService
306:                        .setWebDAVPropsPersistence(webDAVPropsPersistence);
307:            }
308:
309:            public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
310:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
311:                        .getService();
312:
313:                return dlFileEntryLocalService.getMBMessagePersistence();
314:            }
315:
316:            public static void setMBMessagePersistence(
317:                    com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
318:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
319:                        .getService();
320:
321:                dlFileEntryLocalService
322:                        .setMBMessagePersistence(mbMessagePersistence);
323:            }
324:
325:            public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
326:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
327:                        .getService();
328:
329:                return dlFileEntryLocalService.getMBMessageFinder();
330:            }
331:
332:            public static void setMBMessageFinder(
333:                    com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
334:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
335:                        .getService();
336:
337:                dlFileEntryLocalService.setMBMessageFinder(mbMessageFinder);
338:            }
339:
340:            public static com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence getRatingsStatsPersistence() {
341:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
342:                        .getService();
343:
344:                return dlFileEntryLocalService.getRatingsStatsPersistence();
345:            }
346:
347:            public static void setRatingsStatsPersistence(
348:                    com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence ratingsStatsPersistence) {
349:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
350:                        .getService();
351:
352:                dlFileEntryLocalService
353:                        .setRatingsStatsPersistence(ratingsStatsPersistence);
354:            }
355:
356:            public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
357:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
358:                        .getService();
359:
360:                return dlFileEntryLocalService.getTagsAssetPersistence();
361:            }
362:
363:            public static void setTagsAssetPersistence(
364:                    com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
365:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
366:                        .getService();
367:
368:                dlFileEntryLocalService
369:                        .setTagsAssetPersistence(tagsAssetPersistence);
370:            }
371:
372:            public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
373:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
374:                        .getService();
375:
376:                return dlFileEntryLocalService.getTagsAssetFinder();
377:            }
378:
379:            public static void setTagsAssetFinder(
380:                    com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
381:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
382:                        .getService();
383:
384:                dlFileEntryLocalService.setTagsAssetFinder(tagsAssetFinder);
385:            }
386:
387:            public static void afterPropertiesSet() {
388:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
389:                        .getService();
390:
391:                dlFileEntryLocalService.afterPropertiesSet();
392:            }
393:
394:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
395:                    long userId, long folderId, java.lang.String name,
396:                    java.lang.String title, java.lang.String description,
397:                    java.lang.String[] tagsEntries,
398:                    java.lang.String extraSettings, java.io.File file,
399:                    boolean addCommunityPermissions, boolean addGuestPermissions)
400:                    throws com.liferay.portal.PortalException,
401:                    com.liferay.portal.SystemException {
402:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
403:                        .getService();
404:
405:                return dlFileEntryLocalService.addFileEntry(userId, folderId,
406:                        name, title, description, tagsEntries, extraSettings,
407:                        file, addCommunityPermissions, addGuestPermissions);
408:            }
409:
410:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
411:                    long userId, long folderId, java.lang.String name,
412:                    java.lang.String title, java.lang.String description,
413:                    java.lang.String[] tagsEntries,
414:                    java.lang.String extraSettings, byte[] byteArray,
415:                    boolean addCommunityPermissions, boolean addGuestPermissions)
416:                    throws com.liferay.portal.PortalException,
417:                    com.liferay.portal.SystemException {
418:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
419:                        .getService();
420:
421:                return dlFileEntryLocalService
422:                        .addFileEntry(userId, folderId, name, title,
423:                                description, tagsEntries, extraSettings,
424:                                byteArray, addCommunityPermissions,
425:                                addGuestPermissions);
426:            }
427:
428:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
429:                    java.lang.String uuid, long userId, long folderId,
430:                    java.lang.String name, java.lang.String title,
431:                    java.lang.String description,
432:                    java.lang.String[] tagsEntries,
433:                    java.lang.String extraSettings, byte[] byteArray,
434:                    boolean addCommunityPermissions, boolean addGuestPermissions)
435:                    throws com.liferay.portal.PortalException,
436:                    com.liferay.portal.SystemException {
437:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
438:                        .getService();
439:
440:                return dlFileEntryLocalService.addFileEntry(uuid, userId,
441:                        folderId, name, title, description, tagsEntries,
442:                        extraSettings, byteArray, addCommunityPermissions,
443:                        addGuestPermissions);
444:            }
445:
446:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
447:                    long userId, long folderId, java.lang.String name,
448:                    java.lang.String title, java.lang.String description,
449:                    java.lang.String[] tagsEntries,
450:                    java.lang.String extraSettings, java.io.File file,
451:                    java.lang.String[] communityPermissions,
452:                    java.lang.String[] guestPermissions)
453:                    throws com.liferay.portal.PortalException,
454:                    com.liferay.portal.SystemException {
455:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
456:                        .getService();
457:
458:                return dlFileEntryLocalService.addFileEntry(userId, folderId,
459:                        name, title, description, tagsEntries, extraSettings,
460:                        file, communityPermissions, guestPermissions);
461:            }
462:
463:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
464:                    long userId, long folderId, java.lang.String name,
465:                    java.lang.String title, java.lang.String description,
466:                    java.lang.String[] tagsEntries,
467:                    java.lang.String extraSettings, byte[] byteArray,
468:                    java.lang.String[] communityPermissions,
469:                    java.lang.String[] guestPermissions)
470:                    throws com.liferay.portal.PortalException,
471:                    com.liferay.portal.SystemException {
472:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
473:                        .getService();
474:
475:                return dlFileEntryLocalService.addFileEntry(userId, folderId,
476:                        name, title, description, tagsEntries, extraSettings,
477:                        byteArray, communityPermissions, guestPermissions);
478:            }
479:
480:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
481:                    long userId, long folderId, java.lang.String name,
482:                    java.lang.String title, java.lang.String description,
483:                    java.lang.String[] tagsEntries,
484:                    java.lang.String extraSettings, java.io.File file,
485:                    java.lang.Boolean addCommunityPermissions,
486:                    java.lang.Boolean addGuestPermissions,
487:                    java.lang.String[] communityPermissions,
488:                    java.lang.String[] guestPermissions)
489:                    throws com.liferay.portal.PortalException,
490:                    com.liferay.portal.SystemException {
491:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
492:                        .getService();
493:
494:                return dlFileEntryLocalService.addFileEntry(userId, folderId,
495:                        name, title, description, tagsEntries, extraSettings,
496:                        file, addCommunityPermissions, addGuestPermissions,
497:                        communityPermissions, guestPermissions);
498:            }
499:
500:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
501:                    java.lang.String uuid, long userId, long folderId,
502:                    java.lang.String name, java.lang.String title,
503:                    java.lang.String description,
504:                    java.lang.String[] tagsEntries,
505:                    java.lang.String extraSettings, byte[] byteArray,
506:                    java.lang.Boolean addCommunityPermissions,
507:                    java.lang.Boolean addGuestPermissions,
508:                    java.lang.String[] communityPermissions,
509:                    java.lang.String[] guestPermissions)
510:                    throws com.liferay.portal.PortalException,
511:                    com.liferay.portal.SystemException {
512:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
513:                        .getService();
514:
515:                return dlFileEntryLocalService.addFileEntry(uuid, userId,
516:                        folderId, name, title, description, tagsEntries,
517:                        extraSettings, byteArray, addCommunityPermissions,
518:                        addGuestPermissions, communityPermissions,
519:                        guestPermissions);
520:            }
521:
522:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
523:                    java.lang.String uuid, long userId, long folderId,
524:                    java.lang.String name, java.lang.String title,
525:                    java.lang.String description,
526:                    java.lang.String[] tagsEntries,
527:                    java.lang.String extraSettings, java.io.InputStream is,
528:                    long size, java.lang.Boolean addCommunityPermissions,
529:                    java.lang.Boolean addGuestPermissions,
530:                    java.lang.String[] communityPermissions,
531:                    java.lang.String[] guestPermissions)
532:                    throws com.liferay.portal.PortalException,
533:                    com.liferay.portal.SystemException {
534:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
535:                        .getService();
536:
537:                return dlFileEntryLocalService.addFileEntry(uuid, userId,
538:                        folderId, name, title, description, tagsEntries,
539:                        extraSettings, is, size, addCommunityPermissions,
540:                        addGuestPermissions, communityPermissions,
541:                        guestPermissions);
542:            }
543:
544:            public static void addFileEntryResources(long folderId,
545:                    java.lang.String name, boolean addCommunityPermissions,
546:                    boolean addGuestPermissions)
547:                    throws com.liferay.portal.PortalException,
548:                    com.liferay.portal.SystemException {
549:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
550:                        .getService();
551:
552:                dlFileEntryLocalService.addFileEntryResources(folderId, name,
553:                        addCommunityPermissions, addGuestPermissions);
554:            }
555:
556:            public static void addFileEntryResources(
557:                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
558:                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
559:                    boolean addCommunityPermissions, boolean addGuestPermissions)
560:                    throws com.liferay.portal.PortalException,
561:                    com.liferay.portal.SystemException {
562:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
563:                        .getService();
564:
565:                dlFileEntryLocalService
566:                        .addFileEntryResources(folder, fileEntry,
567:                                addCommunityPermissions, addGuestPermissions);
568:            }
569:
570:            public static void addFileEntryResources(long folderId,
571:                    java.lang.String name,
572:                    java.lang.String[] communityPermissions,
573:                    java.lang.String[] guestPermissions)
574:                    throws com.liferay.portal.PortalException,
575:                    com.liferay.portal.SystemException {
576:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
577:                        .getService();
578:
579:                dlFileEntryLocalService.addFileEntryResources(folderId, name,
580:                        communityPermissions, guestPermissions);
581:            }
582:
583:            public static void addFileEntryResources(
584:                    com.liferay.portlet.documentlibrary.model.DLFolder folder,
585:                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
586:                    java.lang.String[] communityPermissions,
587:                    java.lang.String[] guestPermissions)
588:                    throws com.liferay.portal.PortalException,
589:                    com.liferay.portal.SystemException {
590:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
591:                        .getService();
592:
593:                dlFileEntryLocalService.addFileEntryResources(folder,
594:                        fileEntry, communityPermissions, guestPermissions);
595:            }
596:
597:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
598:                    long userId, long folderId, java.lang.String name,
599:                    java.lang.String sourceName, java.lang.String title,
600:                    java.lang.String description,
601:                    java.lang.String[] tagsEntries,
602:                    java.lang.String extraSettings, java.io.File file,
603:                    boolean addCommunityPermissions, boolean addGuestPermissions)
604:                    throws com.liferay.portal.PortalException,
605:                    com.liferay.portal.SystemException {
606:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
607:                        .getService();
608:
609:                return dlFileEntryLocalService.addOrOverwriteFileEntry(userId,
610:                        folderId, name, sourceName, title, description,
611:                        tagsEntries, extraSettings, file,
612:                        addCommunityPermissions, addGuestPermissions);
613:            }
614:
615:            public static void deleteFileEntries(long folderId)
616:                    throws com.liferay.portal.PortalException,
617:                    com.liferay.portal.SystemException {
618:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
619:                        .getService();
620:
621:                dlFileEntryLocalService.deleteFileEntries(folderId);
622:            }
623:
624:            public static void deleteFileEntry(long folderId,
625:                    java.lang.String name)
626:                    throws com.liferay.portal.PortalException,
627:                    com.liferay.portal.SystemException {
628:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
629:                        .getService();
630:
631:                dlFileEntryLocalService.deleteFileEntry(folderId, name);
632:            }
633:
634:            public static void deleteFileEntry(long folderId,
635:                    java.lang.String name, double version)
636:                    throws com.liferay.portal.PortalException,
637:                    com.liferay.portal.SystemException {
638:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
639:                        .getService();
640:
641:                dlFileEntryLocalService
642:                        .deleteFileEntry(folderId, name, version);
643:            }
644:
645:            public static void deleteFileEntry(
646:                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
647:                    throws com.liferay.portal.PortalException,
648:                    com.liferay.portal.SystemException {
649:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
650:                        .getService();
651:
652:                dlFileEntryLocalService.deleteFileEntry(fileEntry);
653:            }
654:
655:            public static java.util.List getCompanyFileEntries(long companyId,
656:                    int begin, int end)
657:                    throws com.liferay.portal.SystemException {
658:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
659:                        .getService();
660:
661:                return dlFileEntryLocalService.getCompanyFileEntries(companyId,
662:                        begin, end);
663:            }
664:
665:            public static java.util.List getCompanyFileEntries(long companyId,
666:                    int begin, int end,
667:                    com.liferay.portal.kernel.util.OrderByComparator obc)
668:                    throws com.liferay.portal.SystemException {
669:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
670:                        .getService();
671:
672:                return dlFileEntryLocalService.getCompanyFileEntries(companyId,
673:                        begin, end, obc);
674:            }
675:
676:            public static int getCompanyFileEntriesCount(long companyId)
677:                    throws com.liferay.portal.SystemException {
678:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
679:                        .getService();
680:
681:                return dlFileEntryLocalService
682:                        .getCompanyFileEntriesCount(companyId);
683:            }
684:
685:            public static java.io.InputStream getFileAsStream(long companyId,
686:                    long userId, long folderId, java.lang.String name)
687:                    throws com.liferay.portal.PortalException,
688:                    com.liferay.portal.SystemException {
689:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
690:                        .getService();
691:
692:                return dlFileEntryLocalService.getFileAsStream(companyId,
693:                        userId, folderId, name);
694:            }
695:
696:            public static java.io.InputStream getFileAsStream(long companyId,
697:                    long userId, long folderId, java.lang.String name,
698:                    double version) throws com.liferay.portal.PortalException,
699:                    com.liferay.portal.SystemException {
700:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
701:                        .getService();
702:
703:                return dlFileEntryLocalService.getFileAsStream(companyId,
704:                        userId, folderId, name, version);
705:            }
706:
707:            public static java.util.List getFileEntries(long folderId)
708:                    throws com.liferay.portal.SystemException {
709:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
710:                        .getService();
711:
712:                return dlFileEntryLocalService.getFileEntries(folderId);
713:            }
714:
715:            public static java.util.List getFileEntries(long folderId,
716:                    int begin, int end)
717:                    throws com.liferay.portal.SystemException {
718:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
719:                        .getService();
720:
721:                return dlFileEntryLocalService.getFileEntries(folderId, begin,
722:                        end);
723:            }
724:
725:            public static java.util.List getFileEntries(long folderId,
726:                    int begin, int end,
727:                    com.liferay.portal.kernel.util.OrderByComparator obc)
728:                    throws com.liferay.portal.SystemException {
729:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
730:                        .getService();
731:
732:                return dlFileEntryLocalService.getFileEntries(folderId, begin,
733:                        end, obc);
734:            }
735:
736:            public static java.util.List getFileEntriesAndShortcuts(
737:                    long folderId, int begin, int end)
738:                    throws com.liferay.portal.SystemException {
739:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
740:                        .getService();
741:
742:                return dlFileEntryLocalService.getFileEntriesAndShortcuts(
743:                        folderId, begin, end);
744:            }
745:
746:            public static java.util.List getFileEntriesAndShortcuts(
747:                    java.util.List folderIds, int begin, int end)
748:                    throws com.liferay.portal.SystemException {
749:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
750:                        .getService();
751:
752:                return dlFileEntryLocalService.getFileEntriesAndShortcuts(
753:                        folderIds, begin, end);
754:            }
755:
756:            public static int getFileEntriesAndShortcutsCount(long folderId)
757:                    throws com.liferay.portal.SystemException {
758:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
759:                        .getService();
760:
761:                return dlFileEntryLocalService
762:                        .getFileEntriesAndShortcutsCount(folderId);
763:            }
764:
765:            public static int getFileEntriesAndShortcutsCount(
766:                    java.util.List folderIds)
767:                    throws com.liferay.portal.SystemException {
768:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
769:                        .getService();
770:
771:                return dlFileEntryLocalService
772:                        .getFileEntriesAndShortcutsCount(folderIds);
773:            }
774:
775:            public static int getFileEntriesCount(long folderId)
776:                    throws com.liferay.portal.SystemException {
777:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
778:                        .getService();
779:
780:                return dlFileEntryLocalService.getFileEntriesCount(folderId);
781:            }
782:
783:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
784:                    long fileEntryId)
785:                    throws com.liferay.portal.PortalException,
786:                    com.liferay.portal.SystemException {
787:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
788:                        .getService();
789:
790:                return dlFileEntryLocalService.getFileEntry(fileEntryId);
791:            }
792:
793:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
794:                    long folderId, java.lang.String name)
795:                    throws com.liferay.portal.PortalException,
796:                    com.liferay.portal.SystemException {
797:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
798:                        .getService();
799:
800:                return dlFileEntryLocalService.getFileEntry(folderId, name);
801:            }
802:
803:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
804:                    java.lang.String uuid, long groupId)
805:                    throws com.liferay.portal.PortalException,
806:                    com.liferay.portal.SystemException {
807:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
808:                        .getService();
809:
810:                return dlFileEntryLocalService.getFileEntryByUuidAndGroupId(
811:                        uuid, groupId);
812:            }
813:
814:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
815:                    long folderId, java.lang.String titleWithExtension)
816:                    throws com.liferay.portal.PortalException,
817:                    com.liferay.portal.SystemException {
818:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
819:                        .getService();
820:
821:                return dlFileEntryLocalService.getFileEntryByTitle(folderId,
822:                        titleWithExtension);
823:            }
824:
825:            public static int getFoldersFileEntriesCount(
826:                    java.util.List folderIds)
827:                    throws com.liferay.portal.SystemException {
828:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
829:                        .getService();
830:
831:                return dlFileEntryLocalService
832:                        .getFoldersFileEntriesCount(folderIds);
833:            }
834:
835:            public static java.util.List getGroupFileEntries(long groupId,
836:                    int begin, int end)
837:                    throws com.liferay.portal.SystemException {
838:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
839:                        .getService();
840:
841:                return dlFileEntryLocalService.getGroupFileEntries(groupId,
842:                        begin, end);
843:            }
844:
845:            public static java.util.List getGroupFileEntries(long groupId,
846:                    int begin, int end,
847:                    com.liferay.portal.kernel.util.OrderByComparator obc)
848:                    throws com.liferay.portal.SystemException {
849:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
850:                        .getService();
851:
852:                return dlFileEntryLocalService.getGroupFileEntries(groupId,
853:                        begin, end, obc);
854:            }
855:
856:            public static java.util.List getGroupFileEntries(long groupId,
857:                    long userId, int begin, int end)
858:                    throws com.liferay.portal.SystemException {
859:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
860:                        .getService();
861:
862:                return dlFileEntryLocalService.getGroupFileEntries(groupId,
863:                        userId, begin, end);
864:            }
865:
866:            public static java.util.List getGroupFileEntries(long groupId,
867:                    long userId, int begin, int end,
868:                    com.liferay.portal.kernel.util.OrderByComparator obc)
869:                    throws com.liferay.portal.SystemException {
870:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
871:                        .getService();
872:
873:                return dlFileEntryLocalService.getGroupFileEntries(groupId,
874:                        userId, begin, end, obc);
875:            }
876:
877:            public static int getGroupFileEntriesCount(long groupId)
878:                    throws com.liferay.portal.SystemException {
879:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
880:                        .getService();
881:
882:                return dlFileEntryLocalService
883:                        .getGroupFileEntriesCount(groupId);
884:            }
885:
886:            public static int getGroupFileEntriesCount(long groupId, long userId)
887:                    throws com.liferay.portal.SystemException {
888:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
889:                        .getService();
890:
891:                return dlFileEntryLocalService.getGroupFileEntriesCount(
892:                        groupId, userId);
893:            }
894:
895:            public static java.util.List getNoAssetFileEntries()
896:                    throws com.liferay.portal.SystemException {
897:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
898:                        .getService();
899:
900:                return dlFileEntryLocalService.getNoAssetFileEntries();
901:            }
902:
903:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
904:                    long userId, long folderId, long newFolderId,
905:                    java.lang.String name, java.lang.String sourceFileName,
906:                    java.lang.String title, java.lang.String description,
907:                    java.lang.String[] tagsEntries,
908:                    java.lang.String extraSettings, java.io.File file)
909:                    throws com.liferay.portal.PortalException,
910:                    com.liferay.portal.SystemException {
911:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
912:                        .getService();
913:
914:                return dlFileEntryLocalService.updateFileEntry(userId,
915:                        folderId, newFolderId, name, sourceFileName, title,
916:                        description, tagsEntries, extraSettings, file);
917:            }
918:
919:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
920:                    long userId, long folderId, long newFolderId,
921:                    java.lang.String name, java.lang.String sourceFileName,
922:                    java.lang.String title, java.lang.String description,
923:                    java.lang.String[] tagsEntries,
924:                    java.lang.String extraSettings, byte[] byteArray)
925:                    throws com.liferay.portal.PortalException,
926:                    com.liferay.portal.SystemException {
927:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
928:                        .getService();
929:
930:                return dlFileEntryLocalService.updateFileEntry(userId,
931:                        folderId, newFolderId, name, sourceFileName, title,
932:                        description, tagsEntries, extraSettings, byteArray);
933:            }
934:
935:            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
936:                    long userId, long folderId, long newFolderId,
937:                    java.lang.String name, java.lang.String sourceFileName,
938:                    java.lang.String title, java.lang.String description,
939:                    java.lang.String[] tagsEntries,
940:                    java.lang.String extraSettings, java.io.InputStream is,
941:                    long size) throws com.liferay.portal.PortalException,
942:                    com.liferay.portal.SystemException {
943:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
944:                        .getService();
945:
946:                return dlFileEntryLocalService.updateFileEntry(userId,
947:                        folderId, newFolderId, name, sourceFileName, title,
948:                        description, tagsEntries, extraSettings, is, size);
949:            }
950:
951:            public static void updateTagsAsset(
952:                    long userId,
953:                    com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
954:                    java.lang.String[] tagsEntries)
955:                    throws com.liferay.portal.PortalException,
956:                    com.liferay.portal.SystemException {
957:                DLFileEntryLocalService dlFileEntryLocalService = DLFileEntryLocalServiceFactory
958:                        .getService();
959:
960:                dlFileEntryLocalService.updateTagsAsset(userId, fileEntry,
961:                        tagsEntries);
962:            }
963:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.