1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="UserIdMapperSoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.UserIdMapperServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.UserIdMapperServiceSoap
37   * @generated
38   */
39  public class UserIdMapperSoap implements Serializable {
40      public static UserIdMapperSoap toSoapModel(UserIdMapper model) {
41          UserIdMapperSoap soapModel = new UserIdMapperSoap();
42  
43          soapModel.setUserIdMapperId(model.getUserIdMapperId());
44          soapModel.setUserId(model.getUserId());
45          soapModel.setType(model.getType());
46          soapModel.setDescription(model.getDescription());
47          soapModel.setExternalUserId(model.getExternalUserId());
48  
49          return soapModel;
50      }
51  
52      public static UserIdMapperSoap[] toSoapModels(UserIdMapper[] models) {
53          UserIdMapperSoap[] soapModels = new UserIdMapperSoap[models.length];
54  
55          for (int i = 0; i < models.length; i++) {
56              soapModels[i] = toSoapModel(models[i]);
57          }
58  
59          return soapModels;
60      }
61  
62      public static UserIdMapperSoap[][] toSoapModels(UserIdMapper[][] models) {
63          UserIdMapperSoap[][] soapModels = null;
64  
65          if (models.length > 0) {
66              soapModels = new UserIdMapperSoap[models.length][models[0].length];
67          }
68          else {
69              soapModels = new UserIdMapperSoap[0][0];
70          }
71  
72          for (int i = 0; i < models.length; i++) {
73              soapModels[i] = toSoapModels(models[i]);
74          }
75  
76          return soapModels;
77      }
78  
79      public static UserIdMapperSoap[] toSoapModels(List<UserIdMapper> models) {
80          List<UserIdMapperSoap> soapModels = new ArrayList<UserIdMapperSoap>(models.size());
81  
82          for (UserIdMapper model : models) {
83              soapModels.add(toSoapModel(model));
84          }
85  
86          return soapModels.toArray(new UserIdMapperSoap[soapModels.size()]);
87      }
88  
89      public UserIdMapperSoap() {
90      }
91  
92      public long getPrimaryKey() {
93          return _userIdMapperId;
94      }
95  
96      public void setPrimaryKey(long pk) {
97          setUserIdMapperId(pk);
98      }
99  
100     public long getUserIdMapperId() {
101         return _userIdMapperId;
102     }
103 
104     public void setUserIdMapperId(long userIdMapperId) {
105         _userIdMapperId = userIdMapperId;
106     }
107 
108     public long getUserId() {
109         return _userId;
110     }
111 
112     public void setUserId(long userId) {
113         _userId = userId;
114     }
115 
116     public String getType() {
117         return _type;
118     }
119 
120     public void setType(String type) {
121         _type = type;
122     }
123 
124     public String getDescription() {
125         return _description;
126     }
127 
128     public void setDescription(String description) {
129         _description = description;
130     }
131 
132     public String getExternalUserId() {
133         return _externalUserId;
134     }
135 
136     public void setExternalUserId(String externalUserId) {
137         _externalUserId = externalUserId;
138     }
139 
140     private long _userIdMapperId;
141     private long _userId;
142     private String _type;
143     private String _description;
144     private String _externalUserId;
145 }