1
19
20 package com.liferay.portal.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.List;
26
27
45 public class PluginSettingSoap implements Serializable {
46 public static PluginSettingSoap toSoapModel(PluginSetting model) {
47 PluginSettingSoap soapModel = new PluginSettingSoap();
48
49 soapModel.setPluginSettingId(model.getPluginSettingId());
50 soapModel.setCompanyId(model.getCompanyId());
51 soapModel.setPluginId(model.getPluginId());
52 soapModel.setPluginType(model.getPluginType());
53 soapModel.setRoles(model.getRoles());
54 soapModel.setActive(model.getActive());
55
56 return soapModel;
57 }
58
59 public static PluginSettingSoap[] toSoapModels(PluginSetting[] models) {
60 PluginSettingSoap[] soapModels = new PluginSettingSoap[models.length];
61
62 for (int i = 0; i < models.length; i++) {
63 soapModels[i] = toSoapModel(models[i]);
64 }
65
66 return soapModels;
67 }
68
69 public static PluginSettingSoap[][] toSoapModels(PluginSetting[][] models) {
70 PluginSettingSoap[][] soapModels = null;
71
72 if (models.length > 0) {
73 soapModels = new PluginSettingSoap[models.length][models[0].length];
74 }
75 else {
76 soapModels = new PluginSettingSoap[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 PluginSettingSoap[] toSoapModels(List<PluginSetting> models) {
87 List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
88
89 for (PluginSetting model : models) {
90 soapModels.add(toSoapModel(model));
91 }
92
93 return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
94 }
95
96 public PluginSettingSoap() {
97 }
98
99 public long getPrimaryKey() {
100 return _pluginSettingId;
101 }
102
103 public void setPrimaryKey(long pk) {
104 setPluginSettingId(pk);
105 }
106
107 public long getPluginSettingId() {
108 return _pluginSettingId;
109 }
110
111 public void setPluginSettingId(long pluginSettingId) {
112 _pluginSettingId = pluginSettingId;
113 }
114
115 public long getCompanyId() {
116 return _companyId;
117 }
118
119 public void setCompanyId(long companyId) {
120 _companyId = companyId;
121 }
122
123 public String getPluginId() {
124 return _pluginId;
125 }
126
127 public void setPluginId(String pluginId) {
128 _pluginId = pluginId;
129 }
130
131 public String getPluginType() {
132 return _pluginType;
133 }
134
135 public void setPluginType(String pluginType) {
136 _pluginType = pluginType;
137 }
138
139 public String getRoles() {
140 return _roles;
141 }
142
143 public void setRoles(String roles) {
144 _roles = roles;
145 }
146
147 public boolean getActive() {
148 return _active;
149 }
150
151 public boolean isActive() {
152 return _active;
153 }
154
155 public void setActive(boolean active) {
156 _active = active;
157 }
158
159 private long _pluginSettingId;
160 private long _companyId;
161 private String _pluginId;
162 private String _pluginType;
163 private String _roles;
164 private boolean _active;
165 }