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