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