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 updateDLFileShortcut(
104 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateDLFileShortcut(dlFileShortcut, merge);
107 }
108
109 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
110 long userId, long folderId, long toFolderId, java.lang.String toName,
111 boolean addCommunityPermissions, boolean addGuestPermissions)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException {
114 return getService()
115 .addFileShortcut(userId, folderId, toFolderId, toName,
116 addCommunityPermissions, addGuestPermissions);
117 }
118
119 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
120 java.lang.String uuid, long userId, long folderId, long toFolderId,
121 java.lang.String toName, boolean addCommunityPermissions,
122 boolean addGuestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException {
125 return getService()
126 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
127 addCommunityPermissions, addGuestPermissions);
128 }
129
130 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
131 long userId, long folderId, long toFolderId, java.lang.String toName,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 return getService()
137 .addFileShortcut(userId, folderId, toFolderId, toName,
138 communityPermissions, guestPermissions);
139 }
140
141 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
142 java.lang.String uuid, long userId, long folderId, long toFolderId,
143 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
144 java.lang.Boolean addGuestPermissions,
145 java.lang.String[] communityPermissions,
146 java.lang.String[] guestPermissions)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException {
149 return getService()
150 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
151 addCommunityPermissions, addGuestPermissions, communityPermissions,
152 guestPermissions);
153 }
154
155 public static void addFileShortcutResources(long fileShortcutId,
156 boolean addCommunityPermissions, boolean addGuestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException {
159 getService()
160 .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
161 addGuestPermissions);
162 }
163
164 public static void addFileShortcutResources(
165 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
166 boolean addCommunityPermissions, boolean addGuestPermissions)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException {
169 getService()
170 .addFileShortcutResources(fileShortcut, addCommunityPermissions,
171 addGuestPermissions);
172 }
173
174 public static void addFileShortcutResources(long fileShortcutId,
175 java.lang.String[] communityPermissions,
176 java.lang.String[] guestPermissions)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 getService()
180 .addFileShortcutResources(fileShortcutId, communityPermissions,
181 guestPermissions);
182 }
183
184 public static void addFileShortcutResources(
185 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
186 java.lang.String[] communityPermissions,
187 java.lang.String[] guestPermissions)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 getService()
191 .addFileShortcutResources(fileShortcut, communityPermissions,
192 guestPermissions);
193 }
194
195 public static void deleteFileShortcut(long fileShortcutId)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 getService().deleteFileShortcut(fileShortcutId);
199 }
200
201 public static void deleteFileShortcut(
202 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 getService().deleteFileShortcut(fileShortcut);
206 }
207
208 public static void deleteFileShortcuts(long toFolderId,
209 java.lang.String toName)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 getService().deleteFileShortcuts(toFolderId, toName);
213 }
214
215 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
216 long fileShortcutId)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 return getService().getFileShortcut(fileShortcutId);
220 }
221
222 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
223 long userId, long fileShortcutId, long folderId, long toFolderId,
224 java.lang.String toName)
225 throws com.liferay.portal.PortalException,
226 com.liferay.portal.SystemException {
227 return getService()
228 .updateFileShortcut(userId, fileShortcutId, folderId,
229 toFolderId, toName);
230 }
231
232 public static void updateFileShortcuts(long oldToFolderId,
233 java.lang.String oldToName, long newToFolderId,
234 java.lang.String newToName) throws com.liferay.portal.SystemException {
235 getService()
236 .updateFileShortcuts(oldToFolderId, oldToName, newToFolderId,
237 newToName);
238 }
239
240 public static DLFileShortcutLocalService getService() {
241 if (_service == null) {
242 throw new RuntimeException("DLFileShortcutLocalService is not set");
243 }
244
245 return _service;
246 }
247
248 public void setService(DLFileShortcutLocalService service) {
249 _service = service;
250 }
251
252 private static DLFileShortcutLocalService _service;
253 }