001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class UserIdMapperSoap implements Serializable {
029            public static UserIdMapperSoap toSoapModel(UserIdMapper model) {
030                    UserIdMapperSoap soapModel = new UserIdMapperSoap();
031    
032                    soapModel.setUserIdMapperId(model.getUserIdMapperId());
033                    soapModel.setUserId(model.getUserId());
034                    soapModel.setType(model.getType());
035                    soapModel.setDescription(model.getDescription());
036                    soapModel.setExternalUserId(model.getExternalUserId());
037    
038                    return soapModel;
039            }
040    
041            public static UserIdMapperSoap[] toSoapModels(UserIdMapper[] models) {
042                    UserIdMapperSoap[] soapModels = new UserIdMapperSoap[models.length];
043    
044                    for (int i = 0; i < models.length; i++) {
045                            soapModels[i] = toSoapModel(models[i]);
046                    }
047    
048                    return soapModels;
049            }
050    
051            public static UserIdMapperSoap[][] toSoapModels(UserIdMapper[][] models) {
052                    UserIdMapperSoap[][] soapModels = null;
053    
054                    if (models.length > 0) {
055                            soapModels = new UserIdMapperSoap[models.length][models[0].length];
056                    }
057                    else {
058                            soapModels = new UserIdMapperSoap[0][0];
059                    }
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModels(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static UserIdMapperSoap[] toSoapModels(List<UserIdMapper> models) {
069                    List<UserIdMapperSoap> soapModels = new ArrayList<UserIdMapperSoap>(models.size());
070    
071                    for (UserIdMapper model : models) {
072                            soapModels.add(toSoapModel(model));
073                    }
074    
075                    return soapModels.toArray(new UserIdMapperSoap[soapModels.size()]);
076            }
077    
078            public UserIdMapperSoap() {
079            }
080    
081            public long getPrimaryKey() {
082                    return _userIdMapperId;
083            }
084    
085            public void setPrimaryKey(long pk) {
086                    setUserIdMapperId(pk);
087            }
088    
089            public long getUserIdMapperId() {
090                    return _userIdMapperId;
091            }
092    
093            public void setUserIdMapperId(long userIdMapperId) {
094                    _userIdMapperId = userIdMapperId;
095            }
096    
097            public long getUserId() {
098                    return _userId;
099            }
100    
101            public void setUserId(long userId) {
102                    _userId = userId;
103            }
104    
105            public String getType() {
106                    return _type;
107            }
108    
109            public void setType(String type) {
110                    _type = type;
111            }
112    
113            public String getDescription() {
114                    return _description;
115            }
116    
117            public void setDescription(String description) {
118                    _description = description;
119            }
120    
121            public String getExternalUserId() {
122                    return _externalUserId;
123            }
124    
125            public void setExternalUserId(String externalUserId) {
126                    _externalUserId = externalUserId;
127            }
128    
129            private long _userIdMapperId;
130            private long _userId;
131            private String _type;
132            private String _description;
133            private String _externalUserId;
134    }