001
014
015 package com.liferay.portlet.asset.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 AssetLinkSoap implements Serializable {
033 public static AssetLinkSoap toSoapModel(AssetLink model) {
034 AssetLinkSoap soapModel = new AssetLinkSoap();
035
036 soapModel.setLinkId(model.getLinkId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setEntryId1(model.getEntryId1());
042 soapModel.setEntryId2(model.getEntryId2());
043 soapModel.setType(model.getType());
044 soapModel.setWeight(model.getWeight());
045
046 return soapModel;
047 }
048
049 public static AssetLinkSoap[] toSoapModels(AssetLink[] models) {
050 AssetLinkSoap[] soapModels = new AssetLinkSoap[models.length];
051
052 for (int i = 0; i < models.length; i++) {
053 soapModels[i] = toSoapModel(models[i]);
054 }
055
056 return soapModels;
057 }
058
059 public static AssetLinkSoap[][] toSoapModels(AssetLink[][] models) {
060 AssetLinkSoap[][] soapModels = null;
061
062 if (models.length > 0) {
063 soapModels = new AssetLinkSoap[models.length][models[0].length];
064 }
065 else {
066 soapModels = new AssetLinkSoap[0][0];
067 }
068
069 for (int i = 0; i < models.length; i++) {
070 soapModels[i] = toSoapModels(models[i]);
071 }
072
073 return soapModels;
074 }
075
076 public static AssetLinkSoap[] toSoapModels(List<AssetLink> models) {
077 List<AssetLinkSoap> soapModels = new ArrayList<AssetLinkSoap>(models.size());
078
079 for (AssetLink model : models) {
080 soapModels.add(toSoapModel(model));
081 }
082
083 return soapModels.toArray(new AssetLinkSoap[soapModels.size()]);
084 }
085
086 public AssetLinkSoap() {
087 }
088
089 public long getPrimaryKey() {
090 return _linkId;
091 }
092
093 public void setPrimaryKey(long pk) {
094 setLinkId(pk);
095 }
096
097 public long getLinkId() {
098 return _linkId;
099 }
100
101 public void setLinkId(long linkId) {
102 _linkId = linkId;
103 }
104
105 public long getCompanyId() {
106 return _companyId;
107 }
108
109 public void setCompanyId(long companyId) {
110 _companyId = companyId;
111 }
112
113 public long getUserId() {
114 return _userId;
115 }
116
117 public void setUserId(long userId) {
118 _userId = userId;
119 }
120
121 public String getUserName() {
122 return _userName;
123 }
124
125 public void setUserName(String userName) {
126 _userName = userName;
127 }
128
129 public Date getCreateDate() {
130 return _createDate;
131 }
132
133 public void setCreateDate(Date createDate) {
134 _createDate = createDate;
135 }
136
137 public long getEntryId1() {
138 return _entryId1;
139 }
140
141 public void setEntryId1(long entryId1) {
142 _entryId1 = entryId1;
143 }
144
145 public long getEntryId2() {
146 return _entryId2;
147 }
148
149 public void setEntryId2(long entryId2) {
150 _entryId2 = entryId2;
151 }
152
153 public int getType() {
154 return _type;
155 }
156
157 public void setType(int type) {
158 _type = type;
159 }
160
161 public int getWeight() {
162 return _weight;
163 }
164
165 public void setWeight(int weight) {
166 _weight = weight;
167 }
168
169 private long _linkId;
170 private long _companyId;
171 private long _userId;
172 private String _userName;
173 private Date _createDate;
174 private long _entryId1;
175 private long _entryId2;
176 private int _type;
177 private int _weight;
178 }