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