1
19
20 package com.liferay.portlet.documentlibrary.service;
21
22
23
44 public class DLFileShortcutLocalServiceUtil {
45 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
46 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
47 throws com.liferay.portal.SystemException {
48 return getService().addDLFileShortcut(dlFileShortcut);
49 }
50
51 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
52 long fileShortcutId) {
53 return getService().createDLFileShortcut(fileShortcutId);
54 }
55
56 public static void deleteDLFileShortcut(long fileShortcutId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteDLFileShortcut(fileShortcutId);
60 }
61
62 public static void deleteDLFileShortcut(
63 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
64 throws com.liferay.portal.SystemException {
65 getService().deleteDLFileShortcut(dlFileShortcut);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
81 long fileShortcutId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getDLFileShortcut(fileShortcutId);
85 }
86
87 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getDLFileShortcuts(start, end);
90 }
91
92 public static int getDLFileShortcutsCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getDLFileShortcutsCount();
95 }
96
97 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
98 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
99 throws com.liferay.portal.SystemException {
100 return getService().updateDLFileShortcut(dlFileShortcut);
101 }
102
103 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
104 long userId, long folderId, long toFolderId, java.lang.String toName,
105 boolean addCommunityPermissions, boolean addGuestPermissions)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException {
108 return getService()
109 .addFileShortcut(userId, folderId, toFolderId, toName,
110 addCommunityPermissions, addGuestPermissions);
111 }
112
113 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
114 java.lang.String uuid, long userId, long folderId, long toFolderId,
115 java.lang.String toName, boolean addCommunityPermissions,
116 boolean addGuestPermissions)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException {
119 return getService()
120 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
121 addCommunityPermissions, addGuestPermissions);
122 }
123
124 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
125 long userId, long folderId, long toFolderId, java.lang.String toName,
126 java.lang.String[] communityPermissions,
127 java.lang.String[] guestPermissions)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException {
130 return getService()
131 .addFileShortcut(userId, folderId, toFolderId, toName,
132 communityPermissions, guestPermissions);
133 }
134
135 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
136 java.lang.String uuid, long userId, long folderId, long toFolderId,
137 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
138 java.lang.Boolean addGuestPermissions,
139 java.lang.String[] communityPermissions,
140 java.lang.String[] guestPermissions)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 return getService()
144 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
145 addCommunityPermissions, addGuestPermissions, communityPermissions,
146 guestPermissions);
147 }
148
149 public static void addFileShortcutResources(long fileShortcutId,
150 boolean addCommunityPermissions, boolean addGuestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 getService()
154 .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
155 addGuestPermissions);
156 }
157
158 public static void addFileShortcutResources(
159 com.liferay.portlet.documentlibrary.model.DLFolder folder,
160 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
161 boolean addCommunityPermissions, boolean addGuestPermissions)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException {
164 getService()
165 .addFileShortcutResources(folder, fileShortcut,
166 addCommunityPermissions, addGuestPermissions);
167 }
168
169 public static void addFileShortcutResources(long fileShortcutId,
170 java.lang.String[] communityPermissions,
171 java.lang.String[] guestPermissions)
172 throws com.liferay.portal.PortalException,
173 com.liferay.portal.SystemException {
174 getService()
175 .addFileShortcutResources(fileShortcutId, communityPermissions,
176 guestPermissions);
177 }
178
179 public static void addFileShortcutResources(
180 com.liferay.portlet.documentlibrary.model.DLFolder folder,
181 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
182 java.lang.String[] communityPermissions,
183 java.lang.String[] guestPermissions)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException {
186 getService()
187 .addFileShortcutResources(folder, fileShortcut,
188 communityPermissions, guestPermissions);
189 }
190
191 public static void deleteFileShortcut(long fileShortcutId)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 getService().deleteFileShortcut(fileShortcutId);
195 }
196
197 public static void deleteFileShortcut(
198 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 getService().deleteFileShortcut(fileShortcut);
202 }
203
204 public static void deleteFileShortcuts(long toFolderId,
205 java.lang.String toName)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 getService().deleteFileShortcuts(toFolderId, toName);
209 }
210
211 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
212 long fileShortcutId)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 return getService().getFileShortcut(fileShortcutId);
216 }
217
218 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
219 long userId, long fileShortcutId, long folderId, long toFolderId,
220 java.lang.String toName)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 return getService()
224 .updateFileShortcut(userId, fileShortcutId, folderId,
225 toFolderId, toName);
226 }
227
228 public static void updateFileShortcuts(long oldToFolderId,
229 java.lang.String oldToName, long newToFolderId,
230 java.lang.String newToName) throws com.liferay.portal.SystemException {
231 getService()
232 .updateFileShortcuts(oldToFolderId, oldToName, newToFolderId,
233 newToName);
234 }
235
236 public static DLFileShortcutLocalService getService() {
237 if (_service == null) {
238 throw new RuntimeException("DLFileShortcutLocalService is not set");
239 }
240
241 return _service;
242 }
243
244 public void setService(DLFileShortcutLocalService service) {
245 _service = service;
246 }
247
248 private static DLFileShortcutLocalService _service;
249 }