001    /**
002     * Copyright (c) 2000-2012 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 RepositoryEntrySoap implements Serializable {
029            public static RepositoryEntrySoap toSoapModel(RepositoryEntry model) {
030                    RepositoryEntrySoap soapModel = new RepositoryEntrySoap();
031    
032                    soapModel.setUuid(model.getUuid());
033                    soapModel.setRepositoryEntryId(model.getRepositoryEntryId());
034                    soapModel.setGroupId(model.getGroupId());
035                    soapModel.setRepositoryId(model.getRepositoryId());
036                    soapModel.setMappedId(model.getMappedId());
037                    soapModel.setManualCheckInRequired(model.getManualCheckInRequired());
038    
039                    return soapModel;
040            }
041    
042            public static RepositoryEntrySoap[] toSoapModels(RepositoryEntry[] models) {
043                    RepositoryEntrySoap[] soapModels = new RepositoryEntrySoap[models.length];
044    
045                    for (int i = 0; i < models.length; i++) {
046                            soapModels[i] = toSoapModel(models[i]);
047                    }
048    
049                    return soapModels;
050            }
051    
052            public static RepositoryEntrySoap[][] toSoapModels(
053                    RepositoryEntry[][] models) {
054                    RepositoryEntrySoap[][] soapModels = null;
055    
056                    if (models.length > 0) {
057                            soapModels = new RepositoryEntrySoap[models.length][models[0].length];
058                    }
059                    else {
060                            soapModels = new RepositoryEntrySoap[0][0];
061                    }
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModels(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static RepositoryEntrySoap[] toSoapModels(
071                    List<RepositoryEntry> models) {
072                    List<RepositoryEntrySoap> soapModels = new ArrayList<RepositoryEntrySoap>(models.size());
073    
074                    for (RepositoryEntry model : models) {
075                            soapModels.add(toSoapModel(model));
076                    }
077    
078                    return soapModels.toArray(new RepositoryEntrySoap[soapModels.size()]);
079            }
080    
081            public RepositoryEntrySoap() {
082            }
083    
084            public long getPrimaryKey() {
085                    return _repositoryEntryId;
086            }
087    
088            public void setPrimaryKey(long pk) {
089                    setRepositoryEntryId(pk);
090            }
091    
092            public String getUuid() {
093                    return _uuid;
094            }
095    
096            public void setUuid(String uuid) {
097                    _uuid = uuid;
098            }
099    
100            public long getRepositoryEntryId() {
101                    return _repositoryEntryId;
102            }
103    
104            public void setRepositoryEntryId(long repositoryEntryId) {
105                    _repositoryEntryId = repositoryEntryId;
106            }
107    
108            public long getGroupId() {
109                    return _groupId;
110            }
111    
112            public void setGroupId(long groupId) {
113                    _groupId = groupId;
114            }
115    
116            public long getRepositoryId() {
117                    return _repositoryId;
118            }
119    
120            public void setRepositoryId(long repositoryId) {
121                    _repositoryId = repositoryId;
122            }
123    
124            public String getMappedId() {
125                    return _mappedId;
126            }
127    
128            public void setMappedId(String mappedId) {
129                    _mappedId = mappedId;
130            }
131    
132            public boolean getManualCheckInRequired() {
133                    return _manualCheckInRequired;
134            }
135    
136            public boolean isManualCheckInRequired() {
137                    return _manualCheckInRequired;
138            }
139    
140            public void setManualCheckInRequired(boolean manualCheckInRequired) {
141                    _manualCheckInRequired = manualCheckInRequired;
142            }
143    
144            private String _uuid;
145            private long _repositoryEntryId;
146            private long _groupId;
147            private long _repositoryId;
148            private String _mappedId;
149            private boolean _manualCheckInRequired;
150    }