1
19
20 package com.liferay.portlet.documentlibrary.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.Date;
26 import java.util.List;
27
28
46 public class DLFileShortcutSoap implements Serializable {
47 public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
48 DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
49
50 soapModel.setUuid(model.getUuid());
51 soapModel.setFileShortcutId(model.getFileShortcutId());
52 soapModel.setCompanyId(model.getCompanyId());
53 soapModel.setUserId(model.getUserId());
54 soapModel.setUserName(model.getUserName());
55 soapModel.setCreateDate(model.getCreateDate());
56 soapModel.setModifiedDate(model.getModifiedDate());
57 soapModel.setFolderId(model.getFolderId());
58 soapModel.setToFolderId(model.getToFolderId());
59 soapModel.setToName(model.getToName());
60
61 return soapModel;
62 }
63
64 public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
65 List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
66
67 for (DLFileShortcut model : models) {
68 soapModels.add(toSoapModel(model));
69 }
70
71 return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
72 }
73
74 public DLFileShortcutSoap() {
75 }
76
77 public long getPrimaryKey() {
78 return _fileShortcutId;
79 }
80
81 public void setPrimaryKey(long pk) {
82 setFileShortcutId(pk);
83 }
84
85 public String getUuid() {
86 return _uuid;
87 }
88
89 public void setUuid(String uuid) {
90 _uuid = uuid;
91 }
92
93 public long getFileShortcutId() {
94 return _fileShortcutId;
95 }
96
97 public void setFileShortcutId(long fileShortcutId) {
98 _fileShortcutId = fileShortcutId;
99 }
100
101 public long getCompanyId() {
102 return _companyId;
103 }
104
105 public void setCompanyId(long companyId) {
106 _companyId = companyId;
107 }
108
109 public long getUserId() {
110 return _userId;
111 }
112
113 public void setUserId(long userId) {
114 _userId = userId;
115 }
116
117 public String getUserName() {
118 return _userName;
119 }
120
121 public void setUserName(String userName) {
122 _userName = userName;
123 }
124
125 public Date getCreateDate() {
126 return _createDate;
127 }
128
129 public void setCreateDate(Date createDate) {
130 _createDate = createDate;
131 }
132
133 public Date getModifiedDate() {
134 return _modifiedDate;
135 }
136
137 public void setModifiedDate(Date modifiedDate) {
138 _modifiedDate = modifiedDate;
139 }
140
141 public long getFolderId() {
142 return _folderId;
143 }
144
145 public void setFolderId(long folderId) {
146 _folderId = folderId;
147 }
148
149 public long getToFolderId() {
150 return _toFolderId;
151 }
152
153 public void setToFolderId(long toFolderId) {
154 _toFolderId = toFolderId;
155 }
156
157 public String getToName() {
158 return _toName;
159 }
160
161 public void setToName(String toName) {
162 _toName = toName;
163 }
164
165 private String _uuid;
166 private long _fileShortcutId;
167 private long _companyId;
168 private long _userId;
169 private String _userName;
170 private Date _createDate;
171 private Date _modifiedDate;
172 private long _folderId;
173 private long _toFolderId;
174 private String _toName;
175 }