1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25
51 public class DLFileShortcutServiceUtil {
52 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
53 long folderId, long toFolderId, java.lang.String toName,
54 boolean addCommunityPermissions, boolean addGuestPermissions)
55 throws com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException, java.rmi.RemoteException {
57 DLFileShortcutService dlFileShortcutService = DLFileShortcutServiceFactory.getService();
58
59 return dlFileShortcutService.addFileShortcut(folderId, toFolderId,
60 toName, addCommunityPermissions, addGuestPermissions);
61 }
62
63 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
64 long folderId, long toFolderId, java.lang.String toName,
65 java.lang.String[] communityPermissions,
66 java.lang.String[] guestPermissions)
67 throws com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException, java.rmi.RemoteException {
69 DLFileShortcutService dlFileShortcutService = DLFileShortcutServiceFactory.getService();
70
71 return dlFileShortcutService.addFileShortcut(folderId, toFolderId,
72 toName, communityPermissions, guestPermissions);
73 }
74
75 public static void deleteFileShortcut(long fileShortcutId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 DLFileShortcutService dlFileShortcutService = DLFileShortcutServiceFactory.getService();
79 dlFileShortcutService.deleteFileShortcut(fileShortcutId);
80 }
81
82 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
83 long fileShortcutId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException, java.rmi.RemoteException {
86 DLFileShortcutService dlFileShortcutService = DLFileShortcutServiceFactory.getService();
87
88 return dlFileShortcutService.getFileShortcut(fileShortcutId);
89 }
90
91 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
92 long fileShortcutId, long folderId, long toFolderId,
93 java.lang.String toName)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException, java.rmi.RemoteException {
96 DLFileShortcutService dlFileShortcutService = DLFileShortcutServiceFactory.getService();
97
98 return dlFileShortcutService.updateFileShortcut(fileShortcutId,
99 folderId, toFolderId, toName);
100 }
101 }