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.service.ServiceContext serviceContext) {
204 _resourceAction.setExpandoBridgeAttributes(serviceContext);
205 }
206
207 @Override
208 public java.lang.Object clone() {
209 return new ResourceActionWrapper((ResourceAction)_resourceAction.clone());
210 }
211
212 public int compareTo(com.liferay.portal.model.ResourceAction resourceAction) {
213 return _resourceAction.compareTo(resourceAction);
214 }
215
216 @Override
217 public int hashCode() {
218 return _resourceAction.hashCode();
219 }
220
221 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.ResourceAction> toCacheModel() {
222 return _resourceAction.toCacheModel();
223 }
224
225 public com.liferay.portal.model.ResourceAction toEscapedModel() {
226 return new ResourceActionWrapper(_resourceAction.toEscapedModel());
227 }
228
229 public com.liferay.portal.model.ResourceAction toUnescapedModel() {
230 return new ResourceActionWrapper(_resourceAction.toUnescapedModel());
231 }
232
233 @Override
234 public java.lang.String toString() {
235 return _resourceAction.toString();
236 }
237
238 public java.lang.String toXmlString() {
239 return _resourceAction.toXmlString();
240 }
241
242 public void persist()
243 throws com.liferay.portal.kernel.exception.SystemException {
244 _resourceAction.persist();
245 }
246
247
250 public ResourceAction getWrappedResourceAction() {
251 return _resourceAction;
252 }
253
254 public ResourceAction getWrappedModel() {
255 return _resourceAction;
256 }
257
258 public void resetOriginalValues() {
259 _resourceAction.resetOriginalValues();
260 }
261
262 private ResourceAction _resourceAction;
263 }