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