001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023
024
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface DLAppHelperLocalService extends BaseLocalService {
039
044
045
050 public java.lang.String getBeanIdentifier();
051
052
057 public void setBeanIdentifier(java.lang.String beanIdentifier);
058
059 public void addFileEntry(long userId,
060 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
061 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException;
065
066 public void addFolder(long userId,
067 com.liferay.portal.kernel.repository.model.Folder folder,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 public void cancelCheckOut(long userId,
073 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
074 com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
075 com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
076 com.liferay.portal.kernel.repository.model.FileVersion draftFileVersion,
077 com.liferay.portal.service.ServiceContext serviceContext)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 public void checkAssetEntry(long userId,
082 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
083 com.liferay.portal.kernel.repository.model.FileVersion fileVersion)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087 public void deleteFileEntry(
088 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 public void deleteFolder(
093 com.liferay.portal.kernel.repository.model.Folder folder)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException;
096
097 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
098 public void getFileAsStream(long userId,
099 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
100 boolean incrementCounter)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
105 long groupId, long folderId, boolean active, int status)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getFileShortcuts(
114 long groupId, long folderId, int status)
115 throws com.liferay.portal.kernel.exception.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public int getFileShortcutsCount(long groupId, long folderId,
119 boolean active, int status)
120 throws com.liferay.portal.kernel.exception.SystemException;
121
122
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int getFileShortcutsCount(long groupId, long folderId, int status)
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getNoAssetFileEntries();
132
133 public void moveFileEntry(
134 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryFromTrash(
139 long userId,
140 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
141 long newFolderId,
142 com.liferay.portal.service.ServiceContext serviceContext)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146
155 public com.liferay.portal.kernel.repository.model.FileEntry moveFileEntryToTrash(
156 long userId,
157 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutFromTrash(
162 long userId,
163 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
164 long newFolderId,
165 com.liferay.portal.service.ServiceContext serviceContext)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
178 public com.liferay.portlet.documentlibrary.model.DLFileShortcut moveFileShortcutToTrash(
179 long userId,
180 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 public void moveFolder(
185 com.liferay.portal.kernel.repository.model.Folder folder)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 public com.liferay.portal.kernel.repository.model.Folder moveFolderFromTrash(
189 long userId, com.liferay.portal.kernel.repository.model.Folder folder,
190 long parentFolderId,
191 com.liferay.portal.service.ServiceContext serviceContext)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException;
194
195
204 public com.liferay.portal.kernel.repository.model.Folder moveFolderToTrash(
205 long userId, com.liferay.portal.kernel.repository.model.Folder folder)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException;
208
209 public void registerDLSyncEventCallback(java.lang.String event,
210 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException;
213
214 public void registerDLSyncEventCallback(java.lang.String event,
215 com.liferay.portal.kernel.repository.model.Folder folder)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218 public void restoreFileEntryFromTrash(long userId,
219 com.liferay.portal.kernel.repository.model.FileEntry fileEntry)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223 public void restoreFileShortcutFromTrash(long userId,
224 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228 public void restoreFolderFromTrash(long userId,
229 com.liferay.portal.kernel.repository.model.Folder folder)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException;
232
233 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
234 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
235 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
236 long assetClassPk)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException;
239
240 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
241 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
242 com.liferay.portal.kernel.repository.model.FileVersion fileVersion,
243 long[] assetCategoryIds, java.lang.String[] assetTagNames,
244 long[] assetLinkEntryIds)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 public com.liferay.portlet.asset.model.AssetEntry updateAsset(long userId,
249 com.liferay.portal.kernel.repository.model.Folder folder,
250 long[] assetCategoryIds, java.lang.String[] assetTagNames,
251 long[] assetLinkEntryIds)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public void updateDependentStatus(com.liferay.portal.model.User user,
256 java.util.List<java.lang.Object> dlFileEntriesAndDLFolders, int status)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 public void updateFileEntry(long userId,
261 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
262 com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
263 com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
264 long assetClassPk)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 public void updateFileEntry(long userId,
269 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
270 com.liferay.portal.kernel.repository.model.FileVersion sourceFileVersion,
271 com.liferay.portal.kernel.repository.model.FileVersion destinationFileVersion,
272 com.liferay.portal.service.ServiceContext serviceContext)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void updateFolder(long userId,
277 com.liferay.portal.kernel.repository.model.Folder folder,
278 com.liferay.portal.service.ServiceContext serviceContext)
279 throws com.liferay.portal.kernel.exception.PortalException,
280 com.liferay.portal.kernel.exception.SystemException;
281
282 public void updateStatus(long userId,
283 com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
284 com.liferay.portal.kernel.repository.model.FileVersion latestFileVersion,
285 int oldStatus, int newStatus,
286 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290 }