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="DLFileShortcutLocalServiceUtil.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.DLFileShortcutLocalService</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.DLFileShortcutLocalServiceFactory</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.DLFileShortcutLocalService
047: * @see com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalServiceFactory
048: *
049: */
050: public class DLFileShortcutLocalServiceUtil {
051: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
052: com.liferay.portlet.documentlibrary.model.DLFileShortcut model)
053: throws com.liferay.portal.SystemException {
054: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
055: .getService();
056:
057: return dlFileShortcutLocalService.addDLFileShortcut(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: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
064: .getService();
065:
066: return dlFileShortcutLocalService
067: .dynamicQuery(queryInitializer);
068: }
069:
070: public static java.util.List dynamicQuery(
071: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
072: int begin, int end)
073: throws com.liferay.portal.SystemException {
074: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
075: .getService();
076:
077: return dlFileShortcutLocalService.dynamicQuery(
078: queryInitializer, begin, end);
079: }
080:
081: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
082: com.liferay.portlet.documentlibrary.model.DLFileShortcut model)
083: throws com.liferay.portal.SystemException {
084: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
085: .getService();
086:
087: return dlFileShortcutLocalService.updateDLFileShortcut(model);
088: }
089:
090: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence getDLFileEntryPersistence() {
091: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
092: .getService();
093:
094: return dlFileShortcutLocalService.getDLFileEntryPersistence();
095: }
096:
097: public static void setDLFileEntryPersistence(
098: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence) {
099: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
100: .getService();
101:
102: dlFileShortcutLocalService
103: .setDLFileEntryPersistence(dlFileEntryPersistence);
104: }
105:
106: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder getDLFileEntryFinder() {
107: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
108: .getService();
109:
110: return dlFileShortcutLocalService.getDLFileEntryFinder();
111: }
112:
113: public static void setDLFileEntryFinder(
114: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder dlFileEntryFinder) {
115: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
116: .getService();
117:
118: dlFileShortcutLocalService
119: .setDLFileEntryFinder(dlFileEntryFinder);
120: }
121:
122: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder getDLFileEntryAndShortcutFinder() {
123: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
124: .getService();
125:
126: return dlFileShortcutLocalService
127: .getDLFileEntryAndShortcutFinder();
128: }
129:
130: public static void setDLFileEntryAndShortcutFinder(
131: com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryAndShortcutFinder dlFileEntryAndShortcutFinder) {
132: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
133: .getService();
134:
135: dlFileShortcutLocalService
136: .setDLFileEntryAndShortcutFinder(dlFileEntryAndShortcutFinder);
137: }
138:
139: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence getDLFileRankPersistence() {
140: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
141: .getService();
142:
143: return dlFileShortcutLocalService.getDLFileRankPersistence();
144: }
145:
146: public static void setDLFileRankPersistence(
147: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence) {
148: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
149: .getService();
150:
151: dlFileShortcutLocalService
152: .setDLFileRankPersistence(dlFileRankPersistence);
153: }
154:
155: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder getDLFileRankFinder() {
156: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
157: .getService();
158:
159: return dlFileShortcutLocalService.getDLFileRankFinder();
160: }
161:
162: public static void setDLFileRankFinder(
163: com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder dlFileRankFinder) {
164: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
165: .getService();
166:
167: dlFileShortcutLocalService
168: .setDLFileRankFinder(dlFileRankFinder);
169: }
170:
171: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence getDLFileShortcutPersistence() {
172: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
173: .getService();
174:
175: return dlFileShortcutLocalService
176: .getDLFileShortcutPersistence();
177: }
178:
179: public static void setDLFileShortcutPersistence(
180: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence) {
181: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
182: .getService();
183:
184: dlFileShortcutLocalService
185: .setDLFileShortcutPersistence(dlFileShortcutPersistence);
186: }
187:
188: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder getDLFileShortcutFinder() {
189: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
190: .getService();
191:
192: return dlFileShortcutLocalService.getDLFileShortcutFinder();
193: }
194:
195: public static void setDLFileShortcutFinder(
196: com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutFinder dlFileShortcutFinder) {
197: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
198: .getService();
199:
200: dlFileShortcutLocalService
201: .setDLFileShortcutFinder(dlFileShortcutFinder);
202: }
203:
204: public static com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence getDLFileVersionPersistence() {
205: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
206: .getService();
207:
208: return dlFileShortcutLocalService.getDLFileVersionPersistence();
209: }
210:
211: public static void setDLFileVersionPersistence(
212: com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence) {
213: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
214: .getService();
215:
216: dlFileShortcutLocalService
217: .setDLFileVersionPersistence(dlFileVersionPersistence);
218: }
219:
220: public static com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence getDLFolderPersistence() {
221: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
222: .getService();
223:
224: return dlFileShortcutLocalService.getDLFolderPersistence();
225: }
226:
227: public static void setDLFolderPersistence(
228: com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence) {
229: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
230: .getService();
231:
232: dlFileShortcutLocalService
233: .setDLFolderPersistence(dlFolderPersistence);
234: }
235:
236: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
237: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
238: .getService();
239:
240: return dlFileShortcutLocalService.getResourcePersistence();
241: }
242:
243: public static void setResourcePersistence(
244: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
245: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
246: .getService();
247:
248: dlFileShortcutLocalService
249: .setResourcePersistence(resourcePersistence);
250: }
251:
252: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
253: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
254: .getService();
255:
256: return dlFileShortcutLocalService.getResourceFinder();
257: }
258:
259: public static void setResourceFinder(
260: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
261: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
262: .getService();
263:
264: dlFileShortcutLocalService.setResourceFinder(resourceFinder);
265: }
266:
267: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
268: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
269: .getService();
270:
271: return dlFileShortcutLocalService.getUserPersistence();
272: }
273:
274: public static void setUserPersistence(
275: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
276: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
277: .getService();
278:
279: dlFileShortcutLocalService.setUserPersistence(userPersistence);
280: }
281:
282: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
283: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
284: .getService();
285:
286: return dlFileShortcutLocalService.getUserFinder();
287: }
288:
289: public static void setUserFinder(
290: com.liferay.portal.service.persistence.UserFinder userFinder) {
291: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
292: .getService();
293:
294: dlFileShortcutLocalService.setUserFinder(userFinder);
295: }
296:
297: public static void afterPropertiesSet() {
298: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
299: .getService();
300:
301: dlFileShortcutLocalService.afterPropertiesSet();
302: }
303:
304: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
305: long userId, long folderId, long toFolderId,
306: java.lang.String toName, boolean addCommunityPermissions,
307: boolean addGuestPermissions)
308: throws com.liferay.portal.PortalException,
309: com.liferay.portal.SystemException {
310: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
311: .getService();
312:
313: return dlFileShortcutLocalService.addFileShortcut(userId,
314: folderId, toFolderId, toName, addCommunityPermissions,
315: addGuestPermissions);
316: }
317:
318: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
319: java.lang.String uuid, long userId, long folderId,
320: long toFolderId, java.lang.String toName,
321: boolean addCommunityPermissions, boolean addGuestPermissions)
322: throws com.liferay.portal.PortalException,
323: com.liferay.portal.SystemException {
324: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
325: .getService();
326:
327: return dlFileShortcutLocalService.addFileShortcut(uuid, userId,
328: folderId, toFolderId, toName, addCommunityPermissions,
329: addGuestPermissions);
330: }
331:
332: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
333: long userId, long folderId, long toFolderId,
334: java.lang.String toName,
335: java.lang.String[] communityPermissions,
336: java.lang.String[] guestPermissions)
337: throws com.liferay.portal.PortalException,
338: com.liferay.portal.SystemException {
339: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
340: .getService();
341:
342: return dlFileShortcutLocalService.addFileShortcut(userId,
343: folderId, toFolderId, toName, communityPermissions,
344: guestPermissions);
345: }
346:
347: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
348: java.lang.String uuid, long userId, long folderId,
349: long toFolderId, java.lang.String toName,
350: java.lang.Boolean addCommunityPermissions,
351: java.lang.Boolean addGuestPermissions,
352: java.lang.String[] communityPermissions,
353: java.lang.String[] guestPermissions)
354: throws com.liferay.portal.PortalException,
355: com.liferay.portal.SystemException {
356: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
357: .getService();
358:
359: return dlFileShortcutLocalService.addFileShortcut(uuid, userId,
360: folderId, toFolderId, toName, addCommunityPermissions,
361: addGuestPermissions, communityPermissions,
362: guestPermissions);
363: }
364:
365: public static void addFileShortcutResources(long fileShortcutId,
366: boolean addCommunityPermissions, boolean addGuestPermissions)
367: throws com.liferay.portal.PortalException,
368: com.liferay.portal.SystemException {
369: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
370: .getService();
371:
372: dlFileShortcutLocalService.addFileShortcutResources(
373: fileShortcutId, addCommunityPermissions,
374: addGuestPermissions);
375: }
376:
377: public static void addFileShortcutResources(
378: com.liferay.portlet.documentlibrary.model.DLFolder folder,
379: com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
380: boolean addCommunityPermissions, boolean addGuestPermissions)
381: throws com.liferay.portal.PortalException,
382: com.liferay.portal.SystemException {
383: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
384: .getService();
385:
386: dlFileShortcutLocalService.addFileShortcutResources(folder,
387: fileShortcut, addCommunityPermissions,
388: addGuestPermissions);
389: }
390:
391: public static void addFileShortcutResources(long fileShortcutId,
392: java.lang.String[] communityPermissions,
393: java.lang.String[] guestPermissions)
394: throws com.liferay.portal.PortalException,
395: com.liferay.portal.SystemException {
396: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
397: .getService();
398:
399: dlFileShortcutLocalService.addFileShortcutResources(
400: fileShortcutId, communityPermissions, guestPermissions);
401: }
402:
403: public static void addFileShortcutResources(
404: com.liferay.portlet.documentlibrary.model.DLFolder folder,
405: com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
406: java.lang.String[] communityPermissions,
407: java.lang.String[] guestPermissions)
408: throws com.liferay.portal.PortalException,
409: com.liferay.portal.SystemException {
410: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
411: .getService();
412:
413: dlFileShortcutLocalService.addFileShortcutResources(folder,
414: fileShortcut, communityPermissions, guestPermissions);
415: }
416:
417: public static void deleteFileShortcut(long fileShortcutId)
418: throws com.liferay.portal.PortalException,
419: com.liferay.portal.SystemException {
420: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
421: .getService();
422:
423: dlFileShortcutLocalService.deleteFileShortcut(fileShortcutId);
424: }
425:
426: public static void deleteFileShortcut(
427: com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
428: throws com.liferay.portal.PortalException,
429: com.liferay.portal.SystemException {
430: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
431: .getService();
432:
433: dlFileShortcutLocalService.deleteFileShortcut(fileShortcut);
434: }
435:
436: public static void deleteFileShortcuts(long toFolderId,
437: java.lang.String toName)
438: throws com.liferay.portal.PortalException,
439: com.liferay.portal.SystemException {
440: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
441: .getService();
442:
443: dlFileShortcutLocalService.deleteFileShortcuts(toFolderId,
444: toName);
445: }
446:
447: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
448: long fileShortcutId)
449: throws com.liferay.portal.PortalException,
450: com.liferay.portal.SystemException {
451: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
452: .getService();
453:
454: return dlFileShortcutLocalService
455: .getFileShortcut(fileShortcutId);
456: }
457:
458: public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
459: long userId, long fileShortcutId, long folderId,
460: long toFolderId, java.lang.String toName)
461: throws com.liferay.portal.PortalException,
462: com.liferay.portal.SystemException {
463: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
464: .getService();
465:
466: return dlFileShortcutLocalService.updateFileShortcut(userId,
467: fileShortcutId, folderId, toFolderId, toName);
468: }
469:
470: public static void updateFileShortcuts(long oldToFolderId,
471: java.lang.String oldToName, long newToFolderId,
472: java.lang.String newToName)
473: throws com.liferay.portal.PortalException,
474: com.liferay.portal.SystemException {
475: DLFileShortcutLocalService dlFileShortcutLocalService = DLFileShortcutLocalServiceFactory
476: .getService();
477:
478: dlFileShortcutLocalService.updateFileShortcuts(oldToFolderId,
479: oldToName, newToFolderId, newToName);
480: }
481: }
|