001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017
026 public class DLFileEntryServiceWrapper implements DLFileEntryService {
027 public DLFileEntryServiceWrapper(DLFileEntryService dlFileEntryService) {
028 _dlFileEntryService = dlFileEntryService;
029 }
030
031 public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
032 long groupId, long repositoryId, long folderId,
033 java.lang.String sourceFileName, java.lang.String mimeType,
034 java.lang.String title, java.lang.String description,
035 java.lang.String changeLog, long fileEntryTypeId,
036 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
037 java.io.File file, java.io.InputStream is, long size,
038 com.liferay.portal.service.ServiceContext serviceContext)
039 throws com.liferay.portal.kernel.exception.PortalException,
040 com.liferay.portal.kernel.exception.SystemException {
041 return _dlFileEntryService.addFileEntry(groupId, repositoryId,
042 folderId, sourceFileName, mimeType, title, description, changeLog,
043 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
044 }
045
046 public void cancelCheckOut(long fileEntryId)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 _dlFileEntryService.cancelCheckOut(fileEntryId);
050 }
051
052 public void checkInFileEntry(long fileEntryId, boolean major,
053 java.lang.String changeLog,
054 com.liferay.portal.service.ServiceContext serviceContext)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException {
057 _dlFileEntryService.checkInFileEntry(fileEntryId, major, changeLog,
058 serviceContext);
059 }
060
061 public void checkInFileEntry(long fileEntryId, java.lang.String lockUuid)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 _dlFileEntryService.checkInFileEntry(fileEntryId, lockUuid);
065 }
066
067 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
068 long fileEntryId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return _dlFileEntryService.checkOutFileEntry(fileEntryId);
072 }
073
074 public com.liferay.portlet.documentlibrary.model.DLFileEntry checkOutFileEntry(
075 long fileEntryId, java.lang.String owner, long expirationTime)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return _dlFileEntryService.checkOutFileEntry(fileEntryId, owner,
079 expirationTime);
080 }
081
082 public com.liferay.portlet.documentlibrary.model.DLFileEntry copyFileEntry(
083 long groupId, long repositoryId, long fileEntryId, long destFolderId,
084 com.liferay.portal.service.ServiceContext serviceContext)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return _dlFileEntryService.copyFileEntry(groupId, repositoryId,
088 fileEntryId, destFolderId, serviceContext);
089 }
090
091 public void deleteFileEntry(long fileEntryId)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException {
094 _dlFileEntryService.deleteFileEntry(fileEntryId);
095 }
096
097 public void deleteFileEntry(long groupId, long folderId,
098 java.lang.String title)
099 throws com.liferay.portal.kernel.exception.PortalException,
100 com.liferay.portal.kernel.exception.SystemException {
101 _dlFileEntryService.deleteFileEntry(groupId, folderId, title);
102 }
103
104 public java.io.InputStream getFileAsStream(long fileEntryId,
105 java.lang.String version)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return _dlFileEntryService.getFileAsStream(fileEntryId, version);
109 }
110
111 public java.io.InputStream getFileAsStream(long fileEntryId,
112 java.lang.String version, boolean incrementCounter)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException {
115 return _dlFileEntryService.getFileAsStream(fileEntryId, version,
116 incrementCounter);
117 }
118
119 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
120 long groupId, long folderId, int start, int end,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return _dlFileEntryService.getFileEntries(groupId, folderId, start,
124 end, obc);
125 }
126
127 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
128 long groupId, long folderId, long fileEntryTypeId, int start, int end,
129 com.liferay.portal.kernel.util.OrderByComparator obc)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return _dlFileEntryService.getFileEntries(groupId, folderId,
132 fileEntryTypeId, start, end, obc);
133 }
134
135 public int getFileEntriesCount(long groupId, long folderId)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return _dlFileEntryService.getFileEntriesCount(groupId, folderId);
138 }
139
140 public int getFileEntriesCount(long groupId, long folderId,
141 long fileEntryTypeId)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return _dlFileEntryService.getFileEntriesCount(groupId, folderId,
144 fileEntryTypeId);
145 }
146
147 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
148 long fileEntryId)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException {
151 return _dlFileEntryService.getFileEntry(fileEntryId);
152 }
153
154 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
155 long groupId, long folderId, java.lang.String title)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return _dlFileEntryService.getFileEntry(groupId, folderId, title);
159 }
160
161 public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
162 java.lang.String uuid, long groupId)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 return _dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, groupId);
166 }
167
168 public com.liferay.portal.model.Lock getFileEntryLock(long fileEntryId) {
169 return _dlFileEntryService.getFileEntryLock(fileEntryId);
170 }
171
172 public int getFoldersFileEntriesCount(long groupId,
173 java.util.List<java.lang.Long> folderIds, int status)
174 throws com.liferay.portal.kernel.exception.SystemException {
175 return _dlFileEntryService.getFoldersFileEntriesCount(groupId,
176 folderIds, status);
177 }
178
179 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
180 long groupId, long userId, long rootFolderId, int start, int end,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return _dlFileEntryService.getGroupFileEntries(groupId, userId,
184 rootFolderId, start, end, obc);
185 }
186
187 public int getGroupFileEntriesCount(long groupId, long userId,
188 long rootFolderId)
189 throws com.liferay.portal.kernel.exception.SystemException {
190 return _dlFileEntryService.getGroupFileEntriesCount(groupId, userId,
191 rootFolderId);
192 }
193
194 public boolean hasFileEntryLock(long fileEntryId)
195 throws com.liferay.portal.kernel.exception.PortalException,
196 com.liferay.portal.kernel.exception.SystemException {
197 return _dlFileEntryService.hasFileEntryLock(fileEntryId);
198 }
199
200 public boolean isFileEntryCheckedOut(long fileEntryId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 return _dlFileEntryService.isFileEntryCheckedOut(fileEntryId);
204 }
205
206 public com.liferay.portlet.documentlibrary.model.DLFileEntry moveFileEntry(
207 long fileEntryId, long newFolderId,
208 com.liferay.portal.service.ServiceContext serviceContext)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 return _dlFileEntryService.moveFileEntry(fileEntryId, newFolderId,
212 serviceContext);
213 }
214
215 public com.liferay.portal.model.Lock refreshFileEntryLock(
216 java.lang.String lockUuid, long expirationTime)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException {
219 return _dlFileEntryService.refreshFileEntryLock(lockUuid, expirationTime);
220 }
221
222 public void revertFileEntry(long fileEntryId, java.lang.String version,
223 com.liferay.portal.service.ServiceContext serviceContext)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException {
226 _dlFileEntryService.revertFileEntry(fileEntryId, version, serviceContext);
227 }
228
229 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
230 long fileEntryId, java.lang.String sourceFileName,
231 java.lang.String mimeType, java.lang.String title,
232 java.lang.String description, java.lang.String changeLog,
233 boolean majorVersion, long fileEntryTypeId,
234 java.util.Map<java.lang.String, com.liferay.portlet.dynamicdatamapping.storage.Fields> fieldsMap,
235 java.io.File file, java.io.InputStream is, long size,
236 com.liferay.portal.service.ServiceContext serviceContext)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return _dlFileEntryService.updateFileEntry(fileEntryId, sourceFileName,
240 mimeType, title, description, changeLog, majorVersion,
241 fileEntryTypeId, fieldsMap, file, is, size, serviceContext);
242 }
243
244 public boolean verifyFileEntryCheckOut(long fileEntryId,
245 java.lang.String lockUuid)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 return _dlFileEntryService.verifyFileEntryCheckOut(fileEntryId, lockUuid);
249 }
250
251 public DLFileEntryService getWrappedDLFileEntryService() {
252 return _dlFileEntryService;
253 }
254
255 public void setWrappedDLFileEntryService(
256 DLFileEntryService dlFileEntryService) {
257 _dlFileEntryService = dlFileEntryService;
258 }
259
260 private DLFileEntryService _dlFileEntryService;
261 }