1 package org.tigris.scarab.util.xmlissues; 2 3 48 49 import java.util.List ; 50 import java.util.ArrayList ; 51 52 public class XmlActivitySet implements java.io.Serializable 53 { 54 private String id = null; 55 private String type = null; 56 private String createdBy = null; 57 private CreatedDate createdDate = null; 58 private List activities = null; 59 private XmlAttachment attachment = null; 60 61 public XmlActivitySet() 62 { 63 } 64 65 70 public boolean isChangeUserAttribute() 71 { 72 if ((activities != null && activities.size() == 2)) 73 { 74 XmlActivity activityA = (XmlActivity) activities.get(0); 75 XmlActivity activityB = (XmlActivity) activities.get(1); 76 if (activityA.getOldUser() != null && 77 activityB.getNewUser() != null) 78 { 79 return true; 80 } 81 } 82 return false; 83 } 84 85 public String getId() 86 { 87 return id; 88 } 89 90 public void setId(String id) 91 { 92 this.id = id; 93 } 94 95 public String getType() 96 { 97 return type; 98 } 99 100 public void setType(String type) 101 { 102 this.type = type; 103 } 104 105 public String getCreatedBy() 106 { 107 return createdBy; 108 } 109 110 public void setCreatedBy(String createdBy) 111 { 112 this.createdBy = createdBy; 113 } 114 115 public CreatedDate getCreatedDate() 116 { 117 return createdDate; 118 } 119 120 public void setCreatedDate(CreatedDate createdDate) 121 { 122 this.createdDate = createdDate; 123 } 124 125 public List getActivities() 126 { 127 if (activities == null) 128 { 129 activities = new ArrayList (); 130 } 131 return this.activities; 132 } 133 134 public void addActivity(XmlActivity activity) 135 { 136 if (activities == null) 137 { 138 activities = new ArrayList (); 139 } 140 activities.add(activity); 141 } 142 143 public XmlAttachment getAttachment() 144 { 145 return this.attachment; 146 } 147 148 public void setAttachment(XmlAttachment attachment) 149 { 150 this.attachment = attachment; 151 } 152 } 153 | Popular Tags |