001
014
015 package com.liferay.portlet.social.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.List;
021
022
028 public class SocialActivitySoap implements Serializable {
029 public static SocialActivitySoap toSoapModel(SocialActivity model) {
030 SocialActivitySoap soapModel = new SocialActivitySoap();
031
032 soapModel.setActivityId(model.getActivityId());
033 soapModel.setGroupId(model.getGroupId());
034 soapModel.setCompanyId(model.getCompanyId());
035 soapModel.setUserId(model.getUserId());
036 soapModel.setCreateDate(model.getCreateDate());
037 soapModel.setMirrorActivityId(model.getMirrorActivityId());
038 soapModel.setClassNameId(model.getClassNameId());
039 soapModel.setClassPK(model.getClassPK());
040 soapModel.setType(model.getType());
041 soapModel.setExtraData(model.getExtraData());
042 soapModel.setReceiverUserId(model.getReceiverUserId());
043
044 return soapModel;
045 }
046
047 public static SocialActivitySoap[] toSoapModels(SocialActivity[] models) {
048 SocialActivitySoap[] soapModels = new SocialActivitySoap[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 SocialActivitySoap[][] toSoapModels(SocialActivity[][] models) {
058 SocialActivitySoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new SocialActivitySoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new SocialActivitySoap[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 SocialActivitySoap[] toSoapModels(List<SocialActivity> models) {
075 List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
076
077 for (SocialActivity model : models) {
078 soapModels.add(toSoapModel(model));
079 }
080
081 return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
082 }
083
084 public SocialActivitySoap() {
085 }
086
087 public long getPrimaryKey() {
088 return _activityId;
089 }
090
091 public void setPrimaryKey(long pk) {
092 setActivityId(pk);
093 }
094
095 public long getActivityId() {
096 return _activityId;
097 }
098
099 public void setActivityId(long activityId) {
100 _activityId = activityId;
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 long getCreateDate() {
128 return _createDate;
129 }
130
131 public void setCreateDate(long createDate) {
132 _createDate = createDate;
133 }
134
135 public long getMirrorActivityId() {
136 return _mirrorActivityId;
137 }
138
139 public void setMirrorActivityId(long mirrorActivityId) {
140 _mirrorActivityId = mirrorActivityId;
141 }
142
143 public long getClassNameId() {
144 return _classNameId;
145 }
146
147 public void setClassNameId(long classNameId) {
148 _classNameId = classNameId;
149 }
150
151 public long getClassPK() {
152 return _classPK;
153 }
154
155 public void setClassPK(long classPK) {
156 _classPK = classPK;
157 }
158
159 public int getType() {
160 return _type;
161 }
162
163 public void setType(int type) {
164 _type = type;
165 }
166
167 public String getExtraData() {
168 return _extraData;
169 }
170
171 public void setExtraData(String extraData) {
172 _extraData = extraData;
173 }
174
175 public long getReceiverUserId() {
176 return _receiverUserId;
177 }
178
179 public void setReceiverUserId(long receiverUserId) {
180 _receiverUserId = receiverUserId;
181 }
182
183 private long _activityId;
184 private long _groupId;
185 private long _companyId;
186 private long _userId;
187 private long _createDate;
188 private long _mirrorActivityId;
189 private long _classNameId;
190 private long _classPK;
191 private int _type;
192 private String _extraData;
193 private long _receiverUserId;
194 }