001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="WebDAVPropsSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.WebDAVPropsServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.WebDAVPropsServiceSoap
045: *
046: */
047: public class WebDAVPropsSoap implements Serializable {
048: public static WebDAVPropsSoap toSoapModel(WebDAVProps model) {
049: WebDAVPropsSoap soapModel = new WebDAVPropsSoap();
050:
051: soapModel.setWebDavPropsId(model.getWebDavPropsId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setCreateDate(model.getCreateDate());
054: soapModel.setModifiedDate(model.getModifiedDate());
055: soapModel.setClassNameId(model.getClassNameId());
056: soapModel.setClassPK(model.getClassPK());
057: soapModel.setProps(model.getProps());
058:
059: return soapModel;
060: }
061:
062: public static WebDAVPropsSoap[] toSoapModels(List models) {
063: List soapModels = new ArrayList(models.size());
064:
065: for (int i = 0; i < models.size(); i++) {
066: WebDAVProps model = (WebDAVProps) models.get(i);
067:
068: soapModels.add(toSoapModel(model));
069: }
070:
071: return (WebDAVPropsSoap[]) soapModels
072: .toArray(new WebDAVPropsSoap[0]);
073: }
074:
075: public WebDAVPropsSoap() {
076: }
077:
078: public long getPrimaryKey() {
079: return _webDavPropsId;
080: }
081:
082: public void setPrimaryKey(long pk) {
083: setWebDavPropsId(pk);
084: }
085:
086: public long getWebDavPropsId() {
087: return _webDavPropsId;
088: }
089:
090: public void setWebDavPropsId(long webDavPropsId) {
091: _webDavPropsId = webDavPropsId;
092: }
093:
094: public long getCompanyId() {
095: return _companyId;
096: }
097:
098: public void setCompanyId(long companyId) {
099: _companyId = companyId;
100: }
101:
102: public Date getCreateDate() {
103: return _createDate;
104: }
105:
106: public void setCreateDate(Date createDate) {
107: _createDate = createDate;
108: }
109:
110: public Date getModifiedDate() {
111: return _modifiedDate;
112: }
113:
114: public void setModifiedDate(Date modifiedDate) {
115: _modifiedDate = modifiedDate;
116: }
117:
118: public long getClassNameId() {
119: return _classNameId;
120: }
121:
122: public void setClassNameId(long classNameId) {
123: _classNameId = classNameId;
124: }
125:
126: public long getClassPK() {
127: return _classPK;
128: }
129:
130: public void setClassPK(long classPK) {
131: _classPK = classPK;
132: }
133:
134: public String getProps() {
135: return _props;
136: }
137:
138: public void setProps(String props) {
139: _props = props;
140: }
141:
142: private long _webDavPropsId;
143: private long _companyId;
144: private Date _createDate;
145: private Date _modifiedDate;
146: private long _classNameId;
147: private long _classPK;
148: private String _props;
149: }
|