001
014
015 package com.liferay.portlet.documentlibrary.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import java.io.Serializable;
020
021 import java.sql.Blob;
022
023 import java.util.ArrayList;
024 import java.util.List;
025
026
032 @ProviderType
033 public class DLContentSoap implements Serializable {
034 public static DLContentSoap toSoapModel(DLContent model) {
035 DLContentSoap soapModel = new DLContentSoap();
036
037 soapModel.setContentId(model.getContentId());
038 soapModel.setGroupId(model.getGroupId());
039 soapModel.setCompanyId(model.getCompanyId());
040 soapModel.setRepositoryId(model.getRepositoryId());
041 soapModel.setPath(model.getPath());
042 soapModel.setVersion(model.getVersion());
043 soapModel.setData(model.getData());
044 soapModel.setSize(model.getSize());
045
046 return soapModel;
047 }
048
049 public static DLContentSoap[] toSoapModels(DLContent[] models) {
050 DLContentSoap[] soapModels = new DLContentSoap[models.length];
051
052 for (int i = 0; i < models.length; i++) {
053 soapModels[i] = toSoapModel(models[i]);
054 }
055
056 return soapModels;
057 }
058
059 public static DLContentSoap[][] toSoapModels(DLContent[][] models) {
060 DLContentSoap[][] soapModels = null;
061
062 if (models.length > 0) {
063 soapModels = new DLContentSoap[models.length][models[0].length];
064 }
065 else {
066 soapModels = new DLContentSoap[0][0];
067 }
068
069 for (int i = 0; i < models.length; i++) {
070 soapModels[i] = toSoapModels(models[i]);
071 }
072
073 return soapModels;
074 }
075
076 public static DLContentSoap[] toSoapModels(List<DLContent> models) {
077 List<DLContentSoap> soapModels = new ArrayList<DLContentSoap>(models.size());
078
079 for (DLContent model : models) {
080 soapModels.add(toSoapModel(model));
081 }
082
083 return soapModels.toArray(new DLContentSoap[soapModels.size()]);
084 }
085
086 public DLContentSoap() {
087 }
088
089 public long getPrimaryKey() {
090 return _contentId;
091 }
092
093 public void setPrimaryKey(long pk) {
094 setContentId(pk);
095 }
096
097 public long getContentId() {
098 return _contentId;
099 }
100
101 public void setContentId(long contentId) {
102 _contentId = contentId;
103 }
104
105 public long getGroupId() {
106 return _groupId;
107 }
108
109 public void setGroupId(long groupId) {
110 _groupId = groupId;
111 }
112
113 public long getCompanyId() {
114 return _companyId;
115 }
116
117 public void setCompanyId(long companyId) {
118 _companyId = companyId;
119 }
120
121 public long getRepositoryId() {
122 return _repositoryId;
123 }
124
125 public void setRepositoryId(long repositoryId) {
126 _repositoryId = repositoryId;
127 }
128
129 public String getPath() {
130 return _path;
131 }
132
133 public void setPath(String path) {
134 _path = path;
135 }
136
137 public String getVersion() {
138 return _version;
139 }
140
141 public void setVersion(String version) {
142 _version = version;
143 }
144
145 public Blob getData() {
146 return _data;
147 }
148
149 public void setData(Blob data) {
150 _data = data;
151 }
152
153 public long getSize() {
154 return _size;
155 }
156
157 public void setSize(long size) {
158 _size = size;
159 }
160
161 private long _contentId;
162 private long _groupId;
163 private long _companyId;
164 private long _repositoryId;
165 private String _path;
166 private String _version;
167 private Blob _data;
168 private long _size;
169 }