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