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