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 {
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 {
63 return getService()
64 .addFileShortcut(folderId, toFolderId, toName,
65 communityPermissions, guestPermissions);
66 }
67
68 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
69 long folderId, long toFolderId, java.lang.String toName,
70 com.liferay.portal.service.ServiceContext serviceContext)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException {
73 return getService()
74 .addFileShortcut(folderId, toFolderId, toName, serviceContext);
75 }
76
77 public static void deleteFileShortcut(long fileShortcutId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException {
80 getService().deleteFileShortcut(fileShortcutId);
81 }
82
83 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
84 long fileShortcutId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getFileShortcut(fileShortcutId);
88 }
89
90 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
91 long fileShortcutId, long folderId, long toFolderId,
92 java.lang.String toName)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException {
95 return getService()
96 .updateFileShortcut(fileShortcutId, folderId, toFolderId,
97 toName);
98 }
99
100 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
101 long fileShortcutId, long folderId, long toFolderId,
102 java.lang.String toName,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException {
106 return getService()
107 .updateFileShortcut(fileShortcutId, folderId, toFolderId,
108 toName, serviceContext);
109 }
110
111 public static DLFileShortcutService getService() {
112 if (_service == null) {
113 throw new RuntimeException("DLFileShortcutService is not set");
114 }
115
116 return _service;
117 }
118
119 public void setService(DLFileShortcutService service) {
120 _service = service;
121 }
122
123 private static DLFileShortcutService _service;
124 }