001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class DLFileEntryTypeLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
049 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addDLFileEntryType(dlFileEntryType);
052 }
053
054
060 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
061 long fileEntryTypeId) {
062 return getService().createDLFileEntryType(fileEntryTypeId);
063 }
064
065
072 public static void deleteDLFileEntryType(long fileEntryTypeId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteDLFileEntryType(fileEntryTypeId);
076 }
077
078
084 public static void deleteDLFileEntryType(
085 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteDLFileEntryType(dlFileEntryType);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161
169 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
170 long fileEntryTypeId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().getDLFileEntryType(fileEntryTypeId);
174 }
175
176 public static com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getPersistedModel(primaryKeyObj);
181 }
182
183
195 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
196 int start, int end)
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getDLFileEntryTypes(start, end);
199 }
200
201
207 public static int getDLFileEntryTypesCount()
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getDLFileEntryTypesCount();
210 }
211
212
219 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
220 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().updateDLFileEntryType(dlFileEntryType);
223 }
224
225
233 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
234 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
235 boolean merge)
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().updateDLFileEntryType(dlFileEntryType, merge);
238 }
239
240
245 public static java.lang.String getBeanIdentifier() {
246 return getService().getBeanIdentifier();
247 }
248
249
254 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
255 getService().setBeanIdentifier(beanIdentifier);
256 }
257
258 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
259 long userId, long groupId, java.lang.String name,
260 java.lang.String description, long[] ddmStructureIds,
261 com.liferay.portal.service.ServiceContext serviceContext)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 return getService()
265 .addFileEntryType(userId, groupId, name, description,
266 ddmStructureIds, serviceContext);
267 }
268
269 public static void cascadeFileEntryTypes(long userId,
270 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().cascadeFileEntryTypes(userId, dlFolder);
274 }
275
276 public static void deleteFileEntryType(long fileEntryTypeId)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService().deleteFileEntryType(fileEntryTypeId);
280 }
281
282 public static void deleteFileEntryTypes(long folderId)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 getService().deleteFileEntryTypes(folderId);
285 }
286
287 public static long getDefaultFileEntryType(long folderId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService().getDefaultFileEntryType(folderId);
291 }
292
293 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
294 long fileEntryTypeId)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 return getService().getFileEntryType(fileEntryTypeId);
298 }
299
300 public static com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
301 long groupId, java.lang.String name)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 return getService().getFileEntryType(groupId, name);
305 }
306
307 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
308 long groupId, int start, int end)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().getFileEntryTypes(groupId, start, end);
311 }
312
313 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
314 long[] groupIds)
315 throws com.liferay.portal.kernel.exception.SystemException {
316 return getService().getFileEntryTypes(groupIds);
317 }
318
319 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
320 long[] groupIds, long folderId, boolean inherited)
321 throws com.liferay.portal.kernel.exception.PortalException,
322 com.liferay.portal.kernel.exception.SystemException {
323 return getService()
324 .getFolderFileEntryTypes(groupIds, folderId, inherited);
325 }
326
327 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
328 long companyId, long[] groupIds, java.lang.String keywords, int start,
329 int end,
330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService()
333 .search(companyId, groupIds, keywords, start, end,
334 orderByComparator);
335 }
336
337 public static int searchCount(long companyId, long[] groupIds,
338 java.lang.String keywords)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().searchCount(companyId, groupIds, keywords);
341 }
342
343 public static void updateFileEntryType(long userId, long fileEntryTypeId,
344 java.lang.String name, java.lang.String description,
345 long[] ddmStructureIds,
346 com.liferay.portal.service.ServiceContext serviceContext)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 getService()
350 .updateFileEntryType(userId, fileEntryTypeId, name, description,
351 ddmStructureIds, serviceContext);
352 }
353
354 public static void updateFolderFileEntryTypes(
355 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
356 java.util.List<java.lang.Long> fileEntryTypeIds,
357 long defaultFileEntryTypeId,
358 com.liferay.portal.service.ServiceContext serviceContext)
359 throws com.liferay.portal.kernel.exception.SystemException {
360 getService()
361 .updateFolderFileEntryTypes(dlFolder, fileEntryTypeIds,
362 defaultFileEntryTypeId, serviceContext);
363 }
364
365 public static DLFileEntryTypeLocalService getService() {
366 if (_service == null) {
367 _service = (DLFileEntryTypeLocalService)PortalBeanLocatorUtil.locate(DLFileEntryTypeLocalService.class.getName());
368
369 ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
370 "_service");
371 MethodCache.remove(DLFileEntryTypeLocalService.class);
372 }
373
374 return _service;
375 }
376
377 public void setService(DLFileEntryTypeLocalService service) {
378 MethodCache.remove(DLFileEntryTypeLocalService.class);
379
380 _service = service;
381
382 ReferenceRegistry.registerReference(DLFileEntryTypeLocalServiceUtil.class,
383 "_service");
384 MethodCache.remove(DLFileEntryTypeLocalService.class);
385 }
386
387 private static DLFileEntryTypeLocalService _service;
388 }