001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class ResourceActionWrapper implements ResourceAction,
030 ModelWrapper<ResourceAction> {
031 public ResourceActionWrapper(ResourceAction resourceAction) {
032 _resourceAction = resourceAction;
033 }
034
035 public Class<?> getModelClass() {
036 return ResourceAction.class;
037 }
038
039 public String getModelClassName() {
040 return ResourceAction.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("resourceActionId", getResourceActionId());
047 attributes.put("name", getName());
048 attributes.put("actionId", getActionId());
049 attributes.put("bitwiseValue", getBitwiseValue());
050
051 return attributes;
052 }
053
054 public void setModelAttributes(Map<String, Object> attributes) {
055 Long resourceActionId = (Long)attributes.get("resourceActionId");
056
057 if (resourceActionId != null) {
058 setResourceActionId(resourceActionId);
059 }
060
061 String name = (String)attributes.get("name");
062
063 if (name != null) {
064 setName(name);
065 }
066
067 String actionId = (String)attributes.get("actionId");
068
069 if (actionId != null) {
070 setActionId(actionId);
071 }
072
073 Long bitwiseValue = (Long)attributes.get("bitwiseValue");
074
075 if (bitwiseValue != null) {
076 setBitwiseValue(bitwiseValue);
077 }
078 }
079
080
085 public long getPrimaryKey() {
086 return _resourceAction.getPrimaryKey();
087 }
088
089
094 public void setPrimaryKey(long primaryKey) {
095 _resourceAction.setPrimaryKey(primaryKey);
096 }
097
098
103 public long getResourceActionId() {
104 return _resourceAction.getResourceActionId();
105 }
106
107
112 public void setResourceActionId(long resourceActionId) {
113 _resourceAction.setResourceActionId(resourceActionId);
114 }
115
116
121 public java.lang.String getName() {
122 return _resourceAction.getName();
123 }
124
125
130 public void setName(java.lang.String name) {
131 _resourceAction.setName(name);
132 }
133
134
139 public java.lang.String getActionId() {
140 return _resourceAction.getActionId();
141 }
142
143
148 public void setActionId(java.lang.String actionId) {
149 _resourceAction.setActionId(actionId);
150 }
151
152
157 public long getBitwiseValue() {
158 return _resourceAction.getBitwiseValue();
159 }
160
161
166 public void setBitwiseValue(long bitwiseValue) {
167 _resourceAction.setBitwiseValue(bitwiseValue);
168 }
169
170 public boolean isNew() {
171 return _resourceAction.isNew();
172 }
173
174 public void setNew(boolean n) {
175 _resourceAction.setNew(n);
176 }
177
178 public boolean isCachedModel() {
179 return _resourceAction.isCachedModel();
180 }
181
182 public void setCachedModel(boolean cachedModel) {
183 _resourceAction.setCachedModel(cachedModel);
184 }
185
186 public boolean isEscapedModel() {
187 return _resourceAction.isEscapedModel();
188 }
189
190 public java.io.Serializable getPrimaryKeyObj() {
191 return _resourceAction.getPrimaryKeyObj();
192 }
193
194 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
195 _resourceAction.setPrimaryKeyObj(primaryKeyObj);
196 }
197
198 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
199 return _resourceAction.getExpandoBridge();
200 }
201
202 public void setExpandoBridgeAttributes(
203 com.liferay.portal.model.BaseModel<?> baseModel) {
204 _resourceAction.setExpandoBridgeAttributes(baseModel);
205 }
206
207 public void setExpandoBridgeAttributes(
208 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
209 _resourceAction.setExpandoBridgeAttributes(expandoBridge);
210 }
211
212 public void setExpandoBridgeAttributes(
213 com.liferay.portal.service.ServiceContext serviceContext) {
214 _resourceAction.setExpandoBridgeAttributes(serviceContext);
215 }
216
217 @Override
218 public java.lang.Object clone() {
219 return new ResourceActionWrapper((ResourceAction)_resourceAction.clone());
220 }
221
222 public int compareTo(com.liferay.portal.model.ResourceAction resourceAction) {
223 return _resourceAction.compareTo(resourceAction);
224 }
225
226 @Override
227 public int hashCode() {
228 return _resourceAction.hashCode();
229 }
230
231 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ResourceAction> toCacheModel() {
232 return _resourceAction.toCacheModel();
233 }
234
235 public com.liferay.portal.model.ResourceAction toEscapedModel() {
236 return new ResourceActionWrapper(_resourceAction.toEscapedModel());
237 }
238
239 public com.liferay.portal.model.ResourceAction toUnescapedModel() {
240 return new ResourceActionWrapper(_resourceAction.toUnescapedModel());
241 }
242
243 @Override
244 public java.lang.String toString() {
245 return _resourceAction.toString();
246 }
247
248 public java.lang.String toXmlString() {
249 return _resourceAction.toXmlString();
250 }
251
252 public void persist()
253 throws com.liferay.portal.kernel.exception.SystemException {
254 _resourceAction.persist();
255 }
256
257
260 public ResourceAction getWrappedResourceAction() {
261 return _resourceAction;
262 }
263
264 public ResourceAction getWrappedModel() {
265 return _resourceAction;
266 }
267
268 public void resetOriginalValues() {
269 _resourceAction.resetOriginalValues();
270 }
271
272 private ResourceAction _resourceAction;
273 }