1
14
15 package com.liferay.portlet.asset.model;
16
17 import java.io.Serializable;
18
19 import java.util.ArrayList;
20 import java.util.Date;
21 import java.util.List;
22
23
40 public class AssetVocabularySoap implements Serializable {
41 public static AssetVocabularySoap toSoapModel(AssetVocabulary model) {
42 AssetVocabularySoap soapModel = new AssetVocabularySoap();
43
44 soapModel.setUuid(model.getUuid());
45 soapModel.setVocabularyId(model.getVocabularyId());
46 soapModel.setGroupId(model.getGroupId());
47 soapModel.setCompanyId(model.getCompanyId());
48 soapModel.setUserId(model.getUserId());
49 soapModel.setUserName(model.getUserName());
50 soapModel.setCreateDate(model.getCreateDate());
51 soapModel.setModifiedDate(model.getModifiedDate());
52 soapModel.setName(model.getName());
53 soapModel.setTitle(model.getTitle());
54 soapModel.setDescription(model.getDescription());
55 soapModel.setSettings(model.getSettings());
56
57 return soapModel;
58 }
59
60 public static AssetVocabularySoap[] toSoapModels(AssetVocabulary[] models) {
61 AssetVocabularySoap[] soapModels = new AssetVocabularySoap[models.length];
62
63 for (int i = 0; i < models.length; i++) {
64 soapModels[i] = toSoapModel(models[i]);
65 }
66
67 return soapModels;
68 }
69
70 public static AssetVocabularySoap[][] toSoapModels(
71 AssetVocabulary[][] models) {
72 AssetVocabularySoap[][] soapModels = null;
73
74 if (models.length > 0) {
75 soapModels = new AssetVocabularySoap[models.length][models[0].length];
76 }
77 else {
78 soapModels = new AssetVocabularySoap[0][0];
79 }
80
81 for (int i = 0; i < models.length; i++) {
82 soapModels[i] = toSoapModels(models[i]);
83 }
84
85 return soapModels;
86 }
87
88 public static AssetVocabularySoap[] toSoapModels(
89 List<AssetVocabulary> models) {
90 List<AssetVocabularySoap> soapModels = new ArrayList<AssetVocabularySoap>(models.size());
91
92 for (AssetVocabulary model : models) {
93 soapModels.add(toSoapModel(model));
94 }
95
96 return soapModels.toArray(new AssetVocabularySoap[soapModels.size()]);
97 }
98
99 public AssetVocabularySoap() {
100 }
101
102 public long getPrimaryKey() {
103 return _vocabularyId;
104 }
105
106 public void setPrimaryKey(long pk) {
107 setVocabularyId(pk);
108 }
109
110 public String getUuid() {
111 return _uuid;
112 }
113
114 public void setUuid(String uuid) {
115 _uuid = uuid;
116 }
117
118 public long getVocabularyId() {
119 return _vocabularyId;
120 }
121
122 public void setVocabularyId(long vocabularyId) {
123 _vocabularyId = vocabularyId;
124 }
125
126 public long getGroupId() {
127 return _groupId;
128 }
129
130 public void setGroupId(long groupId) {
131 _groupId = groupId;
132 }
133
134 public long getCompanyId() {
135 return _companyId;
136 }
137
138 public void setCompanyId(long companyId) {
139 _companyId = companyId;
140 }
141
142 public long getUserId() {
143 return _userId;
144 }
145
146 public void setUserId(long userId) {
147 _userId = userId;
148 }
149
150 public String getUserName() {
151 return _userName;
152 }
153
154 public void setUserName(String userName) {
155 _userName = userName;
156 }
157
158 public Date getCreateDate() {
159 return _createDate;
160 }
161
162 public void setCreateDate(Date createDate) {
163 _createDate = createDate;
164 }
165
166 public Date getModifiedDate() {
167 return _modifiedDate;
168 }
169
170 public void setModifiedDate(Date modifiedDate) {
171 _modifiedDate = modifiedDate;
172 }
173
174 public String getName() {
175 return _name;
176 }
177
178 public void setName(String name) {
179 _name = name;
180 }
181
182 public String getTitle() {
183 return _title;
184 }
185
186 public void setTitle(String title) {
187 _title = title;
188 }
189
190 public String getDescription() {
191 return _description;
192 }
193
194 public void setDescription(String description) {
195 _description = description;
196 }
197
198 public String getSettings() {
199 return _settings;
200 }
201
202 public void setSettings(String settings) {
203 _settings = settings;
204 }
205
206 private String _uuid;
207 private long _vocabularyId;
208 private long _groupId;
209 private long _companyId;
210 private long _userId;
211 private String _userName;
212 private Date _createDate;
213 private Date _modifiedDate;
214 private String _name;
215 private String _title;
216 private String _description;
217 private String _settings;
218 }