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
029 public class SocialActivitySettingSoap implements Serializable {
030 public static SocialActivitySettingSoap toSoapModel(
031 SocialActivitySetting model) {
032 SocialActivitySettingSoap soapModel = new SocialActivitySettingSoap();
033
034 soapModel.setActivitySettingId(model.getActivitySettingId());
035 soapModel.setGroupId(model.getGroupId());
036 soapModel.setCompanyId(model.getCompanyId());
037 soapModel.setClassNameId(model.getClassNameId());
038 soapModel.setActivityType(model.getActivityType());
039 soapModel.setName(model.getName());
040 soapModel.setValue(model.getValue());
041
042 return soapModel;
043 }
044
045 public static SocialActivitySettingSoap[] toSoapModels(
046 SocialActivitySetting[] models) {
047 SocialActivitySettingSoap[] soapModels = new SocialActivitySettingSoap[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 SocialActivitySettingSoap[][] toSoapModels(
057 SocialActivitySetting[][] models) {
058 SocialActivitySettingSoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new SocialActivitySettingSoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new SocialActivitySettingSoap[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 SocialActivitySettingSoap[] toSoapModels(
075 List<SocialActivitySetting> models) {
076 List<SocialActivitySettingSoap> soapModels = new ArrayList<SocialActivitySettingSoap>(models.size());
077
078 for (SocialActivitySetting model : models) {
079 soapModels.add(toSoapModel(model));
080 }
081
082 return soapModels.toArray(new SocialActivitySettingSoap[soapModels.size()]);
083 }
084
085 public SocialActivitySettingSoap() {
086 }
087
088 public long getPrimaryKey() {
089 return _activitySettingId;
090 }
091
092 public void setPrimaryKey(long pk) {
093 setActivitySettingId(pk);
094 }
095
096 public long getActivitySettingId() {
097 return _activitySettingId;
098 }
099
100 public void setActivitySettingId(long activitySettingId) {
101 _activitySettingId = activitySettingId;
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 getClassNameId() {
121 return _classNameId;
122 }
123
124 public void setClassNameId(long classNameId) {
125 _classNameId = classNameId;
126 }
127
128 public int getActivityType() {
129 return _activityType;
130 }
131
132 public void setActivityType(int activityType) {
133 _activityType = activityType;
134 }
135
136 public String getName() {
137 return _name;
138 }
139
140 public void setName(String name) {
141 _name = name;
142 }
143
144 public String getValue() {
145 return _value;
146 }
147
148 public void setValue(String value) {
149 _value = value;
150 }
151
152 private long _activitySettingId;
153 private long _groupId;
154 private long _companyId;
155 private long _classNameId;
156 private int _activityType;
157 private String _name;
158 private String _value;
159 }