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 SocialActivityLimitSoap implements Serializable {
029 public static SocialActivityLimitSoap toSoapModel(SocialActivityLimit model) {
030 SocialActivityLimitSoap soapModel = new SocialActivityLimitSoap();
031
032 soapModel.setActivityLimitId(model.getActivityLimitId());
033 soapModel.setGroupId(model.getGroupId());
034 soapModel.setCompanyId(model.getCompanyId());
035 soapModel.setUserId(model.getUserId());
036 soapModel.setClassNameId(model.getClassNameId());
037 soapModel.setClassPK(model.getClassPK());
038 soapModel.setActivityType(model.getActivityType());
039 soapModel.setActivityCounterName(model.getActivityCounterName());
040 soapModel.setValue(model.getValue());
041
042 return soapModel;
043 }
044
045 public static SocialActivityLimitSoap[] toSoapModels(
046 SocialActivityLimit[] models) {
047 SocialActivityLimitSoap[] soapModels = new SocialActivityLimitSoap[models.length];
048
049 for (int i = 0; i < models.length; i++) {
050 soapModels[i] = toSoapModel(models[i]);
051 }
052
053 return soapModels;
054 }
055
056 public static SocialActivityLimitSoap[][] toSoapModels(
057 SocialActivityLimit[][] models) {
058 SocialActivityLimitSoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new SocialActivityLimitSoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new SocialActivityLimitSoap[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 SocialActivityLimitSoap[] toSoapModels(
075 List<SocialActivityLimit> models) {
076 List<SocialActivityLimitSoap> soapModels = new ArrayList<SocialActivityLimitSoap>(models.size());
077
078 for (SocialActivityLimit model : models) {
079 soapModels.add(toSoapModel(model));
080 }
081
082 return soapModels.toArray(new SocialActivityLimitSoap[soapModels.size()]);
083 }
084
085 public SocialActivityLimitSoap() {
086 }
087
088 public long getPrimaryKey() {
089 return _activityLimitId;
090 }
091
092 public void setPrimaryKey(long pk) {
093 setActivityLimitId(pk);
094 }
095
096 public long getActivityLimitId() {
097 return _activityLimitId;
098 }
099
100 public void setActivityLimitId(long activityLimitId) {
101 _activityLimitId = activityLimitId;
102 }
103
104 public long getGroupId() {
105 return _groupId;
106 }
107
108 public void setGroupId(long groupId) {
109 _groupId = groupId;
110 }
111
112 public long getCompanyId() {
113 return _companyId;
114 }
115
116 public void setCompanyId(long companyId) {
117 _companyId = companyId;
118 }
119
120 public long getUserId() {
121 return _userId;
122 }
123
124 public void setUserId(long userId) {
125 _userId = userId;
126 }
127
128 public long getClassNameId() {
129 return _classNameId;
130 }
131
132 public void setClassNameId(long classNameId) {
133 _classNameId = classNameId;
134 }
135
136 public long getClassPK() {
137 return _classPK;
138 }
139
140 public void setClassPK(long classPK) {
141 _classPK = classPK;
142 }
143
144 public int getActivityType() {
145 return _activityType;
146 }
147
148 public void setActivityType(int activityType) {
149 _activityType = activityType;
150 }
151
152 public String getActivityCounterName() {
153 return _activityCounterName;
154 }
155
156 public void setActivityCounterName(String activityCounterName) {
157 _activityCounterName = activityCounterName;
158 }
159
160 public String getValue() {
161 return _value;
162 }
163
164 public void setValue(String value) {
165 _value = value;
166 }
167
168 private long _activityLimitId;
169 private long _groupId;
170 private long _companyId;
171 private long _userId;
172 private long _classNameId;
173 private long _classPK;
174 private int _activityType;
175 private String _activityCounterName;
176 private String _value;
177 }