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 AssetTagSoap implements Serializable {
031 public static AssetTagSoap toSoapModel(AssetTag model) {
032 AssetTagSoap soapModel = new AssetTagSoap();
033
034 soapModel.setTagId(model.getTagId());
035 soapModel.setGroupId(model.getGroupId());
036 soapModel.setCompanyId(model.getCompanyId());
037 soapModel.setUserId(model.getUserId());
038 soapModel.setUserName(model.getUserName());
039 soapModel.setCreateDate(model.getCreateDate());
040 soapModel.setModifiedDate(model.getModifiedDate());
041 soapModel.setName(model.getName());
042 soapModel.setAssetCount(model.getAssetCount());
043
044 return soapModel;
045 }
046
047 public static AssetTagSoap[] toSoapModels(AssetTag[] models) {
048 AssetTagSoap[] soapModels = new AssetTagSoap[models.length];
049
050 for (int i = 0; i < models.length; i++) {
051 soapModels[i] = toSoapModel(models[i]);
052 }
053
054 return soapModels;
055 }
056
057 public static AssetTagSoap[][] toSoapModels(AssetTag[][] models) {
058 AssetTagSoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new AssetTagSoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new AssetTagSoap[0][0];
065 }
066
067 for (int i = 0; i < models.length; i++) {
068 soapModels[i] = toSoapModels(models[i]);
069 }
070
071 return soapModels;
072 }
073
074 public static AssetTagSoap[] toSoapModels(List<AssetTag> models) {
075 List<AssetTagSoap> soapModels = new ArrayList<AssetTagSoap>(models.size());
076
077 for (AssetTag model : models) {
078 soapModels.add(toSoapModel(model));
079 }
080
081 return soapModels.toArray(new AssetTagSoap[soapModels.size()]);
082 }
083
084 public AssetTagSoap() {
085 }
086
087 public long getPrimaryKey() {
088 return _tagId;
089 }
090
091 public void setPrimaryKey(long pk) {
092 setTagId(pk);
093 }
094
095 public long getTagId() {
096 return _tagId;
097 }
098
099 public void setTagId(long tagId) {
100 _tagId = tagId;
101 }
102
103 public long getGroupId() {
104 return _groupId;
105 }
106
107 public void setGroupId(long groupId) {
108 _groupId = groupId;
109 }
110
111 public long getCompanyId() {
112 return _companyId;
113 }
114
115 public void setCompanyId(long companyId) {
116 _companyId = companyId;
117 }
118
119 public long getUserId() {
120 return _userId;
121 }
122
123 public void setUserId(long userId) {
124 _userId = userId;
125 }
126
127 public String getUserName() {
128 return _userName;
129 }
130
131 public void setUserName(String userName) {
132 _userName = userName;
133 }
134
135 public Date getCreateDate() {
136 return _createDate;
137 }
138
139 public void setCreateDate(Date createDate) {
140 _createDate = createDate;
141 }
142
143 public Date getModifiedDate() {
144 return _modifiedDate;
145 }
146
147 public void setModifiedDate(Date modifiedDate) {
148 _modifiedDate = modifiedDate;
149 }
150
151 public String getName() {
152 return _name;
153 }
154
155 public void setName(String name) {
156 _name = name;
157 }
158
159 public int getAssetCount() {
160 return _assetCount;
161 }
162
163 public void setAssetCount(int assetCount) {
164 _assetCount = assetCount;
165 }
166
167 private long _tagId;
168 private long _groupId;
169 private long _companyId;
170 private long _userId;
171 private String _userName;
172 private Date _createDate;
173 private Date _modifiedDate;
174 private String _name;
175 private int _assetCount;
176 }