1 28 29 package com.opencms.defaults.master; 30 31 import org.opencms.db.CmsDbUtil; 32 import org.opencms.util.CmsUUID; 33 34 import java.io.Serializable ; 35 import java.util.Vector ; 36 37 48 public class CmsMasterDataSet implements Serializable { 49 50 52 53 public CmsUUID m_masterId; 54 55 56 public int m_subId; 57 58 59 public CmsUUID m_userId; 60 61 62 public CmsUUID m_groupId; 63 64 65 public int m_lockedInProject; 66 67 69 public int m_projectId; 70 71 72 public int m_state; 73 74 75 public CmsUUID m_lockedBy; 76 77 78 public CmsUUID m_lastModifiedBy; 79 80 81 public long m_dateCreated; 82 83 84 public long m_dateLastModified; 85 86 public int m_accessFlags; 87 88 90 91 public long m_publicationDate; 92 93 94 public long m_purgeDate; 95 96 98 99 public int m_flags; 100 101 102 public int m_feedId; 103 104 105 public int m_feedReference; 106 107 108 public String m_feedFilename; 109 110 111 public String m_title; 112 113 115 116 public int m_versionId = CmsDbUtil.UNKNOWN_ID; 117 118 119 public String m_userName; 120 121 122 public String m_groupName; 123 124 125 public String m_lastModifiedByName; 126 127 129 130 public String [] m_dataBig = new String [10]; 131 132 133 public String [] m_dataMedium = new String [10]; 134 135 136 public String [] m_dataSmall = new String [40]; 137 138 139 public long[] m_dataDate = new long[5]; 140 141 142 public int[] m_dataInt = new int[10]; 143 144 145 public int[] m_dataReference = new int[10]; 146 147 149 150 public Vector m_mediaToUpdate = new Vector (); 151 152 153 public Vector m_mediaToDelete = new Vector (); 154 155 156 public Vector m_mediaToAdd = new Vector (); 157 158 159 public Vector m_media = null; 160 161 163 public Vector m_channelToDelete = new Vector (); 164 165 166 public Vector m_channelToAdd = new Vector (); 167 168 169 public Vector m_channel = null; 170 171 174 public CmsMasterDataSet() { 175 } 176 177 180 public Object clone(){ 181 CmsMasterDataSet retValue = new CmsMasterDataSet(); 182 retValue.m_accessFlags = this.m_accessFlags; 183 retValue.m_channel = this.m_channel; 184 retValue.m_channelToAdd = this.m_channelToAdd; 185 retValue.m_channelToDelete = this.m_channelToDelete; 186 retValue.m_dataBig = this.m_dataBig; 187 retValue.m_dataDate = this.m_dataDate; 188 retValue.m_dataInt = this.m_dataInt; 189 retValue.m_dataMedium = this.m_dataMedium; 190 retValue.m_dataReference = this.m_dataReference; 191 retValue.m_dataSmall = this.m_dataSmall; 192 retValue.m_dateCreated = this.m_dateCreated; 193 retValue.m_dateLastModified = this.m_dateLastModified; 194 retValue.m_feedFilename = this.m_feedFilename; 195 retValue.m_feedId = this.m_feedId; 196 retValue.m_feedReference = this.m_feedReference; 197 retValue.m_flags = this.m_flags; 198 retValue.m_groupId = this.m_groupId; 199 retValue.m_groupName = this.m_groupName; 200 retValue.m_lastModifiedBy = this.m_lastModifiedBy; 201 retValue.m_lastModifiedByName = this.m_lastModifiedByName; 202 retValue.m_lockedBy = this.m_lockedBy; 203 retValue.m_lockedInProject = this.m_lockedInProject; 204 retValue.m_masterId = this.m_masterId; 205 retValue.m_media = this.m_media; 206 retValue.m_mediaToAdd = this.m_mediaToAdd; 207 retValue.m_mediaToDelete = this.m_mediaToDelete; 208 retValue.m_mediaToUpdate = this.m_mediaToUpdate; 209 retValue.m_projectId = this.m_projectId; 210 retValue.m_publicationDate = this.m_publicationDate; 211 retValue.m_purgeDate = this.m_purgeDate; 212 retValue.m_state = this.m_state; 213 retValue.m_subId = this.m_subId; 214 retValue.m_title = this.m_title; 215 retValue.m_userId = this.m_userId; 216 retValue.m_userName = this.m_userName; 217 retValue.m_versionId = this.m_versionId; 218 return retValue; 219 } 220 223 public String toString() { 224 StringBuffer returnValue = new StringBuffer (); 225 returnValue.append(this.getClass().getName() + "{"); 226 returnValue.append("m_masterId="+m_masterId+";"); 227 returnValue.append("m_subId="+m_subId+";"); 228 returnValue.append("m_userId="+m_userId+";"); 229 returnValue.append("m_groupId="+m_groupId+";"); 230 returnValue.append("m_title="+m_title+";"); 231 returnValue.append("m_projectId="+m_projectId+";"); 232 returnValue.append("m_state="+m_state+";"); 233 returnValue.append("m_lockedBy="+m_lockedBy+";"); 234 returnValue.append("m_lastModifiedBy="+m_lastModifiedBy+";"); 235 returnValue.append("m_dateCreated="+m_dateCreated+";"); 236 returnValue.append("m_dateLastModified="+m_dateLastModified+";"); 237 returnValue.append("m_publicationDate="+m_publicationDate+";"); 238 returnValue.append("m_purgeDate="+m_purgeDate+";"); 239 returnValue.append("m_flags="+m_flags+";"); 240 returnValue.append("m_feedId="+m_feedId+";"); 241 returnValue.append("m_feedReference="+m_feedReference+";"); 242 returnValue.append("m_feedFilename="+m_feedFilename+";"); 243 returnValue.append("];"); 244 returnValue.append("m_dataBig=["); 245 helperToString(m_dataBig, returnValue); 246 returnValue.append("];"); 247 returnValue.append("m_dataMedium=["); 248 helperToString(m_dataMedium, returnValue); 249 returnValue.append("];"); 250 returnValue.append("m_dataSmall=["); 251 helperToString(m_dataSmall, returnValue); 252 returnValue.append("];"); 253 returnValue.append("m_dataInt=["); 254 for(int i = 0; i < m_dataInt.length; i++) { 255 returnValue.append((i==0?"":",") + m_dataInt[i] ); 256 } 257 returnValue.append("];"); 258 returnValue.append("m_dataReference=["); 259 for(int i = 0; i < m_dataReference.length; i++) { 260 returnValue.append((i==0?"":",") + m_dataInt[i] ); 261 } 262 returnValue.append("]}"); 263 return returnValue.toString(); 264 } 265 266 271 private void helperToString(Object [] array, StringBuffer buffer) { 272 for(int i = 0; i < array.length; i++) { 273 buffer.append((i==0?"":",") + array[i] ); 274 } 275 } 276 }
| Popular Tags
|