1 23 24 package org.infoglue.cms.entities.workflow; 25 26 import org.infoglue.cms.entities.kernel.BaseEntityVO; 27 import org.infoglue.cms.util.ConstraintExceptionBuffer; 28 import org.infoglue.cms.util.DateHelper; 29 import org.infoglue.cms.util.validators.ValidatorFactory; 30 31 public class EventVO implements BaseEntityVO 32 { 33 public static final Integer UNDEFINED = new Integer (0); 34 public static final Integer PUBLISH = new Integer (1); 35 public static final Integer PUBLISH_DENIED = new Integer (2); 36 public static final Integer UNPUBLISH_LATEST = new Integer (3); 37 public static final Integer UNPUBLISH_DENIED = new Integer (4); 38 40 41 private java.lang.Integer eventId; 42 private java.lang.String name = ""; 43 private java.lang.String description = "No comment"; 44 private java.lang.String entityClass = ""; 45 private java.lang.Integer entityId = null; 46 private java.util.Date creationDateTime = DateHelper.getSecondPreciseDate(); 47 private java.lang.Integer typeId = UNDEFINED; 48 private java.lang.String creator = null; 49 50 53 54 public EventVO() 55 { 56 } 57 58 public java.lang.Integer getEventId() 59 { 60 return this.eventId; 61 } 62 63 public void setEventId(java.lang.Integer eventId) 64 { 65 this.eventId = eventId; 66 } 67 68 public java.lang.String getName() 69 { 70 return this.name; 71 } 72 73 public void setName(java.lang.String name) 74 { 75 this.name = name; 76 } 77 78 public java.lang.String getDescription() 79 { 80 return this.description; 81 } 82 83 public void setDescription(java.lang.String description) 84 { 85 if(description != null && description.length() > 0) 86 this.description = description; 87 } 88 89 public java.lang.String getEntityClass() 90 { 91 return this.entityClass; 92 } 93 94 public void setEntityClass(java.lang.String entityClass) 95 { 96 this.entityClass = entityClass; 97 } 98 99 public java.lang.Integer getEntityId() 100 { 101 return entityId; 102 } 103 104 public void setEntityId(java.lang.Integer entityId) 105 { 106 this.entityId = entityId; 107 } 108 109 public java.lang.Integer getTypeId() 110 { 111 return this.typeId; 112 } 113 114 public void setTypeId(java.lang.Integer typeId) 115 { 116 this.typeId = typeId; 117 } 118 119 public java.util.Date getCreationDateTime() 120 { 121 return this.creationDateTime; 122 } 123 124 public void setCreationDateTime(java.util.Date creationDateTime) 125 { 126 this.creationDateTime = creationDateTime; 127 } 128 129 public java.lang.String getCreator() 130 { 131 return this.creator; 132 } 133 134 public void setCreator(java.lang.String creator) 135 { 136 this.creator = creator; 137 } 138 139 140 143 public Integer getId() 144 { 145 return getEventId(); 146 } 147 148 149 152 public ConstraintExceptionBuffer validate() 153 { 154 ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer(); 155 156 158 return ceb; 159 } 160 161 } 162 163 | Popular Tags |