001
014
015 package com.liferay.portlet.asset.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
030 public class AssetVocabularySoap implements Serializable {
031 public static AssetVocabularySoap toSoapModel(AssetVocabulary model) {
032 AssetVocabularySoap soapModel = new AssetVocabularySoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setVocabularyId(model.getVocabularyId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setName(model.getName());
043 soapModel.setTitle(model.getTitle());
044 soapModel.setDescription(model.getDescription());
045 soapModel.setSettings(model.getSettings());
046
047 return soapModel;
048 }
049
050 public static AssetVocabularySoap[] toSoapModels(AssetVocabulary[] models) {
051 AssetVocabularySoap[] soapModels = new AssetVocabularySoap[models.length];
052
053 for (int i = 0; i < models.length; i++) {
054 soapModels[i] = toSoapModel(models[i]);
055 }
056
057 return soapModels;
058 }
059
060 public static AssetVocabularySoap[][] toSoapModels(
061 AssetVocabulary[][] models) {
062 AssetVocabularySoap[][] soapModels = null;
063
064 if (models.length > 0) {
065 soapModels = new AssetVocabularySoap[models.length][models[0].length];
066 }
067 else {
068 soapModels = new AssetVocabularySoap[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 AssetVocabularySoap[] toSoapModels(
079 List<AssetVocabulary> models) {
080 List<AssetVocabularySoap> soapModels = new ArrayList<AssetVocabularySoap>(models.size());
081
082 for (AssetVocabulary model : models) {
083 soapModels.add(toSoapModel(model));
084 }
085
086 return soapModels.toArray(new AssetVocabularySoap[soapModels.size()]);
087 }
088
089 public AssetVocabularySoap() {
090 }
091
092 public long getPrimaryKey() {
093 return _vocabularyId;
094 }
095
096 public void setPrimaryKey(long pk) {
097 setVocabularyId(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 getVocabularyId() {
109 return _vocabularyId;
110 }
111
112 public void setVocabularyId(long vocabularyId) {
113 _vocabularyId = vocabularyId;
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 getTitle() {
173 return _title;
174 }
175
176 public void setTitle(String title) {
177 _title = title;
178 }
179
180 public String getDescription() {
181 return _description;
182 }
183
184 public void setDescription(String description) {
185 _description = description;
186 }
187
188 public String getSettings() {
189 return _settings;
190 }
191
192 public void setSettings(String settings) {
193 _settings = settings;
194 }
195
196 private String _uuid;
197 private long _vocabularyId;
198 private long _groupId;
199 private long _companyId;
200 private long _userId;
201 private String _userName;
202 private Date _createDate;
203 private Date _modifiedDate;
204 private String _name;
205 private String _title;
206 private String _description;
207 private String _settings;
208 }