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