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