001
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
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
038 return soapModel;
039 }
040
041 public static RepositoryEntrySoap[] toSoapModels(RepositoryEntry[] models) {
042 RepositoryEntrySoap[] soapModels = new RepositoryEntrySoap[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 RepositoryEntrySoap[][] toSoapModels(
052 RepositoryEntry[][] models) {
053 RepositoryEntrySoap[][] soapModels = null;
054
055 if (models.length > 0) {
056 soapModels = new RepositoryEntrySoap[models.length][models[0].length];
057 }
058 else {
059 soapModels = new RepositoryEntrySoap[0][0];
060 }
061
062 for (int i = 0; i < models.length; i++) {
063 soapModels[i] = toSoapModels(models[i]);
064 }
065
066 return soapModels;
067 }
068
069 public static RepositoryEntrySoap[] toSoapModels(
070 List<RepositoryEntry> models) {
071 List<RepositoryEntrySoap> soapModels = new ArrayList<RepositoryEntrySoap>(models.size());
072
073 for (RepositoryEntry model : models) {
074 soapModels.add(toSoapModel(model));
075 }
076
077 return soapModels.toArray(new RepositoryEntrySoap[soapModels.size()]);
078 }
079
080 public RepositoryEntrySoap() {
081 }
082
083 public long getPrimaryKey() {
084 return _repositoryEntryId;
085 }
086
087 public void setPrimaryKey(long pk) {
088 setRepositoryEntryId(pk);
089 }
090
091 public String getUuid() {
092 return _uuid;
093 }
094
095 public void setUuid(String uuid) {
096 _uuid = uuid;
097 }
098
099 public long getRepositoryEntryId() {
100 return _repositoryEntryId;
101 }
102
103 public void setRepositoryEntryId(long repositoryEntryId) {
104 _repositoryEntryId = repositoryEntryId;
105 }
106
107 public long getGroupId() {
108 return _groupId;
109 }
110
111 public void setGroupId(long groupId) {
112 _groupId = groupId;
113 }
114
115 public long getRepositoryId() {
116 return _repositoryId;
117 }
118
119 public void setRepositoryId(long repositoryId) {
120 _repositoryId = repositoryId;
121 }
122
123 public String getMappedId() {
124 return _mappedId;
125 }
126
127 public void setMappedId(String mappedId) {
128 _mappedId = mappedId;
129 }
130
131 private String _uuid;
132 private long _repositoryEntryId;
133 private long _groupId;
134 private long _repositoryId;
135 private String _mappedId;
136 }