1
22
23 package com.liferay.portlet.documentlibrary.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface DLFolderLocalService {
58 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
59 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
63 long folderId);
64
65 public void deleteDLFolder(long folderId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deleteDLFolder(
70 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public 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
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
83 long folderId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getDLFoldersCount() throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
95 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
99 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
100 boolean merge) throws com.liferay.portal.SystemException;
101
102 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
103 long userId, long groupId, long parentFolderId, java.lang.String name,
104 java.lang.String description,
105 com.liferay.portal.service.ServiceContext serviceContext)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
110 java.lang.String uuid, long userId, long groupId, long parentFolderId,
111 java.lang.String name, java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public void addFolderResources(long folderId,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 public void addFolderResources(
122 com.liferay.portlet.documentlibrary.model.DLFolder folder,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public void addFolderResources(long folderId,
128 java.lang.String[] communityPermissions,
129 java.lang.String[] guestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void addFolderResources(
134 com.liferay.portlet.documentlibrary.model.DLFolder folder,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException;
139
140 public void deleteFolder(long folderId)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException;
143
144 public void deleteFolder(
145 com.liferay.portlet.documentlibrary.model.DLFolder folder)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void deleteFolders(long groupId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public java.util.List<Object> getFileEntriesAndFileShortcuts(
155 long folderId, int start, int end)
156 throws com.liferay.portal.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public java.util.List<Object> getFileEntriesAndFileShortcuts(
160 java.util.List<Long> folderIds, int start, int end)
161 throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public int getFileEntriesAndFileShortcutsCount(long folderId)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public int getFileEntriesAndFileShortcutsCount(
169 java.util.List<Long> folderIds)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
174 long folderId)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
180 long groupId, long parentFolderId, java.lang.String name)
181 throws com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
186 long folderId, int start, int end)
187 throws com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<Object> getFoldersAndFileEntriesAndFileShortcuts(
191 java.util.List<Long> folderIds, int start, int end)
192 throws com.liferay.portal.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getFoldersAndFileEntriesAndFileShortcutsCount(
200 java.util.List<Long> folderIds)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
205 long companyId) throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
209 long groupId, long parentFolderId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
214 long groupId, long parentFolderId, int start, int end)
215 throws com.liferay.portal.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public int getFoldersCount(long groupId, long parentFolderId)
219 throws com.liferay.portal.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
223 long folderId) throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public void reIndex(java.lang.String[] ids)
227 throws com.liferay.portal.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portal.kernel.search.Hits search(long companyId,
231 long groupId, long userId, long[] folderIds, java.lang.String keywords,
232 int start, int end) throws com.liferay.portal.SystemException;
233
234 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
235 long folderId, long parentFolderId, java.lang.String name,
236 java.lang.String description,
237 com.liferay.portal.service.ServiceContext serviceContext)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException;
240 }