001
014
015 package com.liferay.portlet.wiki.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
033 public class WikiNodeSoap implements Serializable {
034 public static WikiNodeSoap toSoapModel(WikiNode model) {
035 WikiNodeSoap soapModel = new WikiNodeSoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setNodeId(model.getNodeId());
039 soapModel.setGroupId(model.getGroupId());
040 soapModel.setCompanyId(model.getCompanyId());
041 soapModel.setUserId(model.getUserId());
042 soapModel.setUserName(model.getUserName());
043 soapModel.setCreateDate(model.getCreateDate());
044 soapModel.setModifiedDate(model.getModifiedDate());
045 soapModel.setName(model.getName());
046 soapModel.setDescription(model.getDescription());
047 soapModel.setLastPostDate(model.getLastPostDate());
048
049 return soapModel;
050 }
051
052 public static WikiNodeSoap[] toSoapModels(WikiNode[] models) {
053 WikiNodeSoap[] soapModels = new WikiNodeSoap[models.length];
054
055 for (int i = 0; i < models.length; i++) {
056 soapModels[i] = toSoapModel(models[i]);
057 }
058
059 return soapModels;
060 }
061
062 public static WikiNodeSoap[][] toSoapModels(WikiNode[][] models) {
063 WikiNodeSoap[][] soapModels = null;
064
065 if (models.length > 0) {
066 soapModels = new WikiNodeSoap[models.length][models[0].length];
067 }
068 else {
069 soapModels = new WikiNodeSoap[0][0];
070 }
071
072 for (int i = 0; i < models.length; i++) {
073 soapModels[i] = toSoapModels(models[i]);
074 }
075
076 return soapModels;
077 }
078
079 public static WikiNodeSoap[] toSoapModels(List<WikiNode> models) {
080 List<WikiNodeSoap> soapModels = new ArrayList<WikiNodeSoap>(models.size());
081
082 for (WikiNode model : models) {
083 soapModels.add(toSoapModel(model));
084 }
085
086 return soapModels.toArray(new WikiNodeSoap[soapModels.size()]);
087 }
088
089 public WikiNodeSoap() {
090 }
091
092 public long getPrimaryKey() {
093 return _nodeId;
094 }
095
096 public void setPrimaryKey(long pk) {
097 setNodeId(pk);
098 }
099
100 public String getUuid() {
101 return _uuid;
102 }
103
104 public void setUuid(String uuid) {
105 _uuid = uuid;
106 }
107
108 public long getNodeId() {
109 return _nodeId;
110 }
111
112 public void setNodeId(long nodeId) {
113 _nodeId = nodeId;
114 }
115
116 public long getGroupId() {
117 return _groupId;
118 }
119
120 public void setGroupId(long groupId) {
121 _groupId = groupId;
122 }
123
124 public long getCompanyId() {
125 return _companyId;
126 }
127
128 public void setCompanyId(long companyId) {
129 _companyId = companyId;
130 }
131
132 public long getUserId() {
133 return _userId;
134 }
135
136 public void setUserId(long userId) {
137 _userId = userId;
138 }
139
140 public String getUserName() {
141 return _userName;
142 }
143
144 public void setUserName(String userName) {
145 _userName = userName;
146 }
147
148 public Date getCreateDate() {
149 return _createDate;
150 }
151
152 public void setCreateDate(Date createDate) {
153 _createDate = createDate;
154 }
155
156 public Date getModifiedDate() {
157 return _modifiedDate;
158 }
159
160 public void setModifiedDate(Date modifiedDate) {
161 _modifiedDate = modifiedDate;
162 }
163
164 public String getName() {
165 return _name;
166 }
167
168 public void setName(String name) {
169 _name = name;
170 }
171
172 public String getDescription() {
173 return _description;
174 }
175
176 public void setDescription(String description) {
177 _description = description;
178 }
179
180 public Date getLastPostDate() {
181 return _lastPostDate;
182 }
183
184 public void setLastPostDate(Date lastPostDate) {
185 _lastPostDate = lastPostDate;
186 }
187
188 private String _uuid;
189 private long _nodeId;
190 private long _groupId;
191 private long _companyId;
192 private long _userId;
193 private String _userName;
194 private Date _createDate;
195 private Date _modifiedDate;
196 private String _name;
197 private String _description;
198 private Date _lastPostDate;
199 }