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