1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25
51 public class DLFolderServiceUtil {
52 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
53 long plid, long parentFolderId, java.lang.String name,
54 java.lang.String description, boolean addCommunityPermissions,
55 boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
59
60 return dlFolderService.addFolder(plid, parentFolderId, name,
61 description, addCommunityPermissions, addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
65 long plid, long parentFolderId, java.lang.String name,
66 java.lang.String description, java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
71
72 return dlFolderService.addFolder(plid, parentFolderId, name,
73 description, communityPermissions, guestPermissions);
74 }
75
76 public static void deleteFolder(long folderId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
80 dlFolderService.deleteFolder(folderId);
81 }
82
83 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
84 long folderId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
88
89 return dlFolderService.getFolder(folderId);
90 }
91
92 public static void reIndexSearch(long companyId)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException, java.rmi.RemoteException {
95 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
96 dlFolderService.reIndexSearch(companyId);
97 }
98
99 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
100 long folderId, long parentFolderId, java.lang.String name,
101 java.lang.String description)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException, java.rmi.RemoteException {
104 DLFolderService dlFolderService = DLFolderServiceFactory.getService();
105
106 return dlFolderService.updateFolder(folderId, parentFolderId, name,
107 description);
108 }
109 }