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