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