001
014
015 package com.liferay.portlet.mobiledevicerules.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
030 public class MDRRuleGroupSoap implements Serializable {
031 public static MDRRuleGroupSoap toSoapModel(MDRRuleGroup model) {
032 MDRRuleGroupSoap soapModel = new MDRRuleGroupSoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setRuleGroupId(model.getRuleGroupId());
036 soapModel.setGroupId(model.getGroupId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setUserId(model.getUserId());
039 soapModel.setUserName(model.getUserName());
040 soapModel.setCreateDate(model.getCreateDate());
041 soapModel.setModifiedDate(model.getModifiedDate());
042 soapModel.setName(model.getName());
043 soapModel.setDescription(model.getDescription());
044
045 return soapModel;
046 }
047
048 public static MDRRuleGroupSoap[] toSoapModels(MDRRuleGroup[] models) {
049 MDRRuleGroupSoap[] soapModels = new MDRRuleGroupSoap[models.length];
050
051 for (int i = 0; i < models.length; i++) {
052 soapModels[i] = toSoapModel(models[i]);
053 }
054
055 return soapModels;
056 }
057
058 public static MDRRuleGroupSoap[][] toSoapModels(MDRRuleGroup[][] models) {
059 MDRRuleGroupSoap[][] soapModels = null;
060
061 if (models.length > 0) {
062 soapModels = new MDRRuleGroupSoap[models.length][models[0].length];
063 }
064 else {
065 soapModels = new MDRRuleGroupSoap[0][0];
066 }
067
068 for (int i = 0; i < models.length; i++) {
069 soapModels[i] = toSoapModels(models[i]);
070 }
071
072 return soapModels;
073 }
074
075 public static MDRRuleGroupSoap[] toSoapModels(List<MDRRuleGroup> models) {
076 List<MDRRuleGroupSoap> soapModels = new ArrayList<MDRRuleGroupSoap>(models.size());
077
078 for (MDRRuleGroup model : models) {
079 soapModels.add(toSoapModel(model));
080 }
081
082 return soapModels.toArray(new MDRRuleGroupSoap[soapModels.size()]);
083 }
084
085 public MDRRuleGroupSoap() {
086 }
087
088 public long getPrimaryKey() {
089 return _ruleGroupId;
090 }
091
092 public void setPrimaryKey(long pk) {
093 setRuleGroupId(pk);
094 }
095
096 public String getUuid() {
097 return _uuid;
098 }
099
100 public void setUuid(String uuid) {
101 _uuid = uuid;
102 }
103
104 public long getRuleGroupId() {
105 return _ruleGroupId;
106 }
107
108 public void setRuleGroupId(long ruleGroupId) {
109 _ruleGroupId = ruleGroupId;
110 }
111
112 public long getGroupId() {
113 return _groupId;
114 }
115
116 public void setGroupId(long groupId) {
117 _groupId = groupId;
118 }
119
120 public long getCompanyId() {
121 return _companyId;
122 }
123
124 public void setCompanyId(long companyId) {
125 _companyId = companyId;
126 }
127
128 public long getUserId() {
129 return _userId;
130 }
131
132 public void setUserId(long userId) {
133 _userId = userId;
134 }
135
136 public String getUserName() {
137 return _userName;
138 }
139
140 public void setUserName(String userName) {
141 _userName = userName;
142 }
143
144 public Date getCreateDate() {
145 return _createDate;
146 }
147
148 public void setCreateDate(Date createDate) {
149 _createDate = createDate;
150 }
151
152 public Date getModifiedDate() {
153 return _modifiedDate;
154 }
155
156 public void setModifiedDate(Date modifiedDate) {
157 _modifiedDate = modifiedDate;
158 }
159
160 public String getName() {
161 return _name;
162 }
163
164 public void setName(String name) {
165 _name = name;
166 }
167
168 public String getDescription() {
169 return _description;
170 }
171
172 public void setDescription(String description) {
173 _description = description;
174 }
175
176 private String _uuid;
177 private long _ruleGroupId;
178 private long _groupId;
179 private long _companyId;
180 private long _userId;
181 private String _userName;
182 private Date _createDate;
183 private Date _modifiedDate;
184 private String _name;
185 private String _description;
186 }