1
14
15 package com.liferay.portlet.social.model;
16
17 import java.io.Serializable;
18
19 import java.util.ArrayList;
20 import java.util.List;
21
22
39 public class SocialEquityLogSoap implements Serializable {
40 public static SocialEquityLogSoap toSoapModel(SocialEquityLog model) {
41 SocialEquityLogSoap soapModel = new SocialEquityLogSoap();
42
43 soapModel.setEquityLogId(model.getEquityLogId());
44 soapModel.setGroupId(model.getGroupId());
45 soapModel.setCompanyId(model.getCompanyId());
46 soapModel.setUserId(model.getUserId());
47 soapModel.setAssetEntryId(model.getAssetEntryId());
48 soapModel.setActionId(model.getActionId());
49 soapModel.setActionDate(model.getActionDate());
50 soapModel.setType(model.getType());
51 soapModel.setValue(model.getValue());
52 soapModel.setValidity(model.getValidity());
53 soapModel.setActive(model.getActive());
54
55 return soapModel;
56 }
57
58 public static SocialEquityLogSoap[] toSoapModels(SocialEquityLog[] models) {
59 SocialEquityLogSoap[] soapModels = new SocialEquityLogSoap[models.length];
60
61 for (int i = 0; i < models.length; i++) {
62 soapModels[i] = toSoapModel(models[i]);
63 }
64
65 return soapModels;
66 }
67
68 public static SocialEquityLogSoap[][] toSoapModels(
69 SocialEquityLog[][] models) {
70 SocialEquityLogSoap[][] soapModels = null;
71
72 if (models.length > 0) {
73 soapModels = new SocialEquityLogSoap[models.length][models[0].length];
74 }
75 else {
76 soapModels = new SocialEquityLogSoap[0][0];
77 }
78
79 for (int i = 0; i < models.length; i++) {
80 soapModels[i] = toSoapModels(models[i]);
81 }
82
83 return soapModels;
84 }
85
86 public static SocialEquityLogSoap[] toSoapModels(
87 List<SocialEquityLog> models) {
88 List<SocialEquityLogSoap> soapModels = new ArrayList<SocialEquityLogSoap>(models.size());
89
90 for (SocialEquityLog model : models) {
91 soapModels.add(toSoapModel(model));
92 }
93
94 return soapModels.toArray(new SocialEquityLogSoap[soapModels.size()]);
95 }
96
97 public SocialEquityLogSoap() {
98 }
99
100 public long getPrimaryKey() {
101 return _equityLogId;
102 }
103
104 public void setPrimaryKey(long pk) {
105 setEquityLogId(pk);
106 }
107
108 public long getEquityLogId() {
109 return _equityLogId;
110 }
111
112 public void setEquityLogId(long equityLogId) {
113 _equityLogId = equityLogId;
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 long getAssetEntryId() {
141 return _assetEntryId;
142 }
143
144 public void setAssetEntryId(long assetEntryId) {
145 _assetEntryId = assetEntryId;
146 }
147
148 public String getActionId() {
149 return _actionId;
150 }
151
152 public void setActionId(String actionId) {
153 _actionId = actionId;
154 }
155
156 public int getActionDate() {
157 return _actionDate;
158 }
159
160 public void setActionDate(int actionDate) {
161 _actionDate = actionDate;
162 }
163
164 public int getType() {
165 return _type;
166 }
167
168 public void setType(int type) {
169 _type = type;
170 }
171
172 public int getValue() {
173 return _value;
174 }
175
176 public void setValue(int value) {
177 _value = value;
178 }
179
180 public int getValidity() {
181 return _validity;
182 }
183
184 public void setValidity(int validity) {
185 _validity = validity;
186 }
187
188 public boolean getActive() {
189 return _active;
190 }
191
192 public boolean isActive() {
193 return _active;
194 }
195
196 public void setActive(boolean active) {
197 _active = active;
198 }
199
200 private long _equityLogId;
201 private long _groupId;
202 private long _companyId;
203 private long _userId;
204 private long _assetEntryId;
205 private String _actionId;
206 private int _actionDate;
207 private int _type;
208 private int _value;
209 private int _validity;
210 private boolean _active;
211 }