001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface DLFolderLocalService {
043 public com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
044 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
048 long folderId);
049
050 public void deleteDLFolder(long folderId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteDLFolder(
055 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
081 long folderId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getDLFoldersCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
101 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
105 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
106 boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
110 long userId, long groupId, long parentFolderId, java.lang.String name,
111 java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void addFolderResources(
117 com.liferay.portlet.documentlibrary.model.DLFolder folder,
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(
123 com.liferay.portlet.documentlibrary.model.DLFolder folder,
124 java.lang.String[] communityPermissions,
125 java.lang.String[] guestPermissions)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void addFolderResources(long folderId,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public void addFolderResources(long folderId,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void deleteFolder(
141 com.liferay.portlet.documentlibrary.model.DLFolder folder)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void deleteFolder(long folderId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void deleteFolders(long groupId)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
155 long companyId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public int getCompanyFoldersCount(long companyId)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
164 long groupId, java.util.List<java.lang.Long> folderIds, int status,
165 int start, int end)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
170 long groupId, long folderId, int status, int start, int end)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public int getFileEntriesAndFileShortcutsCount(long groupId,
175 java.util.List<java.lang.Long> folderIds, int status)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public int getFileEntriesAndFileShortcutsCount(long groupId, long folderId,
180 int status) throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
184 long folderId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
190 long groupId, long parentFolderId, java.lang.String name)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
196 long companyId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
201 long groupId, long parentFolderId)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
206 long groupId, long parentFolderId, int start, int end)
207 throws com.liferay.portal.kernel.exception.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
211 long groupId, java.util.List<java.lang.Long> folderIds, int status,
212 int start, int end)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
217 long groupId, long folderId, int status, int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
222 java.util.List<java.lang.Long> folderIds, int status)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
227 long folderId, int status)
228 throws com.liferay.portal.kernel.exception.SystemException;
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public int getFoldersCount(long groupId, long parentFolderId)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
236 long groupId, long folderId)
237 throws com.liferay.portal.kernel.exception.SystemException;
238
239 public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
240 long folderId, long parentFolderId, java.lang.String name,
241 java.lang.String description,
242 com.liferay.portal.service.ServiceContext serviceContext)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245 }