001
014
015 package com.liferay.portal.repository.proxy;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.repository.model.FileEntry;
020 import com.liferay.portal.kernel.repository.model.FileVersion;
021 import com.liferay.portal.kernel.repository.model.Folder;
022 import com.liferay.portal.model.Lock;
023 import com.liferay.portal.security.permission.PermissionChecker;
024 import com.liferay.portlet.expando.model.ExpandoBridge;
025
026 import java.io.InputStream;
027 import java.io.Serializable;
028
029 import java.util.Date;
030 import java.util.List;
031 import java.util.Map;
032
033
036 public class FileEntryProxyBean
037 extends RepositoryModelProxyBean implements FileEntry {
038
039 public FileEntryProxyBean(FileEntry fileEntry, ClassLoader classLoader) {
040 super(classLoader);
041
042 _fileEntry = fileEntry;
043 }
044
045 public boolean containsPermission(
046 PermissionChecker permissionChecker, String actionId)
047 throws PortalException, SystemException {
048
049 return _fileEntry.containsPermission(permissionChecker, actionId);
050 }
051
052 public Map<String, Serializable> getAttributes() {
053 return _fileEntry.getAttributes();
054 }
055
056 public long getCompanyId() {
057 return _fileEntry.getCompanyId();
058 }
059
060 public InputStream getContentStream()
061 throws PortalException, SystemException {
062
063 return _fileEntry.getContentStream();
064 }
065
066 public InputStream getContentStream(String version)
067 throws PortalException, SystemException {
068
069 return _fileEntry.getContentStream(version);
070 }
071
072 public Date getCreateDate() {
073 return _fileEntry.getCreateDate();
074 }
075
076 public String getDescription() {
077 return _fileEntry.getDescription();
078 }
079
080 public ExpandoBridge getExpandoBridge() {
081 ExpandoBridge expandoBridge = _fileEntry.getExpandoBridge();
082
083 return (ExpandoBridge)newProxyInstance(
084 expandoBridge, ExpandoBridge.class);
085 }
086
087 public String getExtension() {
088 return _fileEntry.getExtension();
089 }
090
091 public long getFileEntryId() {
092 return _fileEntry.getFileEntryId();
093 }
094
095 public FileVersion getFileVersion()
096 throws PortalException, SystemException {
097
098 FileVersion fileVersion = _fileEntry.getFileVersion();
099
100 return newFileVersionProxyBean(fileVersion);
101 }
102
103 public FileVersion getFileVersion(String version)
104 throws PortalException, SystemException {
105
106 FileVersion fileVersion = _fileEntry.getFileVersion(version);
107
108 return newFileVersionProxyBean(fileVersion);
109 }
110
111 public List<FileVersion> getFileVersions(int status)
112 throws SystemException {
113
114 List<FileVersion> fileVersions = _fileEntry.getFileVersions(status);
115
116 return toFileVersionProxyBeans(fileVersions);
117 }
118
119 public Folder getFolder() {
120 Folder folder = _fileEntry.getFolder();
121
122 return newFolderProxyBean(folder);
123 }
124
125 public long getFolderId() {
126 return _fileEntry.getFolderId();
127 }
128
129 public long getGroupId() {
130 return _fileEntry.getGroupId();
131 }
132
133 public String getIcon() {
134 return _fileEntry.getIcon();
135 }
136
137 public FileVersion getLatestFileVersion()
138 throws PortalException, SystemException {
139
140 FileVersion fileVersion = _fileEntry.getLatestFileVersion();
141
142 return newFileVersionProxyBean(fileVersion);
143 }
144
145 public Lock getLock() {
146 Lock lock = _fileEntry.getLock();
147
148 return (Lock)newProxyInstance(lock, Lock.class);
149 }
150
151 public String getMimeType() {
152 return _fileEntry.getMimeType();
153 }
154
155 public String getMimeType(String version) {
156 return _fileEntry.getMimeType(version);
157 }
158
159 public Object getModel() {
160 return _fileEntry.getModel();
161 }
162
163 public Class<?> getModelClass() {
164 return _fileEntry.getModelClass();
165 }
166
167 public String getModelClassName() {
168 return _fileEntry.getModelClassName();
169 }
170
171 public Date getModifiedDate() {
172 return _fileEntry.getModifiedDate();
173 }
174
175 public long getPrimaryKey() {
176 return _fileEntry.getPrimaryKey();
177 }
178
179 public Serializable getPrimaryKeyObj() {
180 return _fileEntry.getPrimaryKeyObj();
181 }
182
183 public int getReadCount() {
184 return _fileEntry.getReadCount();
185 }
186
187 public long getRepositoryId() {
188 return _fileEntry.getRepositoryId();
189 }
190
191 public long getSize() {
192 return _fileEntry.getSize();
193 }
194
195 public String getTitle() {
196 return _fileEntry.getTitle();
197 }
198
199 public long getUserId() {
200 return _fileEntry.getUserId();
201 }
202
203 public String getUserName() {
204 return _fileEntry.getUserName();
205 }
206
207 public String getUserUuid() throws SystemException {
208 return _fileEntry.getUserUuid();
209 }
210
211 public String getUuid() {
212 return _fileEntry.getUuid();
213 }
214
215 public String getVersion() {
216 return _fileEntry.getVersion();
217 }
218
219 public long getVersionUserId() {
220 return _fileEntry.getVersionUserId();
221 }
222
223 public String getVersionUserName() {
224 return _fileEntry.getVersionUserName();
225 }
226
227 public String getVersionUserUuid() throws SystemException {
228 return _fileEntry.getVersionUserUuid();
229 }
230
231 public boolean hasLock() {
232 return _fileEntry.hasLock();
233 }
234
235 public boolean isCheckedOut() {
236 return _fileEntry.isCheckedOut();
237 }
238
239 public boolean isDefaultRepository() {
240 return _fileEntry.isDefaultRepository();
241 }
242
243 public boolean isEscapedModel() {
244 return _fileEntry.isEscapedModel();
245 }
246
247 public boolean isSupportsLocking() {
248 return _fileEntry.isSupportsLocking();
249 }
250
251 public boolean isSupportsMetadata() {
252 return _fileEntry.isSupportsMetadata();
253 }
254
255 public boolean isSupportsSocial() {
256 return _fileEntry.isSupportsSocial();
257 }
258
259 public void setCompanyId(long companyId) {
260 _fileEntry.setCompanyId(companyId);
261 }
262
263 public void setCreateDate(Date date) {
264 _fileEntry.setCreateDate(date);
265 }
266
267 public void setGroupId(long groupId) {
268 _fileEntry.setGroupId(groupId);
269 }
270
271 public void setModifiedDate(Date date) {
272 _fileEntry.setModifiedDate(date);
273 }
274
275 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
276 _fileEntry.setPrimaryKeyObj(primaryKeyObj);
277 }
278
279 public void setUserId(long userId) {
280 _fileEntry.setUserId(userId);
281 }
282
283 public void setUserName(String userName) {
284 _fileEntry.setUserName(userName);
285 }
286
287 public void setUserUuid(String userUuid) {
288 _fileEntry.setUserUuid(userUuid);
289 }
290
291 public FileEntry toEscapedModel() {
292 FileEntry fileEntry = _fileEntry.toEscapedModel();
293
294 return newFileEntryProxyBean(fileEntry);
295 }
296
297 private FileEntry _fileEntry;
298
299 }