001
014
015 package com.liferay.portal.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.List;
021
022
032 public class PluginSettingSoap implements Serializable {
033 public static PluginSettingSoap toSoapModel(PluginSetting model) {
034 PluginSettingSoap soapModel = new PluginSettingSoap();
035
036 soapModel.setPluginSettingId(model.getPluginSettingId());
037 soapModel.setCompanyId(model.getCompanyId());
038 soapModel.setPluginId(model.getPluginId());
039 soapModel.setPluginType(model.getPluginType());
040 soapModel.setRoles(model.getRoles());
041 soapModel.setActive(model.getActive());
042
043 return soapModel;
044 }
045
046 public static PluginSettingSoap[] toSoapModels(PluginSetting[] models) {
047 PluginSettingSoap[] soapModels = new PluginSettingSoap[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 PluginSettingSoap[][] toSoapModels(PluginSetting[][] models) {
057 PluginSettingSoap[][] soapModels = null;
058
059 if (models.length > 0) {
060 soapModels = new PluginSettingSoap[models.length][models[0].length];
061 }
062 else {
063 soapModels = new PluginSettingSoap[0][0];
064 }
065
066 for (int i = 0; i < models.length; i++) {
067 soapModels[i] = toSoapModels(models[i]);
068 }
069
070 return soapModels;
071 }
072
073 public static PluginSettingSoap[] toSoapModels(List<PluginSetting> models) {
074 List<PluginSettingSoap> soapModels = new ArrayList<PluginSettingSoap>(models.size());
075
076 for (PluginSetting model : models) {
077 soapModels.add(toSoapModel(model));
078 }
079
080 return soapModels.toArray(new PluginSettingSoap[soapModels.size()]);
081 }
082
083 public PluginSettingSoap() {
084 }
085
086 public long getPrimaryKey() {
087 return _pluginSettingId;
088 }
089
090 public void setPrimaryKey(long pk) {
091 setPluginSettingId(pk);
092 }
093
094 public long getPluginSettingId() {
095 return _pluginSettingId;
096 }
097
098 public void setPluginSettingId(long pluginSettingId) {
099 _pluginSettingId = pluginSettingId;
100 }
101
102 public long getCompanyId() {
103 return _companyId;
104 }
105
106 public void setCompanyId(long companyId) {
107 _companyId = companyId;
108 }
109
110 public String getPluginId() {
111 return _pluginId;
112 }
113
114 public void setPluginId(String pluginId) {
115 _pluginId = pluginId;
116 }
117
118 public String getPluginType() {
119 return _pluginType;
120 }
121
122 public void setPluginType(String pluginType) {
123 _pluginType = pluginType;
124 }
125
126 public String getRoles() {
127 return _roles;
128 }
129
130 public void setRoles(String roles) {
131 _roles = roles;
132 }
133
134 public boolean getActive() {
135 return _active;
136 }
137
138 public boolean isActive() {
139 return _active;
140 }
141
142 public void setActive(boolean active) {
143 _active = active;
144 }
145
146 private long _pluginSettingId;
147 private long _companyId;
148 private String _pluginId;
149 private String _pluginType;
150 private String _roles;
151 private boolean _active;
152 }