001
014
015 package com.liferay.portlet.journal.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 JournalStructureSoap implements Serializable {
034 public static JournalStructureSoap toSoapModel(JournalStructure model) {
035 JournalStructureSoap soapModel = new JournalStructureSoap();
036
037 soapModel.setUuid(model.getUuid());
038 soapModel.setId(model.getId());
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.setStructureId(model.getStructureId());
046 soapModel.setParentStructureId(model.getParentStructureId());
047 soapModel.setName(model.getName());
048 soapModel.setDescription(model.getDescription());
049 soapModel.setXsd(model.getXsd());
050
051 return soapModel;
052 }
053
054 public static JournalStructureSoap[] toSoapModels(JournalStructure[] models) {
055 JournalStructureSoap[] soapModels = new JournalStructureSoap[models.length];
056
057 for (int i = 0; i < models.length; i++) {
058 soapModels[i] = toSoapModel(models[i]);
059 }
060
061 return soapModels;
062 }
063
064 public static JournalStructureSoap[][] toSoapModels(
065 JournalStructure[][] models) {
066 JournalStructureSoap[][] soapModels = null;
067
068 if (models.length > 0) {
069 soapModels = new JournalStructureSoap[models.length][models[0].length];
070 }
071 else {
072 soapModels = new JournalStructureSoap[0][0];
073 }
074
075 for (int i = 0; i < models.length; i++) {
076 soapModels[i] = toSoapModels(models[i]);
077 }
078
079 return soapModels;
080 }
081
082 public static JournalStructureSoap[] toSoapModels(
083 List<JournalStructure> models) {
084 List<JournalStructureSoap> soapModels = new ArrayList<JournalStructureSoap>(models.size());
085
086 for (JournalStructure model : models) {
087 soapModels.add(toSoapModel(model));
088 }
089
090 return soapModels.toArray(new JournalStructureSoap[soapModels.size()]);
091 }
092
093 public JournalStructureSoap() {
094 }
095
096 public long getPrimaryKey() {
097 return _id;
098 }
099
100 public void setPrimaryKey(long pk) {
101 setId(pk);
102 }
103
104 public String getUuid() {
105 return _uuid;
106 }
107
108 public void setUuid(String uuid) {
109 _uuid = uuid;
110 }
111
112 public long getId() {
113 return _id;
114 }
115
116 public void setId(long id) {
117 _id = id;
118 }
119
120 public long getGroupId() {
121 return _groupId;
122 }
123
124 public void setGroupId(long groupId) {
125 _groupId = groupId;
126 }
127
128 public long getCompanyId() {
129 return _companyId;
130 }
131
132 public void setCompanyId(long companyId) {
133 _companyId = companyId;
134 }
135
136 public long getUserId() {
137 return _userId;
138 }
139
140 public void setUserId(long userId) {
141 _userId = userId;
142 }
143
144 public String getUserName() {
145 return _userName;
146 }
147
148 public void setUserName(String userName) {
149 _userName = userName;
150 }
151
152 public Date getCreateDate() {
153 return _createDate;
154 }
155
156 public void setCreateDate(Date createDate) {
157 _createDate = createDate;
158 }
159
160 public Date getModifiedDate() {
161 return _modifiedDate;
162 }
163
164 public void setModifiedDate(Date modifiedDate) {
165 _modifiedDate = modifiedDate;
166 }
167
168 public String getStructureId() {
169 return _structureId;
170 }
171
172 public void setStructureId(String structureId) {
173 _structureId = structureId;
174 }
175
176 public String getParentStructureId() {
177 return _parentStructureId;
178 }
179
180 public void setParentStructureId(String parentStructureId) {
181 _parentStructureId = parentStructureId;
182 }
183
184 public String getName() {
185 return _name;
186 }
187
188 public void setName(String name) {
189 _name = name;
190 }
191
192 public String getDescription() {
193 return _description;
194 }
195
196 public void setDescription(String description) {
197 _description = description;
198 }
199
200 public String getXsd() {
201 return _xsd;
202 }
203
204 public void setXsd(String xsd) {
205 _xsd = xsd;
206 }
207
208 private String _uuid;
209 private long _id;
210 private long _groupId;
211 private long _companyId;
212 private long _userId;
213 private String _userName;
214 private Date _createDate;
215 private Date _modifiedDate;
216 private String _structureId;
217 private String _parentStructureId;
218 private String _name;
219 private String _description;
220 private String _xsd;
221 }